@keystrokehq/notion 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-multiple-page-content.cjs +8 -8
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +88 -3
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +88 -3
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +8 -8
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +44 -44
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +849 -3
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +849 -3
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +44 -44
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +44 -44
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +642 -3
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +642 -3
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +44 -44
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +44 -44
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +996 -3
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +996 -3
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +44 -44
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +44 -44
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +624 -3
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +624 -3
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +44 -44
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +44 -44
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +826 -3
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +826 -3
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +44 -44
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +44 -44
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +1080 -3
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +1080 -3
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +44 -44
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +27 -27
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +78 -3
- package/dist/actions/archive-notion-page.d.cts.map +1 -1
- package/dist/actions/archive-notion-page.d.mts +78 -3
- package/dist/actions/archive-notion-page.d.mts.map +1 -1
- package/dist/actions/archive-notion-page.mjs +27 -27
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +46 -3
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +46 -3
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-database.cjs +31 -31
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +139 -3
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +139 -3
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +31 -31
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +8 -8
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +38 -3
- package/dist/actions/create-file-upload.d.cts.map +1 -1
- package/dist/actions/create-file-upload.d.mts +38 -3
- package/dist/actions/create-file-upload.d.mts.map +1 -1
- package/dist/actions/create-file-upload.mjs +8 -8
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +29 -29
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +83 -3
- package/dist/actions/create-notion-page.d.cts.map +1 -1
- package/dist/actions/create-notion-page.d.mts +83 -3
- package/dist/actions/create-notion-page.d.mts.map +1 -1
- package/dist/actions/create-notion-page.mjs +29 -29
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +53 -53
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +2181 -3
- package/dist/actions/delete-block.d.cts.map +1 -1
- package/dist/actions/delete-block.d.mts +2181 -3
- package/dist/actions/delete-block.d.mts.map +1 -1
- package/dist/actions/delete-block.mjs +53 -53
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +31 -31
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +90 -3
- package/dist/actions/duplicate-page.d.cts.map +1 -1
- package/dist/actions/duplicate-page.d.mts +90 -3
- package/dist/actions/duplicate-page.d.mts.map +1 -1
- package/dist/actions/duplicate-page.mjs +31 -31
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +45 -45
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +38 -3
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.mts +38 -3
- package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-all-block-contents.mjs +45 -45
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +57 -57
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +687 -3
- package/dist/actions/fetch-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-block-contents.d.mts +687 -3
- package/dist/actions/fetch-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-block-contents.mjs +57 -57
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +51 -51
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +2103 -3
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
- package/dist/actions/fetch-block-metadata.d.mts +2103 -3
- package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
- package/dist/actions/fetch-block-metadata.mjs +51 -51
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +37 -37
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +148 -3
- package/dist/actions/fetch-comments.d.cts.map +1 -1
- package/dist/actions/fetch-comments.d.mts +148 -3
- package/dist/actions/fetch-comments.d.mts.map +1 -1
- package/dist/actions/fetch-comments.mjs +37 -37
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +51 -51
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +594 -3
- package/dist/actions/fetch-data.d.cts.map +1 -1
- package/dist/actions/fetch-data.d.mts +594 -3
- package/dist/actions/fetch-data.d.mts.map +1 -1
- package/dist/actions/fetch-data.mjs +51 -51
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +27 -27
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +89 -3
- package/dist/actions/fetch-database.d.cts.map +1 -1
- package/dist/actions/fetch-database.d.mts +89 -3
- package/dist/actions/fetch-database.d.mts.map +1 -1
- package/dist/actions/fetch-database.mjs +27 -27
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +35 -35
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +151 -3
- package/dist/actions/fetch-row.d.cts.map +1 -1
- package/dist/actions/fetch-row.d.mts +151 -3
- package/dist/actions/fetch-row.d.mts.map +1 -1
- package/dist/actions/fetch-row.mjs +35 -35
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +7 -7
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +44 -3
- package/dist/actions/get-about-user.d.cts.map +1 -1
- package/dist/actions/get-about-user.d.mts +44 -3
- package/dist/actions/get-about-user.d.mts.map +1 -1
- package/dist/actions/get-about-user.mjs +7 -7
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +4 -4
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +15 -3
- package/dist/actions/get-page-markdown.d.cts.map +1 -1
- package/dist/actions/get-page-markdown.d.mts +15 -3
- package/dist/actions/get-page-markdown.d.mts.map +1 -1
- package/dist/actions/get-page-markdown.mjs +4 -4
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/get-page-property-action.cjs.map +1 -1
- package/dist/actions/get-page-property-action.d.cts +13 -3
- package/dist/actions/get-page-property-action.d.cts.map +1 -1
- package/dist/actions/get-page-property-action.d.mts +13 -3
- package/dist/actions/get-page-property-action.d.mts.map +1 -1
- package/dist/actions/get-page-property-action.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +30 -30
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +163 -3
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +163 -3
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +30 -30
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +1 -1
- package/dist/actions/insert-row-from-nl.cjs.map +1 -1
- package/dist/actions/insert-row-from-nl.d.cts +19 -3
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +19 -3
- package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
- package/dist/actions/insert-row-from-nl.mjs +1 -1
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +4 -4
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +19 -3
- package/dist/actions/list-data-source-templates.d.cts.map +1 -1
- package/dist/actions/list-data-source-templates.d.mts +19 -3
- package/dist/actions/list-data-source-templates.d.mts.map +1 -1
- package/dist/actions/list-data-source-templates.mjs +4 -4
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +7 -7
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +32 -3
- package/dist/actions/list-file-uploads.d.cts.map +1 -1
- package/dist/actions/list-file-uploads.d.mts +32 -3
- package/dist/actions/list-file-uploads.d.mts.map +1 -1
- package/dist/actions/list-file-uploads.mjs +7 -7
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +6 -6
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +58 -3
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +58 -3
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +6 -6
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +27 -27
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +90 -3
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +90 -3
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +27 -27
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +18 -18
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +159 -3
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +159 -3
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +18 -18
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +49 -49
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +214 -3
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +214 -3
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +49 -49
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +38 -38
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +208 -3
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +208 -3
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +38 -38
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +3 -3
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +1706 -3
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +1706 -3
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +3 -3
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-comment.cjs.map +1 -1
- package/dist/actions/retrieve-comment.d.cts +7 -3
- package/dist/actions/retrieve-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-comment.d.mts +7 -3
- package/dist/actions/retrieve-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-comment.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +19 -19
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +78 -3
- package/dist/actions/retrieve-database-property.d.cts.map +1 -1
- package/dist/actions/retrieve-database-property.d.mts +78 -3
- package/dist/actions/retrieve-database-property.d.mts.map +1 -1
- package/dist/actions/retrieve-database-property.mjs +19 -19
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +5 -5
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +25 -3
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +25 -3
- package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
- package/dist/actions/retrieve-file-upload.mjs +5 -5
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +34 -34
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +139 -3
- package/dist/actions/retrieve-page.d.cts.map +1 -1
- package/dist/actions/retrieve-page.d.mts +139 -3
- package/dist/actions/retrieve-page.d.mts.map +1 -1
- package/dist/actions/retrieve-page.mjs +34 -34
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +54 -54
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +751 -3
- package/dist/actions/search-notion-page.d.cts.map +1 -1
- package/dist/actions/search-notion-page.d.mts +751 -3
- package/dist/actions/search-notion-page.d.mts.map +1 -1
- package/dist/actions/search-notion-page.mjs +54 -54
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +7 -7
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +33 -3
- package/dist/actions/send-file-upload.d.cts.map +1 -1
- package/dist/actions/send-file-upload.d.mts +33 -3
- package/dist/actions/send-file-upload.d.mts.map +1 -1
- package/dist/actions/send-file-upload.mjs +7 -7
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +55 -55
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +564 -3
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +564 -3
- package/dist/actions/update-block.d.mts.map +1 -1
- package/dist/actions/update-block.mjs +55 -55
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +32 -32
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +103 -3
- package/dist/actions/update-page.d.cts.map +1 -1
- package/dist/actions/update-page.d.mts +103 -3
- package/dist/actions/update-page.d.mts.map +1 -1
- package/dist/actions/update-page.mjs +32 -32
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +31 -31
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +126 -3
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +126 -3
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +31 -31
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +51 -51
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +314 -3
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +314 -3
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +51 -51
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +4 -4
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +218 -3
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +218 -3
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +4 -4
- package/dist/actions/upsert-row-database.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-row-database.mjs","names":[],"sources":["../../src/actions/insert-row-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionInsertRowDatabaseInput: z.ZodTypeAny = z.object({\n icon: z.string().describe(\"Emoji to be used as the page icon. Must be a single emoji character.\").optional(),\n cover: z.string().describe(\"URL of an external image to set as the page cover. The URL must point to a publicly accessible image.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"Type of the property. Common types: title (ONE per database), rich_text, number, select (for dropdowns), multi_select, date, people, files, checkbox, url, email, phone_number, relation. ⚠️ IMPORTANT: Use 'select' for dropdown properties - NOT 'status'. The 'status' type is a SPECIAL Notion property type (with 'To-do', 'In progress', 'Complete' groups) that most databases do NOT have. If your property shows a simple dropdown list, use 'select' even if the property is NAMED 'Status'. Read-only/unsupported types (auto-skipped): created_time, created_by, last_edited_time, last_edited_by, formula, rollup, unique_id, place.\"),\n value: z.string().describe(\"Value formatted according to the property type:\\n- title, rich_text - text string (max 2000 chars, truncated if longer)\\n- number - numeric string ex. \\\"23.4\\\"\\n- select - single option name (no commas). For multiple values, use multi_select.\\n- multi_select - comma separated values ex. \\\"India,USA\\\"\\n- date - ISO 8601. Single: \\\"2021-05-11\\\". Range: \\\"2021-05-11/2021-05-15\\\" (slash-separated).\\n- people - comma separated USER UUIDs (not names). Use NOTION_LIST_USERS to find UUIDs.\\n- relation - comma separated PAGE UUIDs (not titles). Use NOTION_QUERY_DATABASE to find UUIDs.\\n- url - a URL string.\\n- files - comma separated HTTPS URLs only (no file:// or http://).\\n- checkbox - \\\"True\\\" or \\\"False\\\"\"),\n})).default([]).describe(\"Property values for the new page. Accepts a LIST of objects or a JSON-encoded string. Each object must include: `name` (exact property name, case-sensitive), `type` (property data type), and `value` (string-formatted value).\\n\\nProperty names AND types are CASE-SENSITIVE and must match your Notion database schema exactly. Each database has exactly ONE 'title' type property; all other text properties use 'rich_text'. Use NOTION_FETCH_DATA with fetch_type='databases' to find exact property names and types.\\n\\nCORRECT FORMAT (list of property objects):\\n[\\n {\\\"name\\\": \\\"Task Name\\\", \\\"type\\\": \\\"title\\\", \\\"value\\\": \\\"Finalize Q3 report\\\"},\\n {\\\"name\\\": \\\"Priority\\\", \\\"type\\\": \\\"select\\\", \\\"value\\\": \\\"High\\\"},\\n {\\\"name\\\": \\\"Tags\\\", \\\"type\\\": \\\"multi_select\\\", \\\"value\\\": \\\"Work,Personal\\\"},\\n {\\\"name\\\": \\\"Due Date\\\", \\\"type\\\": \\\"date\\\", \\\"value\\\": \\\"2024-06-01T12:00:00.000-04:00\\\"},\\n {\\\"name\\\": \\\"Completed\\\", \\\"type\\\": \\\"checkbox\\\", \\\"value\\\": \\\"False\\\"}\\n]\\n\\nINCORRECT FORMAT (dict - causes validation error): {\\\"Task Name\\\": \\\"value\\\", \\\"Priority\\\": \\\"High\\\"}\\n\\n'status' vs 'select' TYPE CONFUSION:\\n- Dropdown lists use type='select' - even if the property is NAMED 'Status'.\\n- The 'status' type is a special Notion property with workflow groups ('To-do', 'In progress', 'Complete').\\n- Use NOTION_FETCH_DATA to verify the actual type in your database schema.\\n\\nPROPERTY TYPE ERRORS:\\n- 'X is not a property that exists': Check schema - wrong property name or wrong type.\\n- 'X is expected to be Y': Wrong type specified - use the type shown in the error.\\n\\nValue formatting rules by type:\\n- `title` / `rich_text`: Plain text string (max 2000 chars).\\n- `number`: String of a number (e.g., \\\"23.4\\\").\\n- `select`: Single option name. Commas NOT allowed - use 'multi_select' for multiple values.\\n- `multi_select`: Comma-separated option names (e.g., \\\"Work,Personal\\\"). Options must exist in schema.\\n- `date`: ISO 8601. Single: \\\"2024-06-01T12:00:00.000-04:00\\\". Range: \\\"start/end\\\" separated by \\\"/\\\".\\n- `people`: Comma-separated Notion user IDs.\\n- `relation`: Comma-separated page UUIDs (NOT text/titles). Use NOTION_QUERY_DATABASE to get page IDs.\\n- `checkbox`: \\\"True\\\" or \\\"False\\\".\\n- `url`: Valid URL string.\\n- `files`: Comma-separated URLs.\\n- `email`: Valid email string.\\n- `phone_number`: Phone number string. Only use if database property type is 'Phone'.\").optional(),\n database_id: z.string().describe(\"Identifier (UUID) of the Notion database where the new page (row) will be inserted. Can be provided with or without hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5' or '598337872cf94fdf8782e53db20768a5'). This ID must correspond to an existing database that has been explicitly shared with your integration. IMPORTANT: The database must be shared with your integration in Notion settings, otherwise you will get a 404 error. NOTE: Databases with multiple data sources (synced databases or combined views) are not supported by this integration. Use the `NOTION_FETCH_DATA` action to find available database IDs that are already shared with your integration.\"),\n child_blocks: z.array(z.object({\n bold: z.boolean().default(false).describe(\"Indicates if the text is bold.\").optional(),\n code: z.boolean().default(false).describe(\"Indicates if the text is formatted as code.\").optional(),\n link: z.string().describe(\"URL for hyperlinks or media blocks. For TEXT blocks: optional URL to make text clickable. For MEDIA blocks (image, video, file): REQUIRED - must be a valid external URL (http/https). Do not pass placeholder text in 'content' for media blocks.\").optional(),\n color: z.string().default(\"default\").describe(\"The color of the text background or text itself.\").optional(),\n italic: z.boolean().default(false).describe(\"Indicates if the text is italic.\").optional(),\n content: z.string().describe(\"The textual content for TEXT blocks only. ENHANCED: Automatically parses markdown formatting including bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Required for: paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote. NOT USED for media blocks (image, video, file) - use 'link' field instead.\").optional(),\n underline: z.boolean().default(false).describe(\"Indicates if the text is underlined.\").optional(),\n strikethrough: z.boolean().default(false).describe(\"Indicates if the text has strikethrough.\").optional(),\n block_property: z.enum([\"paragraph\", \"heading_1\", \"heading_2\", \"heading_3\", \"callout\", \"to_do\", \"toggle\", \"quote\", \"bulleted_list_item\", \"numbered_list_item\", \"file\", \"image\", \"video\", \"divider\"]).default(\"paragraph\").describe(\"The block property of the block to be added. **Common text blocks:** `paragraph`, `heading_1`, `heading_2`, `heading_3`, `callout`, `to_do`, `toggle`, `quote`, `bulleted_list_item`, `numbered_list_item`. **Special blocks:** `divider` (creates a horizontal divider line, no content required). **Media/embed blocks:** `file`, `image`, `video` (requires `link` field with external URL - direct file uploads not supported). \\n\\n**NOTE:** Notion API only supports heading levels 1-3. heading_4, heading_5, etc. are automatically converted to heading_3.\").optional(),\n}).describe(\"Include these fields in the json: {'content': 'Some words', 'link': 'https://random-link.com'. For content styling, refer to https://developers.notion.com/reference/rich-text.\\n\\nENHANCED: The 'content' field now automatically detects and parses markdown formatting - supports bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Headers (# ## ###) are handled via block_property.\")).default([]).describe(\"A list of `NotionRichText` objects defining content blocks (e.g., paragraphs, headings, media) to append to the new page's body. Accepts either a list of objects OR a JSON-encoded string representing a list. If omitted, the page body will be empty. \\n\\n**Supported block types:** paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote, bulleted_list_item, numbered_list_item, divider, image, video, file. \\n\\n**Media blocks (image, video, file):** Require the `link` field with an external URL. The Notion API does not support uploading files directly - you must provide publicly accessible URLs.\\n\\n**Note:** Notion API limits children to 100 blocks per request. If more than 100 blocks are provided, the action will automatically create the page with the first 100 blocks and then append remaining blocks in subsequent API calls.\").optional(),\n});\nconst NotionInsertRowDatabase_EmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"emoji\\\".\"),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\"),\n}).describe(\"Standard emoji icon.\");\nconst NotionInsertRowDatabase_CustomEmojiObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\"),\n url: z.string().describe(\"HTTPS URL to the emoji image.\"),\n name: z.string().describe(\"Display name of the custom emoji.\"),\n}).describe(\"Custom emoji object with identifier, name, and URL.\");\nconst NotionInsertRowDatabase_CustomEmojiIconSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"custom_emoji\\\".\"),\n custom_emoji: NotionInsertRowDatabase_CustomEmojiObjectSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionInsertRowDatabase_NotionHostedFileSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\"),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\"),\n}).describe(\"Notion-hosted file with authenticated URL.\");\nconst NotionInsertRowDatabase_FileIconWithHostedSchema: z.ZodTypeAny = z.object({\n file: NotionInsertRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Always \\\"file\\\".\"),\n}).describe(\"File icon with Notion-hosted file.\");\nconst NotionInsertRowDatabase_FileUploadObjectSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"UUID of the uploaded file object.\"),\n}).describe(\"File uploaded via API.\");\nconst NotionInsertRowDatabase_FileIconWithUploadSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"file_upload\\\".\"),\n file_upload: NotionInsertRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"File icon with uploaded file.\");\nconst NotionInsertRowDatabase_ExternalFileObjectSchema: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\"),\n}).describe(\"External file reference.\");\nconst NotionInsertRowDatabase_FileIconWithExternalSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"external\\\".\"),\n external: NotionInsertRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"File icon with external URL.\");\nconst NotionInsertRowDatabase_CoverWithHostedSchema: z.ZodTypeAny = z.object({\n file: NotionInsertRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Always \\\"file\\\".\"),\n}).describe(\"Cover with Notion-hosted file.\");\nconst NotionInsertRowDatabase_CoverWithUploadSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"file_upload\\\".\"),\n file_upload: NotionInsertRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"Cover with uploaded file.\");\nconst NotionInsertRowDatabase_CoverWithExternalSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"external\\\".\"),\n external: NotionInsertRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"Cover with external URL.\");\nconst NotionInsertRowDatabase_DatabaseParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"database_id\\\".\"),\n database_id: z.string().describe(\"The database identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a database.\");\nconst NotionInsertRowDatabase_DataSourceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"data_source_id\\\".\"),\n database_id: z.string().describe(\"The parent database identifier in UUIDv4 format.\").nullable().optional(),\n data_source_id: z.string().describe(\"The data source identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a data source.\");\nconst NotionInsertRowDatabase_PageParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"page_id\\\".\"),\n page_id: z.string().describe(\"The page identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a page.\");\nconst NotionInsertRowDatabase_WorkspaceParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\"),\n workspace: z.boolean().describe(\"Always true.\"),\n}).describe(\"Parent is the workspace.\");\nconst NotionInsertRowDatabase_BlockParentSchema: z.ZodTypeAny = z.object({\n type: z.string().describe(\"Always \\\"block_id\\\".\"),\n block_id: z.string().describe(\"The block identifier in UUIDv4 format.\"),\n}).describe(\"Parent is a block.\");\nconst NotionInsertRowDatabase_PartialUserSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the user in UUID format.\"),\n object: z.string().describe(\"Always \\\"user\\\".\"),\n}).describe(\"Partial user object representing a Notion user.\");\nexport const NotionInsertRowDatabaseOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\"),\n url: z.string().describe(\"URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionInsertRowDatabase_EmojiIconSchema, NotionInsertRowDatabase_CustomEmojiIconSchema, NotionInsertRowDatabase_FileIconWithHostedSchema, NotionInsertRowDatabase_FileIconWithUploadSchema, NotionInsertRowDatabase_FileIconWithExternalSchema]).nullable().optional(),\n cover: z.union([NotionInsertRowDatabase_CoverWithHostedSchema, NotionInsertRowDatabase_CoverWithUploadSchema, NotionInsertRowDatabase_CoverWithExternalSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\". Identifies the type of object.\"),\n parent: z.union([NotionInsertRowDatabase_DatabaseParentSchema, NotionInsertRowDatabase_DataSourceParentSchema, NotionInsertRowDatabase_PageParentSchema, NotionInsertRowDatabase_WorkspaceParentSchema, NotionInsertRowDatabase_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionInsertRowDatabase_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page. Keys are property names, values are property objects.\").nullable().optional(),\n public_url: z.string().describe(\"Public URL if the page is published, otherwise null.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for the API request.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable().optional(),\n last_edited_by: NotionInsertRowDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the page was last edited.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message indicating any special handling performed during execution, such as automatic chunking of blocks when more than 100 were provided.\").nullable().optional(),\n}).describe(\"Response object returned when inserting a row (page) in a Notion database.\\n\\nReturns the complete created page object with all properties and metadata.\");\n\nexport const notionInsertRowDatabase = action(\"NOTION_INSERT_ROW_DATABASE\", {\n slug: \"notion-insert-row-database\",\n name: \"Insert row database\",\n description: \"Creates a new page (row) in a specified Notion database. Prerequisites: - Database must be shared with your integration - Property names AND types must match schema exactly (case-sensitive) - Use NOTION_FETCH_DATA with fetch_type='databases' first to get exact property names and types - Each database has ONE 'title' property; other text fields are 'rich_text' - Database must NOT have multiple data sources (synced databases are not supported) Common Errors: - 404: Database not shared with integration - 400 \\\"not a property\\\": Wrong property name - 400 \\\"expected to be X\\\": Wrong property type - 400 \\\"multiple_data_sources\\\": Database uses multiple data sources (not supported) Note: Rich text content in child_blocks is automatically truncated to 2000 characters per Notion API limits.\",\n input: NotionInsertRowDatabaseInput,\n output: NotionInsertRowDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,s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AAS,CAAC,CAAC,SAAS;CACpN,CAAC,CAAC,CAAC,SAAS,0JAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"insert-row-database.mjs","names":[],"sources":["../../src/actions/insert-row-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionInsertRowDatabaseInput = z.object({\n icon: z.string().describe(\"Emoji to be used as the page icon. Must be a single emoji character.\").optional(),\n cover: z.string().describe(\"URL of an external image to set as the page cover. The URL must point to a publicly accessible image.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the property\"),\n type: z.enum([\"title\", \"rich_text\", \"number\", \"select\", \"multi_select\", \"date\", \"people\", \"files\", \"checkbox\", \"url\", \"email\", \"phone_number\", \"formula\", \"relation\", \"rollup\", \"status\", \"created_time\", \"created_by\", \"last_edited_time\", \"last_edited_by\", \"place\", \"unique_id\"]).describe(\"Type of the property. Common types: title (ONE per database), rich_text, number, select (for dropdowns), multi_select, date, people, files, checkbox, url, email, phone_number, relation. ⚠️ IMPORTANT: Use 'select' for dropdown properties - NOT 'status'. The 'status' type is a SPECIAL Notion property type (with 'To-do', 'In progress', 'Complete' groups) that most databases do NOT have. If your property shows a simple dropdown list, use 'select' even if the property is NAMED 'Status'. Read-only/unsupported types (auto-skipped): created_time, created_by, last_edited_time, last_edited_by, formula, rollup, unique_id, place.\"),\n value: z.string().describe(\"Value formatted according to the property type:\\n- title, rich_text - text string (max 2000 chars, truncated if longer)\\n- number - numeric string ex. \\\"23.4\\\"\\n- select - single option name (no commas). For multiple values, use multi_select.\\n- multi_select - comma separated values ex. \\\"India,USA\\\"\\n- date - ISO 8601. Single: \\\"2021-05-11\\\". Range: \\\"2021-05-11/2021-05-15\\\" (slash-separated).\\n- people - comma separated USER UUIDs (not names). Use NOTION_LIST_USERS to find UUIDs.\\n- relation - comma separated PAGE UUIDs (not titles). Use NOTION_QUERY_DATABASE to find UUIDs.\\n- url - a URL string.\\n- files - comma separated HTTPS URLs only (no file:// or http://).\\n- checkbox - \\\"True\\\" or \\\"False\\\"\"),\n})).default([]).describe(\"Property values for the new page. Accepts a LIST of objects or a JSON-encoded string. Each object must include: `name` (exact property name, case-sensitive), `type` (property data type), and `value` (string-formatted value).\\n\\nProperty names AND types are CASE-SENSITIVE and must match your Notion database schema exactly. Each database has exactly ONE 'title' type property; all other text properties use 'rich_text'. Use NOTION_FETCH_DATA with fetch_type='databases' to find exact property names and types.\\n\\nCORRECT FORMAT (list of property objects):\\n[\\n {\\\"name\\\": \\\"Task Name\\\", \\\"type\\\": \\\"title\\\", \\\"value\\\": \\\"Finalize Q3 report\\\"},\\n {\\\"name\\\": \\\"Priority\\\", \\\"type\\\": \\\"select\\\", \\\"value\\\": \\\"High\\\"},\\n {\\\"name\\\": \\\"Tags\\\", \\\"type\\\": \\\"multi_select\\\", \\\"value\\\": \\\"Work,Personal\\\"},\\n {\\\"name\\\": \\\"Due Date\\\", \\\"type\\\": \\\"date\\\", \\\"value\\\": \\\"2024-06-01T12:00:00.000-04:00\\\"},\\n {\\\"name\\\": \\\"Completed\\\", \\\"type\\\": \\\"checkbox\\\", \\\"value\\\": \\\"False\\\"}\\n]\\n\\nINCORRECT FORMAT (dict - causes validation error): {\\\"Task Name\\\": \\\"value\\\", \\\"Priority\\\": \\\"High\\\"}\\n\\n'status' vs 'select' TYPE CONFUSION:\\n- Dropdown lists use type='select' - even if the property is NAMED 'Status'.\\n- The 'status' type is a special Notion property with workflow groups ('To-do', 'In progress', 'Complete').\\n- Use NOTION_FETCH_DATA to verify the actual type in your database schema.\\n\\nPROPERTY TYPE ERRORS:\\n- 'X is not a property that exists': Check schema - wrong property name or wrong type.\\n- 'X is expected to be Y': Wrong type specified - use the type shown in the error.\\n\\nValue formatting rules by type:\\n- `title` / `rich_text`: Plain text string (max 2000 chars).\\n- `number`: String of a number (e.g., \\\"23.4\\\").\\n- `select`: Single option name. Commas NOT allowed - use 'multi_select' for multiple values.\\n- `multi_select`: Comma-separated option names (e.g., \\\"Work,Personal\\\"). Options must exist in schema.\\n- `date`: ISO 8601. Single: \\\"2024-06-01T12:00:00.000-04:00\\\". Range: \\\"start/end\\\" separated by \\\"/\\\".\\n- `people`: Comma-separated Notion user IDs.\\n- `relation`: Comma-separated page UUIDs (NOT text/titles). Use NOTION_QUERY_DATABASE to get page IDs.\\n- `checkbox`: \\\"True\\\" or \\\"False\\\".\\n- `url`: Valid URL string.\\n- `files`: Comma-separated URLs.\\n- `email`: Valid email string.\\n- `phone_number`: Phone number string. Only use if database property type is 'Phone'.\").optional(),\n database_id: z.string().describe(\"Identifier (UUID) of the Notion database where the new page (row) will be inserted. Can be provided with or without hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5' or '598337872cf94fdf8782e53db20768a5'). This ID must correspond to an existing database that has been explicitly shared with your integration. IMPORTANT: The database must be shared with your integration in Notion settings, otherwise you will get a 404 error. NOTE: Databases with multiple data sources (synced databases or combined views) are not supported by this integration. Use the `NOTION_FETCH_DATA` action to find available database IDs that are already shared with your integration.\"),\n child_blocks: z.array(z.object({\n bold: z.boolean().default(false).describe(\"Indicates if the text is bold.\").optional(),\n code: z.boolean().default(false).describe(\"Indicates if the text is formatted as code.\").optional(),\n link: z.string().describe(\"URL for hyperlinks or media blocks. For TEXT blocks: optional URL to make text clickable. For MEDIA blocks (image, video, file): REQUIRED - must be a valid external URL (http/https). Do not pass placeholder text in 'content' for media blocks.\").optional(),\n color: z.string().default(\"default\").describe(\"The color of the text background or text itself.\").optional(),\n italic: z.boolean().default(false).describe(\"Indicates if the text is italic.\").optional(),\n content: z.string().describe(\"The textual content for TEXT blocks only. ENHANCED: Automatically parses markdown formatting including bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Required for: paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote. NOT USED for media blocks (image, video, file) - use 'link' field instead.\").optional(),\n underline: z.boolean().default(false).describe(\"Indicates if the text is underlined.\").optional(),\n strikethrough: z.boolean().default(false).describe(\"Indicates if the text has strikethrough.\").optional(),\n block_property: z.enum([\"paragraph\", \"heading_1\", \"heading_2\", \"heading_3\", \"callout\", \"to_do\", \"toggle\", \"quote\", \"bulleted_list_item\", \"numbered_list_item\", \"file\", \"image\", \"video\", \"divider\"]).default(\"paragraph\").describe(\"The block property of the block to be added. **Common text blocks:** `paragraph`, `heading_1`, `heading_2`, `heading_3`, `callout`, `to_do`, `toggle`, `quote`, `bulleted_list_item`, `numbered_list_item`. **Special blocks:** `divider` (creates a horizontal divider line, no content required). **Media/embed blocks:** `file`, `image`, `video` (requires `link` field with external URL - direct file uploads not supported). \\n\\n**NOTE:** Notion API only supports heading levels 1-3. heading_4, heading_5, etc. are automatically converted to heading_3.\").optional(),\n}).describe(\"Include these fields in the json: {'content': 'Some words', 'link': 'https://random-link.com'. For content styling, refer to https://developers.notion.com/reference/rich-text.\\n\\nENHANCED: The 'content' field now automatically detects and parses markdown formatting - supports bold (**text**), italic (*text*), strikethrough (~~text~~), inline code (`code`), and links ([text](url)). Headers (# ## ###) are handled via block_property.\")).default([]).describe(\"A list of `NotionRichText` objects defining content blocks (e.g., paragraphs, headings, media) to append to the new page's body. Accepts either a list of objects OR a JSON-encoded string representing a list. If omitted, the page body will be empty. \\n\\n**Supported block types:** paragraph, heading_1, heading_2, heading_3, callout, to_do, toggle, quote, bulleted_list_item, numbered_list_item, divider, image, video, file. \\n\\n**Media blocks (image, video, file):** Require the `link` field with an external URL. The Notion API does not support uploading files directly - you must provide publicly accessible URLs.\\n\\n**Note:** Notion API limits children to 100 blocks per request. If more than 100 blocks are provided, the action will automatically create the page with the first 100 blocks and then append remaining blocks in subsequent API calls.\").optional(),\n});\nconst NotionInsertRowDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"emoji\\\".\").nullable(),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\").nullable(),\n}).describe(\"Standard emoji icon.\");\nconst NotionInsertRowDatabase_CustomEmojiObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"HTTPS URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).describe(\"Custom emoji object with identifier, name, and URL.\");\nconst NotionInsertRowDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"custom_emoji\\\".\").nullable(),\n custom_emoji: NotionInsertRowDatabase_CustomEmojiObjectSchema.nullable(),\n}).describe(\"Custom emoji icon.\");\nconst NotionInsertRowDatabase_NotionHostedFileSchema = z.object({\n url: z.string().describe(\"Authenticated URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).describe(\"Notion-hosted file with authenticated URL.\");\nconst NotionInsertRowDatabase_FileIconWithHostedSchema = z.object({\n file: NotionInsertRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Always \\\"file\\\".\").nullable(),\n}).describe(\"File icon with Notion-hosted file.\");\nconst NotionInsertRowDatabase_FileUploadObjectSchema = z.object({\n id: z.string().describe(\"UUID of the uploaded file object.\").nullable(),\n}).describe(\"File uploaded via API.\");\nconst NotionInsertRowDatabase_FileIconWithUploadSchema = z.object({\n type: z.string().describe(\"Always \\\"file_upload\\\".\").nullable(),\n file_upload: NotionInsertRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"File icon with uploaded file.\");\nconst NotionInsertRowDatabase_ExternalFileObjectSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).describe(\"External file reference.\");\nconst NotionInsertRowDatabase_FileIconWithExternalSchema = z.object({\n type: z.string().describe(\"Always \\\"external\\\".\").nullable(),\n external: NotionInsertRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"File icon with external URL.\");\nconst NotionInsertRowDatabase_CoverWithHostedSchema = z.object({\n file: NotionInsertRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Always \\\"file\\\".\").nullable(),\n}).describe(\"Cover with Notion-hosted file.\");\nconst NotionInsertRowDatabase_CoverWithUploadSchema = z.object({\n type: z.string().describe(\"Always \\\"file_upload\\\".\").nullable(),\n file_upload: NotionInsertRowDatabase_FileUploadObjectSchema.nullable(),\n}).describe(\"Cover with uploaded file.\");\nconst NotionInsertRowDatabase_CoverWithExternalSchema = z.object({\n type: z.string().describe(\"Always \\\"external\\\".\").nullable(),\n external: NotionInsertRowDatabase_ExternalFileObjectSchema.nullable(),\n}).describe(\"Cover with external URL.\");\nconst NotionInsertRowDatabase_DatabaseParentSchema = z.object({\n type: z.string().describe(\"Always \\\"database_id\\\".\").nullable(),\n database_id: z.string().describe(\"The database identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a database.\");\nconst NotionInsertRowDatabase_DataSourceParentSchema = z.object({\n type: z.string().describe(\"Always \\\"data_source_id\\\".\").nullable(),\n database_id: z.string().describe(\"The parent database identifier in UUIDv4 format.\").nullable().optional(),\n data_source_id: z.string().describe(\"The data source identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a data source.\");\nconst NotionInsertRowDatabase_PageParentSchema = z.object({\n type: z.string().describe(\"Always \\\"page_id\\\".\").nullable(),\n page_id: z.string().describe(\"The page identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a page.\");\nconst NotionInsertRowDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Always true.\").nullable(),\n}).describe(\"Parent is the workspace.\");\nconst NotionInsertRowDatabase_BlockParentSchema = z.object({\n type: z.string().describe(\"Always \\\"block_id\\\".\").nullable(),\n block_id: z.string().describe(\"The block identifier in UUIDv4 format.\").nullable(),\n}).describe(\"Parent is a block.\");\nconst NotionInsertRowDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user in UUID format.\").nullable(),\n object: z.string().describe(\"Always \\\"user\\\".\").nullable(),\n}).describe(\"Partial user object representing a Notion user.\");\nexport const NotionInsertRowDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionInsertRowDatabase_EmojiIconSchema, NotionInsertRowDatabase_CustomEmojiIconSchema, NotionInsertRowDatabase_FileIconWithHostedSchema, NotionInsertRowDatabase_FileIconWithUploadSchema, NotionInsertRowDatabase_FileIconWithExternalSchema]).nullable().optional(),\n cover: z.union([NotionInsertRowDatabase_CoverWithHostedSchema, NotionInsertRowDatabase_CoverWithUploadSchema, NotionInsertRowDatabase_CoverWithExternalSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\". Identifies the type of object.\").nullable(),\n parent: z.union([NotionInsertRowDatabase_DatabaseParentSchema, NotionInsertRowDatabase_DataSourceParentSchema, NotionInsertRowDatabase_PageParentSchema, NotionInsertRowDatabase_WorkspaceParentSchema, NotionInsertRowDatabase_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionInsertRowDatabase_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Property values of the page. Keys are property names, values are property objects.\").nullable().optional(),\n public_url: z.string().describe(\"Public URL if the page is published, otherwise null.\").nullable().optional(),\n request_id: z.string().describe(\"Unique identifier for the API request.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable().optional(),\n last_edited_by: NotionInsertRowDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the page was last edited.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message indicating any special handling performed during execution, such as automatic chunking of blocks when more than 100 were provided.\").nullable().optional(),\n}).describe(\"Response object returned when inserting a row (page) in a Notion database.\\n\\nReturns the complete created page object with all properties and metadata.\");\n\nexport const notionInsertRowDatabase = action(\"NOTION_INSERT_ROW_DATABASE\", {\n slug: \"notion-insert-row-database\",\n name: \"Insert row database\",\n description: \"Creates a new page (row) in a specified Notion database. Prerequisites: - Database must be shared with your integration - Property names AND types must match schema exactly (case-sensitive) - Use NOTION_FETCH_DATA with fetch_type='databases' first to get exact property names and types - Each database has ONE 'title' property; other text fields are 'rich_text' - Database must NOT have multiple data sources (synced databases are not supported) Common Errors: - 404: Database not shared with integration - 400 \\\"not a property\\\": Wrong property name - 400 \\\"expected to be X\\\": Wrong property type - 400 \\\"multiple_data_sources\\\": Database uses multiple data sources (not supported) Note: Rich text content in child_blocks is automatically truncated to 2000 characters per Notion API limits.\",\n input: NotionInsertRowDatabaseInput,\n output: NotionInsertRowDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sEAAsE,CAAC,CAAC,SAAS;CAC3G,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uGAAuG,CAAC,CAAC,SAAS;CAC7I,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;EAChD,MAAM,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GAAgB;GAAW;GAAY;GAAU;GAAU;GAAgB;GAAc;GAAoB;GAAkB;GAAS;EAAW,CAAC,CAAC,CAAC,SAAS,mnBAAmnB;EACj5B,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,usBAAusB;CACpuB,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,+1EAA+1E,CAAC,CAAC,SAAS;CACj4E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,upBAAupB;CACxrB,cAAc,EAAE,MAAM,EAAE,OAAO;EAC/B,MAAM,EAAE,QAAQ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RowFromNlInput = zod.z.object({
|
|
|
8
8
|
database_id: zod.z.string().describe("Notion database UUID where the new row will be inserted. Can be provided with or without hyphens.")
|
|
9
9
|
});
|
|
10
10
|
const NotionInsertRowFromNlOutput = zod.z.object({
|
|
11
|
-
id: zod.z.string().describe("Unique identifier for the created page in UUID format."),
|
|
11
|
+
id: zod.z.string().describe("Unique identifier for the created page in UUID format.").nullable(),
|
|
12
12
|
url: zod.z.string().describe("URL of the created Notion page.").nullable().optional(),
|
|
13
13
|
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The property values of the created page as returned by Notion.").nullable().optional(),
|
|
14
14
|
created_time: zod.z.string().describe("ISO 8601 timestamp when the page was created.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-row-from-nl.cjs","names":["z","action"],"sources":["../../src/actions/insert-row-from-nl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionInsertRowFromNlInput
|
|
1
|
+
{"version":3,"file":"insert-row-from-nl.cjs","names":["z","action"],"sources":["../../src/actions/insert-row-from-nl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionInsertRowFromNlInput = z.object({\n icon: z.string().describe(\"Optional emoji icon for the page.\").optional(),\n cover: z.string().describe(\"Optional cover image URL for the page.\").optional(),\n nl_query: z.string().describe(\"Natural language description of the row to create. Example: 'Add task: Review PR #14143, priority High, status In Progress, due tomorrow'.\"),\n database_id: z.string().describe(\"Notion database UUID where the new row will be inserted. Can be provided with or without hyphens.\"),\n});\nexport const NotionInsertRowFromNlOutput = z.object({\n id: z.string().describe(\"Unique identifier for the created page in UUID format.\").nullable(),\n url: z.string().describe(\"URL of the created Notion page.\").nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"The property values of the created page as returned by Notion.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable().optional(),\n llm_generated_fields: z.record(z.string(), z.unknown()).describe(\"The raw property payload generated by the LLM, included for transparency and debugging.\").nullable().optional(),\n});\n\nexport const notionInsertRowFromNl = action(\"NOTION_INSERT_ROW_FROM_NL\", {\n slug: \"notion-insert-row-from-nl\",\n name: \"Insert Row From Natural Language\",\n description: \"Creates a new row (page) in a Notion database from a natural language description. Fetches the database schema at runtime, uses an LLM to generate the correctly-formatted property payload, and creates the page.\",\n input: NotionInsertRowFromNlInput,\n output: NotionInsertRowFromNlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC9E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;CAC1K,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;AACtI,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;CAC3F,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7I,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvG,sBAAsBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClL,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/insert-row-from-nl.d.ts
|
|
4
|
-
declare const NotionInsertRowFromNlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionInsertRowFromNlInput: z.ZodObject<{
|
|
5
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
6
|
+
cover: z.ZodOptional<z.ZodString>;
|
|
7
|
+
nl_query: z.ZodString;
|
|
8
|
+
database_id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const NotionInsertRowFromNlOutput: z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
|
+
created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
llm_generated_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const notionInsertRowFromNl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
nl_query: string;
|
|
19
|
+
database_id: string;
|
|
20
|
+
icon?: string | undefined;
|
|
21
|
+
cover?: string | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { notionInsertRowFromNl };
|
|
9
25
|
//# sourceMappingURL=insert-row-from-nl.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-row-from-nl.d.cts","names":[],"sources":["../../src/actions/insert-row-from-nl.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"insert-row-from-nl.d.cts","names":[],"sources":["../../src/actions/insert-row-from-nl.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/insert-row-from-nl.d.ts
|
|
4
|
-
declare const NotionInsertRowFromNlInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionInsertRowFromNlInput: z.ZodObject<{
|
|
5
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
6
|
+
cover: z.ZodOptional<z.ZodString>;
|
|
7
|
+
nl_query: z.ZodString;
|
|
8
|
+
database_id: z.ZodString;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const NotionInsertRowFromNlOutput: z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
14
|
+
created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
15
|
+
llm_generated_fields: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
16
|
+
}, z.core.$strip>;
|
|
17
|
+
declare const notionInsertRowFromNl: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
18
|
+
nl_query: string;
|
|
19
|
+
database_id: string;
|
|
20
|
+
icon?: string | undefined;
|
|
21
|
+
cover?: string | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { notionInsertRowFromNl };
|
|
9
25
|
//# sourceMappingURL=insert-row-from-nl.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-row-from-nl.d.mts","names":[],"sources":["../../src/actions/insert-row-from-nl.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"insert-row-from-nl.d.mts","names":[],"sources":["../../src/actions/insert-row-from-nl.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;cAM1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;cAQ3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -11,7 +11,7 @@ const notionInsertRowFromNl = action("NOTION_INSERT_ROW_FROM_NL", {
|
|
|
11
11
|
database_id: z.string().describe("Notion database UUID where the new row will be inserted. Can be provided with or without hyphens.")
|
|
12
12
|
}),
|
|
13
13
|
output: z.object({
|
|
14
|
-
id: z.string().describe("Unique identifier for the created page in UUID format."),
|
|
14
|
+
id: z.string().describe("Unique identifier for the created page in UUID format.").nullable(),
|
|
15
15
|
url: z.string().describe("URL of the created Notion page.").nullable().optional(),
|
|
16
16
|
properties: z.record(z.string(), z.unknown()).describe("The property values of the created page as returned by Notion.").nullable().optional(),
|
|
17
17
|
created_time: z.string().describe("ISO 8601 timestamp when the page was created.").nullable().optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insert-row-from-nl.mjs","names":[],"sources":["../../src/actions/insert-row-from-nl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionInsertRowFromNlInput
|
|
1
|
+
{"version":3,"file":"insert-row-from-nl.mjs","names":[],"sources":["../../src/actions/insert-row-from-nl.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionInsertRowFromNlInput = z.object({\n icon: z.string().describe(\"Optional emoji icon for the page.\").optional(),\n cover: z.string().describe(\"Optional cover image URL for the page.\").optional(),\n nl_query: z.string().describe(\"Natural language description of the row to create. Example: 'Add task: Review PR #14143, priority High, status In Progress, due tomorrow'.\"),\n database_id: z.string().describe(\"Notion database UUID where the new row will be inserted. Can be provided with or without hyphens.\"),\n});\nexport const NotionInsertRowFromNlOutput = z.object({\n id: z.string().describe(\"Unique identifier for the created page in UUID format.\").nullable(),\n url: z.string().describe(\"URL of the created Notion page.\").nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"The property values of the created page as returned by Notion.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the page was created.\").nullable().optional(),\n llm_generated_fields: z.record(z.string(), z.unknown()).describe(\"The raw property payload generated by the LLM, included for transparency and debugging.\").nullable().optional(),\n});\n\nexport const notionInsertRowFromNl = action(\"NOTION_INSERT_ROW_FROM_NL\", {\n slug: \"notion-insert-row-from-nl\",\n name: \"Insert Row From Natural Language\",\n description: \"Creates a new row (page) in a Notion database from a natural language description. Fetches the database schema at runtime, uses an LLM to generate the correctly-formatted property payload, and creates the page.\",\n input: NotionInsertRowFromNlInput,\n output: NotionInsertRowFromNlOutput,\n});\n"],"mappings":";;AAkBA,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAlBwC,EAAE,OAAO;EACjD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4IAA4I;EAC1K,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,mGAAmG;CACtI,CAaS;CACP,QAbyC,EAAE,OAAO;EAClD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS;EAC3F,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7I,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvG,sBAAsB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yFAAyF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,CAOU;AACV,CAAC"}
|
|
@@ -7,12 +7,12 @@ const NotionListDataSourceTemplatesInput = zod.z.object({
|
|
|
7
7
|
data_source_id: zod.z.string().describe("Data source ID (UUIDv4). Path parameter identifying the data source to list templates from.")
|
|
8
8
|
}).describe("Request parameters for listing templates in a Notion data source.");
|
|
9
9
|
const NotionListDataSourceTemplates_TemplateSchema = zod.z.object({
|
|
10
|
-
id: zod.z.string().describe("Unique identifier for the template (UUIDv4 format). Templates are also valid Notion pages and can be retrieved using the Retrieve a page API."),
|
|
11
|
-
name: zod.z.string().describe("Display name of the template as shown in the Notion UI."),
|
|
12
|
-
is_default: zod.z.boolean().describe("Indicates whether this template is the default template for the data source. When set to true, this template is automatically applied when creating new pages without specifying a template.")
|
|
10
|
+
id: zod.z.string().describe("Unique identifier for the template (UUIDv4 format). Templates are also valid Notion pages and can be retrieved using the Retrieve a page API.").nullable(),
|
|
11
|
+
name: zod.z.string().describe("Display name of the template as shown in the Notion UI.").nullable(),
|
|
12
|
+
is_default: zod.z.boolean().describe("Indicates whether this template is the default template for the data source. When set to true, this template is automatically applied when creating new pages without specifying a template.").nullable()
|
|
13
13
|
}).describe("A Notion data source template object.");
|
|
14
14
|
const NotionListDataSourceTemplatesOutput = zod.z.object({
|
|
15
|
-
has_more: zod.z.boolean().describe("Indicates whether additional templates exist beyond the current page of results. When true, use next_cursor to retrieve the next page."),
|
|
15
|
+
has_more: zod.z.boolean().describe("Indicates whether additional templates exist beyond the current page of results. When true, use next_cursor to retrieve the next page.").nullable(),
|
|
16
16
|
templates: zod.z.array(NotionListDataSourceTemplates_TemplateSchema).describe("Collection of template objects available for the data source. Contains up to 100 templates per response."),
|
|
17
17
|
next_cursor: zod.z.string().describe("Cursor ID for retrieving the next page of results. Only present when has_more is true. Use this value as the start_cursor parameter in the next API request to retrieve additional templates.").nullable().optional()
|
|
18
18
|
}).describe("Response model for listing Notion data source templates.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-data-source-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-data-source-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListDataSourceTemplatesInput
|
|
1
|
+
{"version":3,"file":"list-data-source-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-data-source-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListDataSourceTemplatesInput = z.object({\n page_size: z.number().int().describe(\"Number of templates to return per page (1–100). Defaults to 100 if omitted.\").optional(),\n start_cursor: z.string().describe(\"Cursor for pagination. Use the `next_cursor` value from a previous response to retrieve the next page.\").optional(),\n data_source_id: z.string().describe(\"Data source ID (UUIDv4). Path parameter identifying the data source to list templates from.\"),\n}).describe(\"Request parameters for listing templates in a Notion data source.\");\nconst NotionListDataSourceTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the template (UUIDv4 format). Templates are also valid Notion pages and can be retrieved using the Retrieve a page API.\").nullable(),\n name: z.string().describe(\"Display name of the template as shown in the Notion UI.\").nullable(),\n is_default: z.boolean().describe(\"Indicates whether this template is the default template for the data source. When set to true, this template is automatically applied when creating new pages without specifying a template.\").nullable(),\n}).describe(\"A Notion data source template object.\");\nexport const NotionListDataSourceTemplatesOutput = z.object({\n has_more: z.boolean().describe(\"Indicates whether additional templates exist beyond the current page of results. When true, use next_cursor to retrieve the next page.\").nullable(),\n templates: z.array(NotionListDataSourceTemplates_TemplateSchema).describe(\"Collection of template objects available for the data source. Contains up to 100 templates per response.\"),\n next_cursor: z.string().describe(\"Cursor ID for retrieving the next page of results. Only present when has_more is true. Use this value as the start_cursor parameter in the next API request to retrieve additional templates.\").nullable().optional(),\n}).describe(\"Response model for listing Notion data source templates.\");\n\nexport const notionListDataSourceTemplates = action(\"NOTION_LIST_DATA_SOURCE_TEMPLATES\", {\n slug: \"notion-list-data-source-templates\",\n name: \"List data source templates\",\n description: \"Tool to list all templates for a Notion data source. Use when needing to discover template IDs/names for bulk page creation. Use after confirming the data_source_id.\",\n input: NotionListDataSourceTemplatesInput,\n output: NotionListDataSourceTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqCA,IAAAA,EAAE,OAAO;CACzD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC7H,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACrJ,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;AACnI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CAClL,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;AAC5O,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CAClL,WAAWA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0GAA0G;CACpL,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxP,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,MAAa,gCAAgCC,eAAAA,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-data-source-templates.d.ts
|
|
4
|
-
declare const NotionListDataSourceTemplatesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionListDataSourceTemplatesInput: z.ZodObject<{
|
|
5
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
start_cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
data_source_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NotionListDataSourceTemplatesOutput: z.ZodObject<{
|
|
10
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
is_default: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const notionListDataSourceTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
data_source_id: string;
|
|
20
|
+
page_size?: number | undefined;
|
|
21
|
+
start_cursor?: string | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { notionListDataSourceTemplates };
|
|
9
25
|
//# sourceMappingURL=list-data-source-templates.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-data-source-templates.d.cts","names":[],"sources":["../../src/actions/list-data-source-templates.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"list-data-source-templates.d.cts","names":[],"sources":["../../src/actions/list-data-source-templates.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAUlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -1,9 +1,25 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-data-source-templates.d.ts
|
|
4
|
-
declare const NotionListDataSourceTemplatesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionListDataSourceTemplatesInput: z.ZodObject<{
|
|
5
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
start_cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
data_source_id: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const NotionListDataSourceTemplatesOutput: z.ZodObject<{
|
|
10
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
11
|
+
templates: z.ZodArray<z.ZodObject<{
|
|
12
|
+
id: z.ZodNullable<z.ZodString>;
|
|
13
|
+
name: z.ZodNullable<z.ZodString>;
|
|
14
|
+
is_default: z.ZodNullable<z.ZodBoolean>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
declare const notionListDataSourceTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
19
|
+
data_source_id: string;
|
|
20
|
+
page_size?: number | undefined;
|
|
21
|
+
start_cursor?: string | undefined;
|
|
22
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
23
|
//#endregion
|
|
8
24
|
export { notionListDataSourceTemplates };
|
|
9
25
|
//# sourceMappingURL=list-data-source-templates.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-data-source-templates.d.mts","names":[],"sources":["../../src/actions/list-data-source-templates.ts"],"mappings":";;;cAIa,kCAAA,
|
|
1
|
+
{"version":3,"file":"list-data-source-templates.d.mts","names":[],"sources":["../../src/actions/list-data-source-templates.ts"],"mappings":";;;cAIa,kCAAA,EAAkC,CAAA,CAAA,SAAA;;;;;cAUlC,mCAAA,EAAmC,CAAA,CAAA,SAAA;;;;;;;;;cAMnC,6BAAA,gCAA6B,wBAAA"}
|
|
@@ -7,9 +7,9 @@ const NotionListDataSourceTemplatesInput = z.object({
|
|
|
7
7
|
data_source_id: z.string().describe("Data source ID (UUIDv4). Path parameter identifying the data source to list templates from.")
|
|
8
8
|
}).describe("Request parameters for listing templates in a Notion data source.");
|
|
9
9
|
const NotionListDataSourceTemplates_TemplateSchema = z.object({
|
|
10
|
-
id: z.string().describe("Unique identifier for the template (UUIDv4 format). Templates are also valid Notion pages and can be retrieved using the Retrieve a page API."),
|
|
11
|
-
name: z.string().describe("Display name of the template as shown in the Notion UI."),
|
|
12
|
-
is_default: z.boolean().describe("Indicates whether this template is the default template for the data source. When set to true, this template is automatically applied when creating new pages without specifying a template.")
|
|
10
|
+
id: z.string().describe("Unique identifier for the template (UUIDv4 format). Templates are also valid Notion pages and can be retrieved using the Retrieve a page API.").nullable(),
|
|
11
|
+
name: z.string().describe("Display name of the template as shown in the Notion UI.").nullable(),
|
|
12
|
+
is_default: z.boolean().describe("Indicates whether this template is the default template for the data source. When set to true, this template is automatically applied when creating new pages without specifying a template.").nullable()
|
|
13
13
|
}).describe("A Notion data source template object.");
|
|
14
14
|
const notionListDataSourceTemplates = action("NOTION_LIST_DATA_SOURCE_TEMPLATES", {
|
|
15
15
|
slug: "notion-list-data-source-templates",
|
|
@@ -17,7 +17,7 @@ const notionListDataSourceTemplates = action("NOTION_LIST_DATA_SOURCE_TEMPLATES"
|
|
|
17
17
|
description: "Tool to list all templates for a Notion data source. Use when needing to discover template IDs/names for bulk page creation. Use after confirming the data_source_id.",
|
|
18
18
|
input: NotionListDataSourceTemplatesInput,
|
|
19
19
|
output: z.object({
|
|
20
|
-
has_more: z.boolean().describe("Indicates whether additional templates exist beyond the current page of results. When true, use next_cursor to retrieve the next page."),
|
|
20
|
+
has_more: z.boolean().describe("Indicates whether additional templates exist beyond the current page of results. When true, use next_cursor to retrieve the next page.").nullable(),
|
|
21
21
|
templates: z.array(NotionListDataSourceTemplates_TemplateSchema).describe("Collection of template objects available for the data source. Contains up to 100 templates per response."),
|
|
22
22
|
next_cursor: z.string().describe("Cursor ID for retrieving the next page of results. Only present when has_more is true. Use this value as the start_cursor parameter in the next API request to retrieve additional templates.").nullable().optional()
|
|
23
23
|
}).describe("Response model for listing Notion data source templates.")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-data-source-templates.mjs","names":[],"sources":["../../src/actions/list-data-source-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListDataSourceTemplatesInput
|
|
1
|
+
{"version":3,"file":"list-data-source-templates.mjs","names":[],"sources":["../../src/actions/list-data-source-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListDataSourceTemplatesInput = z.object({\n page_size: z.number().int().describe(\"Number of templates to return per page (1–100). Defaults to 100 if omitted.\").optional(),\n start_cursor: z.string().describe(\"Cursor for pagination. Use the `next_cursor` value from a previous response to retrieve the next page.\").optional(),\n data_source_id: z.string().describe(\"Data source ID (UUIDv4). Path parameter identifying the data source to list templates from.\"),\n}).describe(\"Request parameters for listing templates in a Notion data source.\");\nconst NotionListDataSourceTemplates_TemplateSchema = z.object({\n id: z.string().describe(\"Unique identifier for the template (UUIDv4 format). Templates are also valid Notion pages and can be retrieved using the Retrieve a page API.\").nullable(),\n name: z.string().describe(\"Display name of the template as shown in the Notion UI.\").nullable(),\n is_default: z.boolean().describe(\"Indicates whether this template is the default template for the data source. When set to true, this template is automatically applied when creating new pages without specifying a template.\").nullable(),\n}).describe(\"A Notion data source template object.\");\nexport const NotionListDataSourceTemplatesOutput = z.object({\n has_more: z.boolean().describe(\"Indicates whether additional templates exist beyond the current page of results. When true, use next_cursor to retrieve the next page.\").nullable(),\n templates: z.array(NotionListDataSourceTemplates_TemplateSchema).describe(\"Collection of template objects available for the data source. Contains up to 100 templates per response.\"),\n next_cursor: z.string().describe(\"Cursor ID for retrieving the next page of results. Only present when has_more is true. Use this value as the start_cursor parameter in the next API request to retrieve additional templates.\").nullable().optional(),\n}).describe(\"Response model for listing Notion data source templates.\");\n\nexport const notionListDataSourceTemplates = action(\"NOTION_LIST_DATA_SOURCE_TEMPLATES\", {\n slug: \"notion-list-data-source-templates\",\n name: \"List data source templates\",\n description: \"Tool to list all templates for a Notion data source. Use when needing to discover template IDs/names for bulk page creation. Use after confirming the data_source_id.\",\n input: NotionListDataSourceTemplatesInput,\n output: NotionListDataSourceTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAqC,EAAE,OAAO;CACzD,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CAC7H,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wGAAwG,CAAC,CAAC,SAAS;CACrJ,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;AACnI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,+CAA+C,EAAE,OAAO;CAC5D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CAClL,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yDAAyD,CAAC,CAAC,SAAS;CAC9F,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,8LAA8L,CAAC,CAAC,SAAS;AAC5O,CAAC,CAAC,CAAC,SAAS,uCAAuC;AAOnD,MAAa,gCAAgC,OAAO,qCAAqC;CACvF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXiD,EAAE,OAAO;EAC1D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;EAClL,WAAW,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,0GAA0G;EACpL,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,+LAA+L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxP,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
|
|
@@ -6,28 +6,28 @@ const NotionListFileUploadsInput = zod.z.object({
|
|
|
6
6
|
start_cursor: zod.z.string().describe("Accepts a next_cursor value from a previous response. Treat as an opaque value to retrieve subsequent result pages. If omitted, begins from the list's start.").optional()
|
|
7
7
|
});
|
|
8
8
|
const NotionListFileUploads_FileUploadObjectSchema = zod.z.object({
|
|
9
|
-
id: zod.z.string().describe("Unique identifier (UUID) for the FileUpload resource."),
|
|
10
|
-
object: zod.z.string().describe("Fixed value identifying the object type as 'file_upload'."),
|
|
9
|
+
id: zod.z.string().describe("Unique identifier (UUID) for the FileUpload resource.").nullable(),
|
|
10
|
+
object: zod.z.string().describe("Fixed value identifying the object type as 'file_upload'.").nullable(),
|
|
11
11
|
status: zod.z.enum([
|
|
12
12
|
"pending",
|
|
13
13
|
"uploaded",
|
|
14
14
|
"expired",
|
|
15
15
|
"failed"
|
|
16
|
-
]).describe("Indicates lifecycle stage of upload. One of: pending, uploaded, expired, or failed."),
|
|
16
|
+
]).describe("Indicates lifecycle stage of upload. One of: pending, uploaded, expired, or failed.").nullable(),
|
|
17
17
|
filename: zod.z.string().describe("Name of the file, provided during the Create a file upload step with automatic extension based on content type. Null until file is uploaded.").nullable().optional(),
|
|
18
18
|
upload_url: zod.z.string().describe("Present only for pending uploads; endpoint for sending file contents.").nullable().optional(),
|
|
19
19
|
expiry_time: zod.z.string().describe("ISO 8601 timestamp when the FileUpload will expire if not attached to workspace objects. Null if already uploaded or expired.").nullable().optional(),
|
|
20
20
|
complete_url: zod.z.string().describe("Present only for pending multi-part uploads; endpoint to finalize the upload.").nullable().optional(),
|
|
21
21
|
content_type: zod.z.string().describe("MIME content type of the uploaded file (e.g., image/png, application/pdf). Null until file is uploaded.").nullable().optional(),
|
|
22
|
-
created_time: zod.z.string().describe("ISO 8601 timestamp when the FileUpload was created."),
|
|
22
|
+
created_time: zod.z.string().describe("ISO 8601 timestamp when the FileUpload was created.").nullable(),
|
|
23
23
|
content_length: zod.z.number().int().describe("Total size of the file, in bytes for completed uploads. Null until file is uploaded.").nullable().optional(),
|
|
24
|
-
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the FileUpload was last modified."),
|
|
24
|
+
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the FileUpload was last modified.").nullable(),
|
|
25
25
|
file_import_result: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Details on success/failure of external URL imports for failed/uploaded files. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.").nullable().optional()
|
|
26
26
|
});
|
|
27
27
|
const NotionListFileUploadsOutput = zod.z.object({
|
|
28
|
-
object: zod.z.string().describe("Identifies the response as a paginated list structure."),
|
|
28
|
+
object: zod.z.string().describe("Identifies the response as a paginated list structure.").nullable(),
|
|
29
29
|
results: zod.z.array(NotionListFileUploads_FileUploadObjectSchema).describe("Contains the list or partial list of file upload objects, sorted by most recent first."),
|
|
30
|
-
has_more: zod.z.boolean().describe("Indicates whether results remain. Returns false when reaching the list's end; otherwise true."),
|
|
30
|
+
has_more: zod.z.boolean().describe("Indicates whether results remain. Returns false when reaching the list's end; otherwise true.").nullable(),
|
|
31
31
|
next_cursor: zod.z.string().describe("An opaque string for retrieving the subsequent page. Only present when has_more is true.").nullable().optional()
|
|
32
32
|
});
|
|
33
33
|
const notionListFileUploads = require_action.action("NOTION_LIST_FILE_UPLOADS", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-file-uploads.cjs","names":["z","action"],"sources":["../../src/actions/list-file-uploads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListFileUploadsInput
|
|
1
|
+
{"version":3,"file":"list-file-uploads.cjs","names":["z","action"],"sources":["../../src/actions/list-file-uploads.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionListFileUploadsInput = z.object({\n page_size: z.number().int().describe(\"Controls how many items the response includes from the complete list. Maximum 100, default 100. The actual response may contain fewer results than requested.\").optional(),\n start_cursor: z.string().describe(\"Accepts a next_cursor value from a previous response. Treat as an opaque value to retrieve subsequent result pages. If omitted, begins from the list's start.\").optional(),\n});\nconst NotionListFileUploads_FileUploadObjectSchema = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the FileUpload resource.\").nullable(),\n object: z.string().describe(\"Fixed value identifying the object type as 'file_upload'.\").nullable(),\n status: z.enum([\"pending\", \"uploaded\", \"expired\", \"failed\"]).describe(\"Indicates lifecycle stage of upload. One of: pending, uploaded, expired, or failed.\").nullable(),\n filename: z.string().describe(\"Name of the file, provided during the Create a file upload step with automatic extension based on content type. Null until file is uploaded.\").nullable().optional(),\n upload_url: z.string().describe(\"Present only for pending uploads; endpoint for sending file contents.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload will expire if not attached to workspace objects. Null if already uploaded or expired.\").nullable().optional(),\n complete_url: z.string().describe(\"Present only for pending multi-part uploads; endpoint to finalize the upload.\").nullable().optional(),\n content_type: z.string().describe(\"MIME content type of the uploaded file (e.g., image/png, application/pdf). Null until file is uploaded.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was created.\").nullable(),\n content_length: z.number().int().describe(\"Total size of the file, in bytes for completed uploads. Null until file is uploaded.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the FileUpload was last modified.\").nullable(),\n file_import_result: z.record(z.string(), z.unknown()).describe(\"Details on success/failure of external URL imports for failed/uploaded files. Only present when status is 'failed' or 'uploaded' and mode was 'external_url'.\").nullable().optional(),\n});\nexport const NotionListFileUploadsOutput = z.object({\n object: z.string().describe(\"Identifies the response as a paginated list structure.\").nullable(),\n results: z.array(NotionListFileUploads_FileUploadObjectSchema).describe(\"Contains the list or partial list of file upload objects, sorted by most recent first.\"),\n has_more: z.boolean().describe(\"Indicates whether results remain. Returns false when reaching the list's end; otherwise true.\").nullable(),\n next_cursor: z.string().describe(\"An opaque string for retrieving the subsequent page. Only present when has_more is true.\").nullable().optional(),\n});\n\nexport const notionListFileUploads = action(\"NOTION_LIST_FILE_UPLOADS\", {\n slug: \"notion-list-file-uploads\",\n name: \"List Notion file uploads\",\n description: \"Tool to retrieve file uploads for the current bot integration, sorted by most recent first. Use when you need to list all file uploads or paginate through file upload history.\",\n input: NotionListFileUploadsInput,\n output: NotionListFileUploadsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;CAC/M,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+JAA+J,CAAC,CAAC,SAAS;AAC9M,CAAC;AACD,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,S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/F,SAASA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,wFAAwF;CAChK,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CACzI,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-file-uploads.d.ts
|
|
4
|
-
declare const NotionListFileUploadsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionListFileUploadsInput: z.ZodObject<{
|
|
5
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
start_cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const NotionListFileUploadsOutput: z.ZodObject<{
|
|
9
|
+
object: z.ZodNullable<z.ZodString>;
|
|
10
|
+
results: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
object: z.ZodNullable<z.ZodString>;
|
|
13
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
14
|
+
pending: "pending";
|
|
15
|
+
uploaded: "uploaded";
|
|
16
|
+
expired: "expired";
|
|
17
|
+
failed: "failed";
|
|
18
|
+
}>>;
|
|
19
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
upload_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
expiry_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
complete_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
25
|
+
content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
27
|
+
file_import_result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const notionListFileUploads: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
page_size?: number | undefined;
|
|
34
|
+
start_cursor?: string | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { notionListFileUploads };
|
|
9
38
|
//# sourceMappingURL=list-file-uploads.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-file-uploads.d.cts","names":[],"sources":["../../src/actions/list-file-uploads.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-file-uploads.d.cts","names":[],"sources":["../../src/actions/list-file-uploads.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAkB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
|
|
@@ -1,9 +1,38 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-file-uploads.d.ts
|
|
4
|
-
declare const NotionListFileUploadsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const NotionListFileUploadsInput: z.ZodObject<{
|
|
5
|
+
page_size: z.ZodOptional<z.ZodNumber>;
|
|
6
|
+
start_cursor: z.ZodOptional<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const NotionListFileUploadsOutput: z.ZodObject<{
|
|
9
|
+
object: z.ZodNullable<z.ZodString>;
|
|
10
|
+
results: z.ZodArray<z.ZodObject<{
|
|
11
|
+
id: z.ZodNullable<z.ZodString>;
|
|
12
|
+
object: z.ZodNullable<z.ZodString>;
|
|
13
|
+
status: z.ZodNullable<z.ZodEnum<{
|
|
14
|
+
pending: "pending";
|
|
15
|
+
uploaded: "uploaded";
|
|
16
|
+
expired: "expired";
|
|
17
|
+
failed: "failed";
|
|
18
|
+
}>>;
|
|
19
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
upload_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
expiry_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
complete_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
created_time: z.ZodNullable<z.ZodString>;
|
|
25
|
+
content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
+
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
27
|
+
file_import_result: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
has_more: z.ZodNullable<z.ZodBoolean>;
|
|
30
|
+
next_cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const notionListFileUploads: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
33
|
+
page_size?: number | undefined;
|
|
34
|
+
start_cursor?: string | undefined;
|
|
35
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
36
|
//#endregion
|
|
8
37
|
export { notionListFileUploads };
|
|
9
38
|
//# sourceMappingURL=list-file-uploads.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-file-uploads.d.mts","names":[],"sources":["../../src/actions/list-file-uploads.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-file-uploads.d.mts","names":[],"sources":["../../src/actions/list-file-uploads.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;cAkB1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAO3B,qBAAA,gCAAqB,wBAAA"}
|