@keystrokehq/notion 0.1.3 → 0.1.5
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/add-multiple-page-content.cjs +1 -0
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +11 -27
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +11 -27
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +1 -0
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +1 -0
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +5 -94
- package/dist/actions/append-code-blocks.d.cts.map +1 -1
- package/dist/actions/append-code-blocks.d.mts +5 -94
- package/dist/actions/append-code-blocks.d.mts.map +1 -1
- package/dist/actions/append-code-blocks.mjs +1 -0
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +1 -0
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +5 -49
- package/dist/actions/append-layout-blocks.d.cts.map +1 -1
- package/dist/actions/append-layout-blocks.d.mts +5 -49
- package/dist/actions/append-layout-blocks.d.mts.map +1 -1
- package/dist/actions/append-layout-blocks.mjs +1 -0
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +1 -0
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +5 -209
- package/dist/actions/append-media-blocks.d.cts.map +1 -1
- package/dist/actions/append-media-blocks.d.mts +5 -209
- package/dist/actions/append-media-blocks.d.mts.map +1 -1
- package/dist/actions/append-media-blocks.mjs +1 -0
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +1 -0
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +5 -36
- package/dist/actions/append-table-blocks.d.cts.map +1 -1
- package/dist/actions/append-table-blocks.d.mts +5 -36
- package/dist/actions/append-table-blocks.d.mts.map +1 -1
- package/dist/actions/append-table-blocks.mjs +1 -0
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +1 -0
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +5 -100
- package/dist/actions/append-task-blocks.d.cts.map +1 -1
- package/dist/actions/append-task-blocks.d.mts +5 -100
- package/dist/actions/append-task-blocks.d.mts.map +1 -1
- package/dist/actions/append-task-blocks.mjs +1 -0
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +1 -0
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +5 -184
- package/dist/actions/append-text-blocks.d.cts.map +1 -1
- package/dist/actions/append-text-blocks.d.mts +5 -184
- package/dist/actions/append-text-blocks.d.mts.map +1 -1
- package/dist/actions/append-text-blocks.mjs +1 -0
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +1 -0
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +3 -4
- package/dist/actions/archive-notion-page.d.cts.map +1 -1
- package/dist/actions/archive-notion-page.d.mts +3 -4
- package/dist/actions/archive-notion-page.d.mts.map +1 -1
- package/dist/actions/archive-notion-page.mjs +1 -0
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.cjs +1 -0
- package/dist/actions/create-comment.cjs.map +1 -1
- package/dist/actions/create-comment.d.cts +11 -23
- package/dist/actions/create-comment.d.cts.map +1 -1
- package/dist/actions/create-comment.d.mts +11 -23
- package/dist/actions/create-comment.d.mts.map +1 -1
- package/dist/actions/create-comment.mjs +1 -0
- package/dist/actions/create-comment.mjs.map +1 -1
- package/dist/actions/create-database.cjs +1 -0
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +5 -13
- package/dist/actions/create-database.d.cts.map +1 -1
- package/dist/actions/create-database.d.mts +5 -13
- package/dist/actions/create-database.d.mts.map +1 -1
- package/dist/actions/create-database.mjs +1 -0
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +1 -0
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +3 -7
- package/dist/actions/create-file-upload.d.cts.map +1 -1
- package/dist/actions/create-file-upload.d.mts +3 -7
- package/dist/actions/create-file-upload.d.mts.map +1 -1
- package/dist/actions/create-file-upload.mjs +1 -0
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +1 -0
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +3 -7
- package/dist/actions/create-notion-page.d.cts.map +1 -1
- package/dist/actions/create-notion-page.d.mts +3 -7
- package/dist/actions/create-notion-page.d.mts.map +1 -1
- package/dist/actions/create-notion-page.mjs +1 -0
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +1 -0
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +43 -43
- package/dist/actions/delete-block.d.cts.map +1 -1
- package/dist/actions/delete-block.d.mts +43 -43
- package/dist/actions/delete-block.d.mts.map +1 -1
- package/dist/actions/delete-block.mjs +1 -0
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +1 -0
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +3 -5
- package/dist/actions/duplicate-page.d.cts.map +1 -1
- package/dist/actions/duplicate-page.d.mts +3 -5
- package/dist/actions/duplicate-page.d.mts.map +1 -1
- package/dist/actions/duplicate-page.mjs +1 -0
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +1 -0
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +3 -8
- package/dist/actions/fetch-all-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.mts +3 -8
- package/dist/actions/fetch-all-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-all-block-contents.mjs +1 -0
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +1 -0
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +3 -5
- package/dist/actions/fetch-block-contents.d.cts.map +1 -1
- package/dist/actions/fetch-block-contents.d.mts +3 -5
- package/dist/actions/fetch-block-contents.d.mts.map +1 -1
- package/dist/actions/fetch-block-contents.mjs +1 -0
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +1 -0
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +42 -42
- package/dist/actions/fetch-block-metadata.d.cts.map +1 -1
- package/dist/actions/fetch-block-metadata.d.mts +42 -42
- package/dist/actions/fetch-block-metadata.d.mts.map +1 -1
- package/dist/actions/fetch-block-metadata.mjs +1 -0
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +1 -0
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +7 -10
- package/dist/actions/fetch-comments.d.cts.map +1 -1
- package/dist/actions/fetch-comments.d.mts +7 -10
- package/dist/actions/fetch-comments.d.mts.map +1 -1
- package/dist/actions/fetch-comments.mjs +1 -0
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +1 -0
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +29 -34
- package/dist/actions/fetch-data.d.cts.map +1 -1
- package/dist/actions/fetch-data.d.mts +29 -34
- package/dist/actions/fetch-data.d.mts.map +1 -1
- package/dist/actions/fetch-data.mjs +1 -0
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +1 -0
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +3 -3
- package/dist/actions/fetch-database.d.cts.map +1 -1
- package/dist/actions/fetch-database.d.mts +3 -3
- package/dist/actions/fetch-database.d.mts.map +1 -1
- package/dist/actions/fetch-database.mjs +1 -0
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +1 -0
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +5 -5
- package/dist/actions/fetch-row.d.cts.map +1 -1
- package/dist/actions/fetch-row.d.mts +5 -5
- package/dist/actions/fetch-row.d.mts.map +1 -1
- package/dist/actions/fetch-row.mjs +1 -0
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +1 -0
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +4 -4
- package/dist/actions/get-about-user.d.cts.map +1 -1
- package/dist/actions/get-about-user.d.mts +4 -4
- package/dist/actions/get-about-user.d.mts.map +1 -1
- package/dist/actions/get-about-user.mjs +1 -0
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +1 -0
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +3 -4
- package/dist/actions/get-page-markdown.d.cts.map +1 -1
- package/dist/actions/get-page-markdown.d.mts +3 -4
- package/dist/actions/get-page-markdown.d.mts.map +1 -1
- package/dist/actions/get-page-markdown.mjs +1 -0
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/get-page-property-action.cjs +1 -0
- package/dist/actions/get-page-property-action.cjs.map +1 -1
- package/dist/actions/get-page-property-action.d.cts +3 -6
- package/dist/actions/get-page-property-action.d.cts.map +1 -1
- package/dist/actions/get-page-property-action.d.mts +3 -6
- package/dist/actions/get-page-property-action.d.mts.map +1 -1
- package/dist/actions/get-page-property-action.mjs +1 -0
- package/dist/actions/get-page-property-action.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +1 -0
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +13 -33
- package/dist/actions/insert-row-database.d.cts.map +1 -1
- package/dist/actions/insert-row-database.d.mts +13 -33
- package/dist/actions/insert-row-database.d.mts.map +1 -1
- package/dist/actions/insert-row-database.mjs +1 -0
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +1 -0
- package/dist/actions/insert-row-from-nl.cjs.map +1 -1
- package/dist/actions/insert-row-from-nl.d.cts +3 -6
- package/dist/actions/insert-row-from-nl.d.cts.map +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +3 -6
- package/dist/actions/insert-row-from-nl.d.mts.map +1 -1
- package/dist/actions/insert-row-from-nl.mjs +1 -0
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +1 -0
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +3 -5
- package/dist/actions/list-data-source-templates.d.cts.map +1 -1
- package/dist/actions/list-data-source-templates.d.mts +3 -5
- package/dist/actions/list-data-source-templates.d.mts.map +1 -1
- package/dist/actions/list-data-source-templates.mjs +1 -0
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +1 -0
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +3 -4
- package/dist/actions/list-file-uploads.d.cts.map +1 -1
- package/dist/actions/list-file-uploads.d.mts +3 -4
- package/dist/actions/list-file-uploads.d.mts.map +1 -1
- package/dist/actions/list-file-uploads.mjs +1 -0
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +1 -0
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +5 -6
- package/dist/actions/list-users.d.cts.map +1 -1
- package/dist/actions/list-users.d.mts +5 -6
- package/dist/actions/list-users.d.mts.map +1 -1
- package/dist/actions/list-users.mjs +1 -0
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +1 -0
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +3 -12
- package/dist/actions/move-page.d.cts.map +1 -1
- package/dist/actions/move-page.d.mts +3 -12
- package/dist/actions/move-page.d.mts.map +1 -1
- package/dist/actions/move-page.mjs +1 -0
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +1 -0
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +8 -21
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +8 -21
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +1 -0
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +1 -0
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +3 -16
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +3 -16
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +1 -0
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +1 -0
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +3 -10
- package/dist/actions/query-database.d.cts.map +1 -1
- package/dist/actions/query-database.d.mts +3 -10
- package/dist/actions/query-database.d.mts.map +1 -1
- package/dist/actions/query-database.mjs +1 -0
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +1 -0
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +3 -642
- package/dist/actions/replace-page-content.d.cts.map +1 -1
- package/dist/actions/replace-page-content.d.mts +3 -642
- package/dist/actions/replace-page-content.d.mts.map +1 -1
- package/dist/actions/replace-page-content.mjs +1 -0
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-comment.cjs +1 -0
- package/dist/actions/retrieve-comment.cjs.map +1 -1
- package/dist/actions/retrieve-comment.d.cts +3 -3
- package/dist/actions/retrieve-comment.d.cts.map +1 -1
- package/dist/actions/retrieve-comment.d.mts +3 -3
- package/dist/actions/retrieve-comment.d.mts.map +1 -1
- package/dist/actions/retrieve-comment.mjs +1 -0
- package/dist/actions/retrieve-comment.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +1 -0
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +3 -4
- package/dist/actions/retrieve-database-property.d.cts.map +1 -1
- package/dist/actions/retrieve-database-property.d.mts +3 -4
- package/dist/actions/retrieve-database-property.d.mts.map +1 -1
- package/dist/actions/retrieve-database-property.mjs +1 -0
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +1 -0
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +3 -3
- package/dist/actions/retrieve-file-upload.d.cts.map +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +3 -3
- package/dist/actions/retrieve-file-upload.d.mts.map +1 -1
- package/dist/actions/retrieve-file-upload.mjs +1 -0
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +1 -0
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +5 -5
- package/dist/actions/retrieve-page.d.cts.map +1 -1
- package/dist/actions/retrieve-page.d.mts +5 -5
- package/dist/actions/retrieve-page.d.mts.map +1 -1
- package/dist/actions/retrieve-page.mjs +1 -0
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +1 -0
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +25 -32
- package/dist/actions/search-notion-page.d.cts.map +1 -1
- package/dist/actions/search-notion-page.d.mts +25 -32
- package/dist/actions/search-notion-page.d.mts.map +1 -1
- package/dist/actions/search-notion-page.mjs +1 -0
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +1 -0
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +3 -10
- package/dist/actions/send-file-upload.d.cts.map +1 -1
- package/dist/actions/send-file-upload.d.mts +3 -10
- package/dist/actions/send-file-upload.d.mts.map +1 -1
- package/dist/actions/send-file-upload.mjs +1 -0
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +1 -0
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +3 -7
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +3 -7
- package/dist/actions/update-block.d.mts.map +1 -1
- package/dist/actions/update-block.mjs +1 -0
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +1 -0
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +3 -7
- package/dist/actions/update-page.d.cts.map +1 -1
- package/dist/actions/update-page.d.mts +3 -7
- package/dist/actions/update-page.d.mts.map +1 -1
- package/dist/actions/update-page.mjs +1 -0
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +1 -0
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +5 -14
- package/dist/actions/update-row-database.d.cts.map +1 -1
- package/dist/actions/update-row-database.d.mts +5 -14
- package/dist/actions/update-row-database.d.mts.map +1 -1
- package/dist/actions/update-row-database.mjs +1 -0
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +1 -0
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +5 -16
- package/dist/actions/update-schema-database.d.cts.map +1 -1
- package/dist/actions/update-schema-database.d.mts +5 -16
- package/dist/actions/update-schema-database.d.mts.map +1 -1
- package/dist/actions/update-schema-database.mjs +1 -0
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +1 -0
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +3 -124
- package/dist/actions/upsert-row-database.d.cts.map +1 -1
- package/dist/actions/upsert-row-database.d.mts +3 -124
- package/dist/actions/upsert-row-database.d.mts.map +1 -1
- package/dist/actions/upsert-row-database.mjs +1 -0
- package/dist/actions/upsert-row-database.mjs.map +1 -1
- package/dist/app.cjs +5 -2
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +7 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +7 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -2
- package/dist/app.mjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-row-database.mjs","names":[],"sources":["../../src/actions/update-row-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateRowDatabaseInput = z.object({\n icon: z.string().describe(\"The emoji to be used as the icon for the page. Must be a single emoji character (e.g., '😻', '🤔'). Empty strings or whitespace-only values are ignored.\").optional(),\n cover: z.string().describe(\"URL of an external image to be used as the cover for the page (e.g., 'https://google.com/image.png'). Empty strings or whitespace-only values are ignored.\").optional(),\n row_id: z.string().describe(\"REQUIRED: The page UUID of the database row to update. This is a PAGE ID (not a database ID). A database row in Notion is actually a page - use the page's UUID here. Format: 32-character UUID with hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5'). NOT a URL or page title. Find this ID in the page URL or via 'Copy link' in Notion. NOTE: To update DATABASE structure/schema, use NOTION_UPDATE_SCHEMA_DATABASE instead. This action only updates individual rows/pages within a database.\"),\n delete_row: z.boolean().default(false).describe(\"If true, the row (page) will be archived, effectively deleting it from the active view. If the page is already archived, the action will return success with the current page state. If false, the row will be updated with other provided data.\").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}).passthrough()).default([]).describe(\"List of properties to update. Each property requires: (1) 'name' - exact property name as shown in Notion, (2) 'type' - the property type (title, rich_text, number, select, status, multi_select, date, people, relation, checkbox, url, email, phone_number, files), (3) 'value' - formatted according to type. IMPORTANT: Verify property names exist in the database and match the exact case. Use 'status' type for Status properties, NOT 'select'. Properties not listed will remain unchanged.\").optional(),\n});\nconst NotionUpdateRowDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"emoji\\\".\").nullable(),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\").nullable(),\n}).passthrough().describe(\"Standard emoji icon.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Custom emoji object with identifier, name, and URL.\");\nconst NotionUpdateRowDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"custom_emoji\\\".\").nullable(),\n custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable(),\n}).passthrough().describe(\"Custom emoji icon.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Notion-hosted file with authenticated URL.\");\nconst NotionUpdateRowDatabase_FileIconWithHostedSchema = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\").nullable(),\n}).passthrough().describe(\"File icon with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_FileUploadObjectSchema = z.object({\n id: z.string().describe(\"UUID of the uploaded file object.\").nullable(),\n}).passthrough().describe(\"File uploaded via API.\");\nconst NotionUpdateRowDatabase_FileIconWithUploadSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).passthrough().describe(\"File icon with uploaded file.\");\nconst NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionUpdateRowDatabase_FileIconWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).passthrough().describe(\"File icon with external URL.\");\nconst NotionUpdateRowDatabase_CoverWithHostedSchema = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\").nullable(),\n}).passthrough().describe(\"Cover with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_CoverWithUploadSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).passthrough().describe(\"Cover with uploaded file.\");\nconst NotionUpdateRowDatabase_CoverWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).passthrough().describe(\"Cover with external URL.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Parent is a database.\");\nconst NotionUpdateRowDatabase_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(),\n data_source_id: z.string().describe(\"The data source identifier in UUIDv4 format.\").nullable(),\n}).passthrough().describe(\"Parent is a data source.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Parent is a page.\");\nconst NotionUpdateRowDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Always true.\").nullable(),\n}).passthrough().describe(\"Parent is the workspace.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Parent is a block.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Partial user object representing a Notion user.\");\nexport const NotionUpdateRowDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionUpdateRowDatabase_EmojiIconSchema, NotionUpdateRowDatabase_CustomEmojiIconSchema, NotionUpdateRowDatabase_FileIconWithHostedSchema, NotionUpdateRowDatabase_FileIconWithUploadSchema, NotionUpdateRowDatabase_FileIconWithExternalSchema]).nullable().optional(),\n cover: z.union([NotionUpdateRowDatabase_CoverWithHostedSchema, NotionUpdateRowDatabase_CoverWithUploadSchema, NotionUpdateRowDatabase_CoverWithExternalSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\". Identifies the type of object.\").nullable(),\n parent: z.union([NotionUpdateRowDatabase_DatabaseParentSchema, NotionUpdateRowDatabase_DataSourceParentSchema, NotionUpdateRowDatabase_PageParentSchema, NotionUpdateRowDatabase_WorkspaceParentSchema, NotionUpdateRowDatabase_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived (deleted).\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys correspond to property names defined in the parent database schema, and values are property value objects specific to each property type.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, in ISO 8601 format.\").nullable().optional(),\n last_edited_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when this page was last updated, in ISO 8601 format.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the execution layer explaining any special handling performed.\").nullable().optional(),\n}).passthrough().describe(\"Response object returned when updating a page (database row) in Notion. Returns the complete updated page object.\");\n\nexport const notionUpdateRowDatabase = action(\"NOTION_UPDATE_ROW_DATABASE\", {\n slug: \"notion-update-row-database\",\n name: \"Update Database Row (Page)\",\n description: \"Updates a specific row/page within a Notion database by its page UUID (row_id). IMPORTANT CLARIFICATION: This action updates INDIVIDUAL ROWS (pages) in a database, NOT the database structure. - To update a ROW/PAGE: Use THIS action with `row_id` (the page UUID) - To update DATABASE SCHEMA (columns, properties, title): Use NOTION_UPDATE_SCHEMA_DATABASE with `database_id` REQUIRED: `row_id` is MANDATORY. This is the UUID of the specific page/row to update. Do NOT pass `database_id` to this action - that parameter does not exist here. Common issues: (1) Use UUID from page URL, not the full URL (2) Ensure page is shared with integration (3) Match property names exactly as in database (4) Use 'status' type for Status properties, not 'select' (5) Retry on 409 Conflict errors (concurrent updates) Supports updating properties, icon, cover, or archiving the row.\",\n input: NotionUpdateRowDatabaseInput,\n output: NotionUpdateRowDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,OAAO,E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C,CAAC,SAAS;EACpL,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,MAAM;GAAC;GAA8C;GAAgD;GAA0C;GAA+C;EAAyC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxQ,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9F,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC1E,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1P,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+DAA+D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvH,gBAAgB,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC9E,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChI,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrJ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mHAOhB;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-row-database.mjs","names":[],"sources":["../../src/actions/update-row-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionUpdateRowDatabaseInput = z.object({\n icon: z.string().describe(\"The emoji to be used as the icon for the page. Must be a single emoji character (e.g., '😻', '🤔'). Empty strings or whitespace-only values are ignored.\").optional(),\n cover: z.string().describe(\"URL of an external image to be used as the cover for the page (e.g., 'https://google.com/image.png'). Empty strings or whitespace-only values are ignored.\").optional(),\n row_id: z.string().describe(\"REQUIRED: The page UUID of the database row to update. This is a PAGE ID (not a database ID). A database row in Notion is actually a page - use the page's UUID here. Format: 32-character UUID with hyphens (e.g., '59833787-2cf9-4fdf-8782-e53db20768a5'). NOT a URL or page title. Find this ID in the page URL or via 'Copy link' in Notion. NOTE: To update DATABASE structure/schema, use NOTION_UPDATE_SCHEMA_DATABASE instead. This action only updates individual rows/pages within a database.\"),\n delete_row: z.boolean().default(false).describe(\"If true, the row (page) will be archived, effectively deleting it from the active view. If the page is already archived, the action will return success with the current page state. If false, the row will be updated with other provided data.\").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}).passthrough()).default([]).describe(\"List of properties to update. Each property requires: (1) 'name' - exact property name as shown in Notion, (2) 'type' - the property type (title, rich_text, number, select, status, multi_select, date, people, relation, checkbox, url, email, phone_number, files), (3) 'value' - formatted according to type. IMPORTANT: Verify property names exist in the database and match the exact case. Use 'status' type for Status properties, NOT 'select'. Properties not listed will remain unchanged.\").optional(),\n});\nconst NotionUpdateRowDatabase_EmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"emoji\\\".\").nullable(),\n emoji: z.string().describe(\"The emoji character (e.g., '😻').\").nullable(),\n}).passthrough().describe(\"Standard emoji icon.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Custom emoji object with identifier, name, and URL.\");\nconst NotionUpdateRowDatabase_CustomEmojiIconSchema = z.object({\n type: z.string().describe(\"Always \\\"custom_emoji\\\".\").nullable(),\n custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable(),\n}).passthrough().describe(\"Custom emoji icon.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Notion-hosted file with authenticated URL.\");\nconst NotionUpdateRowDatabase_FileIconWithHostedSchema = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\").nullable(),\n}).passthrough().describe(\"File icon with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_FileUploadObjectSchema = z.object({\n id: z.string().describe(\"UUID of the uploaded file object.\").nullable(),\n}).passthrough().describe(\"File uploaded via API.\");\nconst NotionUpdateRowDatabase_FileIconWithUploadSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).passthrough().describe(\"File icon with uploaded file.\");\nconst NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).passthrough().describe(\"External file reference.\");\nconst NotionUpdateRowDatabase_FileIconWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).passthrough().describe(\"File icon with external URL.\");\nconst NotionUpdateRowDatabase_CoverWithHostedSchema = z.object({\n file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),\n type: z.string().describe(\"Type of file.\").nullable(),\n}).passthrough().describe(\"Cover with Notion-hosted file.\");\nconst NotionUpdateRowDatabase_CoverWithUploadSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable(),\n}).passthrough().describe(\"Cover with uploaded file.\");\nconst NotionUpdateRowDatabase_CoverWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).passthrough().describe(\"Cover with external URL.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Parent is a database.\");\nconst NotionUpdateRowDatabase_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(),\n data_source_id: z.string().describe(\"The data source identifier in UUIDv4 format.\").nullable(),\n}).passthrough().describe(\"Parent is a data source.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Parent is a page.\");\nconst NotionUpdateRowDatabase_WorkspaceParentSchema = z.object({\n type: z.string().describe(\"Always \\\"workspace\\\".\").nullable(),\n workspace: z.boolean().describe(\"Always true.\").nullable(),\n}).passthrough().describe(\"Parent is the workspace.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Parent is a block.\");\nconst NotionUpdateRowDatabase_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}).passthrough().describe(\"Partial user object representing a Notion user.\");\nexport const NotionUpdateRowDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the page in UUIDv4 format.\").nullable(),\n url: z.string().describe(\"The URL of the Notion page.\").nullable().optional(),\n icon: z.union([NotionUpdateRowDatabase_EmojiIconSchema, NotionUpdateRowDatabase_CustomEmojiIconSchema, NotionUpdateRowDatabase_FileIconWithHostedSchema, NotionUpdateRowDatabase_FileIconWithUploadSchema, NotionUpdateRowDatabase_FileIconWithExternalSchema]).nullable().optional(),\n cover: z.union([NotionUpdateRowDatabase_CoverWithHostedSchema, NotionUpdateRowDatabase_CoverWithUploadSchema, NotionUpdateRowDatabase_CoverWithExternalSchema]).nullable().optional(),\n object: z.string().describe(\"Always \\\"page\\\". Identifies the type of object.\").nullable(),\n parent: z.union([NotionUpdateRowDatabase_DatabaseParentSchema, NotionUpdateRowDatabase_DataSourceParentSchema, NotionUpdateRowDatabase_PageParentSchema, NotionUpdateRowDatabase_WorkspaceParentSchema, NotionUpdateRowDatabase_BlockParentSchema]).nullable().optional(),\n archived: z.boolean().describe(\"Whether the page is archived (deleted).\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the page is in the trash.\").nullable().optional(),\n created_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values of the page. Keys correspond to property names defined in the parent database schema, and values are property value objects specific to each property type.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the page if it has been published to the web, otherwise null.\").nullable().optional(),\n created_time: z.string().describe(\"Date and time when this page was created, in ISO 8601 format.\").nullable().optional(),\n last_edited_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"Date and time when this page was last updated, in ISO 8601 format.\").nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the execution layer explaining any special handling performed.\").nullable().optional(),\n}).passthrough().describe(\"Response object returned when updating a page (database row) in Notion. Returns the complete updated page object.\");\n\nexport const notionUpdateRowDatabase: AppAction<\n typeof NotionUpdateRowDatabaseInput,\n typeof NotionUpdateRowDatabaseOutput,\n typeof notion.credential\n> = action(\"NOTION_UPDATE_ROW_DATABASE\", {\n slug: \"notion-update-row-database\",\n name: \"Update Database Row (Page)\",\n description: \"Updates a specific row/page within a Notion database by its page UUID (row_id). IMPORTANT CLARIFICATION: This action updates INDIVIDUAL ROWS (pages) in a database, NOT the database structure. - To update a ROW/PAGE: Use THIS action with `row_id` (the page UUID) - To update DATABASE SCHEMA (columns, properties, title): Use NOTION_UPDATE_SCHEMA_DATABASE with `database_id` REQUIRED: `row_id` is MANDATORY. This is the UUID of the specific page/row to update. Do NOT pass `database_id` to this action - that parameter does not exist here. Common issues: (1) Use UUID from page URL, not the full URL (2) Ensure page is shared with integration (3) Match property names exactly as in database (4) Use 'status' type for Status properties, not 'select' (5) Retry on 409 Conflict errors (concurrent updates) Supports updating properties, icon, cover, or archiving the row.\",\n input: NotionUpdateRowDatabaseInput,\n output: NotionUpdateRowDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+B,EAAE,OAAO;CACnD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0JAA0J,CAAC,CAAC,SAAS;CAC/L,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J,CAAC,CAAC,SAAS;CAClM,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0eAA0e;CACtgB,YAAY,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,kPAAkP,CAAC,CAAC,SAAS;CAC7S,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,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,weAAwe,CAAC,CAAC,SAAS;AAC1hB,CAAC;AACD,MAAM,0CAA0C,EAAE,OAAO;CACvD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CACxD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sBAAsB;AAChD,MAAM,kDAAkD,EAAE,OAAO;CAC/D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,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CAAC,SAAS,mHAWhB;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-schema-database.cjs","names":["z","action"],"sources":["../../src/actions/update-schema-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateSchemaDatabaseInput = z.object({\n title: z.string().describe(\"New title for the database. Leave as None or omit to keep the existing title unchanged. This updates the database name visible in Notion. At least one of (title, description, or properties) must be provided.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the existing property to update. This must match the exact case-sensitive name of the property in the database.\"),\n remove: z.boolean().default(false).describe(\"Set to true to remove this property from the database. Cannot be combined with other updates.\").optional(),\n rename: z.string().describe(\"New name for the property. If None (default), the name remains unchanged.\").optional(),\n new_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(\"New type for the property. If None (default), the type remains unchanged. IMPORTANT: When changing to 'relation' type, you MUST also provide 'database_id'. NOTE: Title properties CANNOT be changed to a different type - every Notion database must have exactly one title property. If you need to rename the title property, use 'rename' instead of 'new_type'.\").optional(),\n database_id: z.string().describe(\"ID of the database to relate to. REQUIRED when new_type is 'relation'. This is the UUID of the target database that this relation property will link to. The target database must be shared with your integration.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Type of relation when new_type is 'relation'. Either 'single_property' or 'dual_property'. Defaults to 'single_property'.\").optional(),\n}).passthrough()).default([]).describe(\"List of property (column) updates for the database schema. At least one of (title, description, or properties) must be provided. Each PropertySchemaUpdate must specify: \\n1) 'name': The EXACT case-sensitive name of the existing property\\n2) One of these actions:\\n - 'rename': Change the property name\\n - 'new_type': Change the property type (see PropertySchemaUpdate for valid types)\\n - 'remove': Set to true to delete the property\\nIMPORTANT: When changing a property to 'relation' type, you MUST also provide 'database_id' with the UUID of the target database to link to.\\nExample: [{'name': 'Status', 'new_type': 'select'}, {'name': 'Tasks', 'new_type': 'relation', 'database_id': 'abc123...'}]\").optional(),\n database_id: z.string().describe(\"REQUIRED: The UUID identifier of the Notion database to update. IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are both UUIDs but they are NOT interchangeable - passing a page ID will result in an error. Use NOTION_FETCH_DATA with get_databases=true to get available database IDs. Format: UUID with or without hyphens (e.g., 'd9824bdc-8445-4327-be8b-554d41f30b60'). The database must be shared with your integration. NOTE: At least one of (title, description, or properties) must also be provided to perform an update.\"),\n description: z.string().describe(\"New description for the database. Leave as None or omit to keep the existing description unchanged. This updates the description text shown below the database title. At least one of (title, description, or properties) must be provided.\").optional(),\n});\nconst NotionUpdateSchemaDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated temporary URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_FileObjectSchema = z.object({\n file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),\n file_upload: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_LinkInfoSchema = z.object({\n url: z.string().describe(\"URL of the hyperlink.\").nullable(),\n}).passthrough().describe(\"Link information for hyperlinked text.\");\nconst NotionUpdateSchemaDatabase_TextContentSchema = z.object({\n link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content within a rich text object.\");\nconst NotionUpdateSchemaDatabase_DateMentionSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format, if range.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n}).passthrough().describe(\"Date information for a date mention.\");\nconst NotionUpdateSchemaDatabase_PageReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the page.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion page.\");\nconst NotionUpdateSchemaDatabase_BotOwnerUserSchema = z.object({\n id: z.string().describe(\"UUID of the user.\").nullable(),\n name: z.string().describe(\"Display name.\").nullable().optional(),\n type: z.string().describe(\"Type: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().default(\"user\").describe(\"Always 'user'.\").nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL.\").nullable().optional(),\n}).passthrough().describe(\"User reference in bot owner context (simplified to avoid circular reference).\");\nconst NotionUpdateSchemaDatabase_BotOwnerSchema = z.object({\n type: z.string().describe(\"Type of owner: 'workspace' or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"True when owner type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Owner information for a bot.\");\nconst NotionUpdateSchemaDatabase_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for a bot.\");\nconst NotionUpdateSchemaDatabase_BotInfoSchema = z.object({\n owner: NotionUpdateSchemaDatabase_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"UUID of the workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot.\").nullable().optional(),\n workspace_limits: NotionUpdateSchemaDatabase_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of person. Only present if integration has user capabilities.\").nullable().optional(),\n}).passthrough().describe(\"Person-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user' for user objects.\").nullable(),\n person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n}).passthrough().describe(\"Notion user object representing a person or bot.\");\nconst NotionUpdateSchemaDatabase_DatabaseReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the database.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion database.\");\nconst NotionUpdateSchemaDatabase_LinkPreviewMentionSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n}).passthrough().describe(\"Link preview mention information.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionDateSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_date'.\").nullable(),\n template_mention_date: z.string().describe(\"Template date value: 'today' or 'now'.\").nullable(),\n}).passthrough().describe(\"Template mention for dates.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionUserSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_user'.\").nullable(),\n template_mention_user: z.string().describe(\"Template user value: 'me'.\").nullable(),\n}).passthrough().describe(\"Template mention for users.\");\nconst NotionUpdateSchemaDatabase_MentionObjectSchema = z.object({\n date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),\n page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),\n database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),\n link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional(),\n}).passthrough().describe(\"Mention object within rich text.\");\nconst NotionUpdateSchemaDatabase_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX expression string.\").nullable(),\n}).passthrough().describe(\"LaTeX equation within rich text.\");\nconst NotionUpdateSchemaDatabase_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text. One of: default, gray, brown, orange, yellow, green, blue, purple, pink, red, or their _background variants.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling annotations for rich text.\");\nconst NotionUpdateSchemaDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL when the text is a hyperlink, null otherwise.\").nullable().optional(),\n text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),\n equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted plain text content.\").nullable(),\n annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for formatted text, mentions, and equations.\");\nconst NotionUpdateSchemaDatabase_ParentWorkspaceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace', indicating a top-level database.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentPageSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (when type is 'page_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentBlockSchema = z.object({\n type: z.string().describe(\"Type of parent: 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block (when type is 'block_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentDatabaseSchema = z.object({\n type: z.string().describe(\"Type of parent: 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database (when type is 'database_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentDataSourceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'data_source_id'.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source (when type is 'data_source_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_DataSourceSummarySchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n}).passthrough();\nexport const NotionUpdateSchemaDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\").nullable(),\n url: z.string().describe(\"The URL of the database in Notion.\").nullable(),\n icon: z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),\n cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),\n title: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database name as an array of rich text objects.\"),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionUpdateSchemaDatabase_ParentWorkspaceSchema, NotionUpdateSchemaDatabase_ParentPageSchema, NotionUpdateSchemaDatabase_ParentBlockSchema, NotionUpdateSchemaDatabase_ParentDatabaseSchema, NotionUpdateSchemaDatabase_ParentDataSourceSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database appears as an inline block (true) or as a child page (false).\").nullable(),\n created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Database schema properties representing columns, where each key is a property name or ID mapping to a property object.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been shared publicly, null otherwise.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n description: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionUpdateSchemaDatabase_DataSourceSummarySchema).describe(\"List of child data sources under this database. Each entry summarizes a data source; fetch a data source by ID to get its full schema/properties.\").nullable().optional(),\n last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).passthrough();\n\nexport const notionUpdateSchemaDatabase = action(\"NOTION_UPDATE_SCHEMA_DATABASE\", {\n slug: \"notion-update-schema-database\",\n name: \"Update database schema\",\n description: \"Updates an existing Notion database's schema including title, description, and/or properties (columns). IMPORTANT NOTES: - At least one update (title, description, or properties) must be provided - The database must be shared with your integration - Property names are case-sensitive and must match exactly - When changing a property to 'relation' type, you MUST provide the database_id of the target database - Removing properties will permanently delete that column and its data - Use NOTION_FETCH_DATA first to get the exact property names and database structure Common errors: - 'database_id' missing: Ensure you're passing the database_id parameter (not page_id) - 'data_source_id' undefined: When changing to relation type, database_id is required in PropertySchemaUpdate - Property name mismatch: Names must match exactly including case and special characters\",\n input: NotionUpdateSchemaDatabaseInput,\n output: NotionUpdateSchemaDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iNAAiN,CAAC,CAAC,SAAS;CACvP,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;EACnJ,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,UAAUA,IAAAA,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,sWAAsW,CAAC,CAAC,SAAS;EACnpB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAAS;EAChQ,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,iBAAiB,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACtM,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,osBAAosB,CAAC,CAAC,SAAS;CACpvB,aAAaA,IAAAA,EAAE,OAAO,C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AC,SAAS;CACnG,cAAcA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5P,gBAAgB,6CAA6C,SAAS;CACtE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAA6BC,eAAAA,OAAO,iCAAiC;CAChF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-schema-database.cjs","names":["z","action"],"sources":["../../src/actions/update-schema-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionUpdateSchemaDatabaseInput = z.object({\n title: z.string().describe(\"New title for the database. Leave as None or omit to keep the existing title unchanged. This updates the database name visible in Notion. At least one of (title, description, or properties) must be provided.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the existing property to update. This must match the exact case-sensitive name of the property in the database.\"),\n remove: z.boolean().default(false).describe(\"Set to true to remove this property from the database. Cannot be combined with other updates.\").optional(),\n rename: z.string().describe(\"New name for the property. If None (default), the name remains unchanged.\").optional(),\n new_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(\"New type for the property. If None (default), the type remains unchanged. IMPORTANT: When changing to 'relation' type, you MUST also provide 'database_id'. NOTE: Title properties CANNOT be changed to a different type - every Notion database must have exactly one title property. If you need to rename the title property, use 'rename' instead of 'new_type'.\").optional(),\n database_id: z.string().describe(\"ID of the database to relate to. REQUIRED when new_type is 'relation'. This is the UUID of the target database that this relation property will link to. The target database must be shared with your integration.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Type of relation when new_type is 'relation'. Either 'single_property' or 'dual_property'. Defaults to 'single_property'.\").optional(),\n}).passthrough()).default([]).describe(\"List of property (column) updates for the database schema. At least one of (title, description, or properties) must be provided. Each PropertySchemaUpdate must specify: \\n1) 'name': The EXACT case-sensitive name of the existing property\\n2) One of these actions:\\n - 'rename': Change the property name\\n - 'new_type': Change the property type (see PropertySchemaUpdate for valid types)\\n - 'remove': Set to true to delete the property\\nIMPORTANT: When changing a property to 'relation' type, you MUST also provide 'database_id' with the UUID of the target database to link to.\\nExample: [{'name': 'Status', 'new_type': 'select'}, {'name': 'Tasks', 'new_type': 'relation', 'database_id': 'abc123...'}]\").optional(),\n database_id: z.string().describe(\"REQUIRED: The UUID identifier of the Notion database to update. IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are both UUIDs but they are NOT interchangeable - passing a page ID will result in an error. Use NOTION_FETCH_DATA with get_databases=true to get available database IDs. Format: UUID with or without hyphens (e.g., 'd9824bdc-8445-4327-be8b-554d41f30b60'). The database must be shared with your integration. NOTE: At least one of (title, description, or properties) must also be provided to perform an update.\"),\n description: z.string().describe(\"New description for the database. Leave as None or omit to keep the existing description unchanged. This updates the description text shown below the database title. At least one of (title, description, or properties) must be provided.\").optional(),\n});\nconst NotionUpdateSchemaDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated temporary URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_FileObjectSchema = z.object({\n file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),\n file_upload: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_LinkInfoSchema = z.object({\n url: z.string().describe(\"URL of the hyperlink.\").nullable(),\n}).passthrough().describe(\"Link information for hyperlinked text.\");\nconst NotionUpdateSchemaDatabase_TextContentSchema = z.object({\n link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content within a rich text object.\");\nconst NotionUpdateSchemaDatabase_DateMentionSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format, if range.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n}).passthrough().describe(\"Date information for a date mention.\");\nconst NotionUpdateSchemaDatabase_PageReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the page.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion page.\");\nconst NotionUpdateSchemaDatabase_BotOwnerUserSchema = z.object({\n id: z.string().describe(\"UUID of the user.\").nullable(),\n name: z.string().describe(\"Display name.\").nullable().optional(),\n type: z.string().describe(\"Type: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().default(\"user\").describe(\"Always 'user'.\").nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL.\").nullable().optional(),\n}).passthrough().describe(\"User reference in bot owner context (simplified to avoid circular reference).\");\nconst NotionUpdateSchemaDatabase_BotOwnerSchema = z.object({\n type: z.string().describe(\"Type of owner: 'workspace' or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"True when owner type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Owner information for a bot.\");\nconst NotionUpdateSchemaDatabase_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for a bot.\");\nconst NotionUpdateSchemaDatabase_BotInfoSchema = z.object({\n owner: NotionUpdateSchemaDatabase_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"UUID of the workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot.\").nullable().optional(),\n workspace_limits: NotionUpdateSchemaDatabase_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of person. Only present if integration has user capabilities.\").nullable().optional(),\n}).passthrough().describe(\"Person-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user' for user objects.\").nullable(),\n person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n}).passthrough().describe(\"Notion user object representing a person or bot.\");\nconst NotionUpdateSchemaDatabase_DatabaseReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the database.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion database.\");\nconst NotionUpdateSchemaDatabase_LinkPreviewMentionSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n}).passthrough().describe(\"Link preview mention information.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionDateSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_date'.\").nullable(),\n template_mention_date: z.string().describe(\"Template date value: 'today' or 'now'.\").nullable(),\n}).passthrough().describe(\"Template mention for dates.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionUserSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_user'.\").nullable(),\n template_mention_user: z.string().describe(\"Template user value: 'me'.\").nullable(),\n}).passthrough().describe(\"Template mention for users.\");\nconst NotionUpdateSchemaDatabase_MentionObjectSchema = z.object({\n date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),\n page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),\n database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),\n link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional(),\n}).passthrough().describe(\"Mention object within rich text.\");\nconst NotionUpdateSchemaDatabase_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX expression string.\").nullable(),\n}).passthrough().describe(\"LaTeX equation within rich text.\");\nconst NotionUpdateSchemaDatabase_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text. One of: default, gray, brown, orange, yellow, green, blue, purple, pink, red, or their _background variants.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling annotations for rich text.\");\nconst NotionUpdateSchemaDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL when the text is a hyperlink, null otherwise.\").nullable().optional(),\n text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),\n equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted plain text content.\").nullable(),\n annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for formatted text, mentions, and equations.\");\nconst NotionUpdateSchemaDatabase_ParentWorkspaceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace', indicating a top-level database.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentPageSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (when type is 'page_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentBlockSchema = z.object({\n type: z.string().describe(\"Type of parent: 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block (when type is 'block_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentDatabaseSchema = z.object({\n type: z.string().describe(\"Type of parent: 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database (when type is 'database_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentDataSourceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'data_source_id'.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source (when type is 'data_source_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_DataSourceSummarySchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n}).passthrough();\nexport const NotionUpdateSchemaDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\").nullable(),\n url: z.string().describe(\"The URL of the database in Notion.\").nullable(),\n icon: z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),\n cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),\n title: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database name as an array of rich text objects.\"),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionUpdateSchemaDatabase_ParentWorkspaceSchema, NotionUpdateSchemaDatabase_ParentPageSchema, NotionUpdateSchemaDatabase_ParentBlockSchema, NotionUpdateSchemaDatabase_ParentDatabaseSchema, NotionUpdateSchemaDatabase_ParentDataSourceSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database appears as an inline block (true) or as a child page (false).\").nullable(),\n created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Database schema properties representing columns, where each key is a property name or ID mapping to a property object.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been shared publicly, null otherwise.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n description: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionUpdateSchemaDatabase_DataSourceSummarySchema).describe(\"List of child data sources under this database. Each entry summarizes a data source; fetch a data source by ID to get its full schema/properties.\").nullable().optional(),\n last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).passthrough();\n\nexport const notionUpdateSchemaDatabase: AppAction<\n typeof NotionUpdateSchemaDatabaseInput,\n typeof NotionUpdateSchemaDatabaseOutput,\n typeof notion.credential\n> = action(\"NOTION_UPDATE_SCHEMA_DATABASE\", {\n slug: \"notion-update-schema-database\",\n name: \"Update database schema\",\n description: \"Updates an existing Notion database's schema including title, description, and/or properties (columns). IMPORTANT NOTES: - At least one update (title, description, or properties) must be provided - The database must be shared with your integration - Property names are case-sensitive and must match exactly - When changing a property to 'relation' type, you MUST provide the database_id of the target database - Removing properties will permanently delete that column and its data - Use NOTION_FETCH_DATA first to get the exact property names and database structure Common errors: - 'database_id' missing: Ensure you're passing the database_id parameter (not page_id) - 'data_source_id' undefined: When changing to relation type, database_id is required in PropertySchemaUpdate - Property name mismatch: Names must match exactly including case and special characters\",\n input: NotionUpdateSchemaDatabaseInput,\n output: NotionUpdateSchemaDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iNAAiN,CAAC,CAAC,SAAS;CACvP,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAC7B,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;EACnJ,QAAQA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtJ,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,UAAUA,IAAAA,EAAE,KAAK;GAAC;GAAS;GAAa;GAAU;GAAU;GAAgB;GAAQ;GAAU;GAAS;GAAY;GAAO;GAAS;GA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AAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrM,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtI,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3C,aAAaA,IAAAA,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7J,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACnG,cAAcA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5P,gBAAgB,6CAA6C,SAAS;CACtE,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AAC7G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAITC,eAAAA,OAAO,iCAAiC;CAC1C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { notion } from "../app.cjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-schema-database.d.ts
|
|
@@ -10,13 +12,13 @@ declare const NotionUpdateSchemaDatabaseInput: z.ZodObject<{
|
|
|
10
12
|
new_type: z.ZodOptional<z.ZodEnum<{
|
|
11
13
|
number: "number";
|
|
12
14
|
date: "date";
|
|
13
|
-
url: "url";
|
|
14
15
|
title: "title";
|
|
16
|
+
url: "url";
|
|
17
|
+
rich_text: "rich_text";
|
|
15
18
|
created_by: "created_by";
|
|
16
19
|
created_time: "created_time";
|
|
17
20
|
last_edited_by: "last_edited_by";
|
|
18
21
|
last_edited_time: "last_edited_time";
|
|
19
|
-
rich_text: "rich_text";
|
|
20
22
|
select: "select";
|
|
21
23
|
multi_select: "multi_select";
|
|
22
24
|
people: "people";
|
|
@@ -302,20 +304,7 @@ declare const NotionUpdateSchemaDatabaseOutput: z.ZodObject<{
|
|
|
302
304
|
}, z.core.$loose>>;
|
|
303
305
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
304
306
|
}, z.core.$loose>;
|
|
305
|
-
declare const notionUpdateSchemaDatabase:
|
|
306
|
-
database_id: string;
|
|
307
|
-
title?: string | undefined;
|
|
308
|
-
properties?: {
|
|
309
|
-
[x: string]: unknown;
|
|
310
|
-
name: string;
|
|
311
|
-
remove?: boolean | undefined;
|
|
312
|
-
rename?: string | undefined;
|
|
313
|
-
new_type?: "number" | "date" | "url" | "title" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "rich_text" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id" | undefined;
|
|
314
|
-
database_id?: string | undefined;
|
|
315
|
-
relation_type?: string | undefined;
|
|
316
|
-
}[] | undefined;
|
|
317
|
-
description?: string | undefined;
|
|
318
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
307
|
+
declare const notionUpdateSchemaDatabase: AppAction<typeof NotionUpdateSchemaDatabaseInput, typeof NotionUpdateSchemaDatabaseOutput, typeof notion.credential>;
|
|
319
308
|
//#endregion
|
|
320
309
|
export { notionUpdateSchemaDatabase };
|
|
321
310
|
//# sourceMappingURL=update-schema-database.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-schema-database.d.cts","names":[],"sources":["../../src/actions/update-schema-database.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-schema-database.d.cts","names":[],"sources":["../../src/actions/update-schema-database.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsJ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { notion } from "../app.mjs";
|
|
2
|
+
import { AppAction } from "@keystrokehq/keystroke/app";
|
|
1
3
|
import { z } from "zod";
|
|
2
4
|
|
|
3
5
|
//#region src/actions/update-schema-database.d.ts
|
|
@@ -10,13 +12,13 @@ declare const NotionUpdateSchemaDatabaseInput: z.ZodObject<{
|
|
|
10
12
|
new_type: z.ZodOptional<z.ZodEnum<{
|
|
11
13
|
number: "number";
|
|
12
14
|
date: "date";
|
|
13
|
-
url: "url";
|
|
14
15
|
title: "title";
|
|
16
|
+
url: "url";
|
|
17
|
+
rich_text: "rich_text";
|
|
15
18
|
created_by: "created_by";
|
|
16
19
|
created_time: "created_time";
|
|
17
20
|
last_edited_by: "last_edited_by";
|
|
18
21
|
last_edited_time: "last_edited_time";
|
|
19
|
-
rich_text: "rich_text";
|
|
20
22
|
select: "select";
|
|
21
23
|
multi_select: "multi_select";
|
|
22
24
|
people: "people";
|
|
@@ -302,20 +304,7 @@ declare const NotionUpdateSchemaDatabaseOutput: z.ZodObject<{
|
|
|
302
304
|
}, z.core.$loose>>;
|
|
303
305
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
304
306
|
}, z.core.$loose>;
|
|
305
|
-
declare const notionUpdateSchemaDatabase:
|
|
306
|
-
database_id: string;
|
|
307
|
-
title?: string | undefined;
|
|
308
|
-
properties?: {
|
|
309
|
-
[x: string]: unknown;
|
|
310
|
-
name: string;
|
|
311
|
-
remove?: boolean | undefined;
|
|
312
|
-
rename?: string | undefined;
|
|
313
|
-
new_type?: "number" | "date" | "url" | "title" | "created_by" | "created_time" | "last_edited_by" | "last_edited_time" | "rich_text" | "select" | "multi_select" | "people" | "files" | "checkbox" | "email" | "phone_number" | "formula" | "relation" | "rollup" | "status" | "place" | "unique_id" | undefined;
|
|
314
|
-
database_id?: string | undefined;
|
|
315
|
-
relation_type?: string | undefined;
|
|
316
|
-
}[] | undefined;
|
|
317
|
-
description?: string | undefined;
|
|
318
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
307
|
+
declare const notionUpdateSchemaDatabase: AppAction<typeof NotionUpdateSchemaDatabaseInput, typeof NotionUpdateSchemaDatabaseOutput, typeof notion.credential>;
|
|
319
308
|
//#endregion
|
|
320
309
|
export { notionUpdateSchemaDatabase };
|
|
321
310
|
//# sourceMappingURL=update-schema-database.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-schema-database.d.mts","names":[],"sources":["../../src/actions/update-schema-database.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-schema-database.d.mts","names":[],"sources":["../../src/actions/update-schema-database.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsJ/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAsBhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-schema-database.mjs","names":[],"sources":["../../src/actions/update-schema-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpdateSchemaDatabaseInput = z.object({\n title: z.string().describe(\"New title for the database. Leave as None or omit to keep the existing title unchanged. This updates the database name visible in Notion. At least one of (title, description, or properties) must be provided.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the existing property to update. This must match the exact case-sensitive name of the property in the database.\"),\n remove: z.boolean().default(false).describe(\"Set to true to remove this property from the database. Cannot be combined with other updates.\").optional(),\n rename: z.string().describe(\"New name for the property. If None (default), the name remains unchanged.\").optional(),\n new_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(\"New type for the property. If None (default), the type remains unchanged. IMPORTANT: When changing to 'relation' type, you MUST also provide 'database_id'. NOTE: Title properties CANNOT be changed to a different type - every Notion database must have exactly one title property. If you need to rename the title property, use 'rename' instead of 'new_type'.\").optional(),\n database_id: z.string().describe(\"ID of the database to relate to. REQUIRED when new_type is 'relation'. This is the UUID of the target database that this relation property will link to. The target database must be shared with your integration.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Type of relation when new_type is 'relation'. Either 'single_property' or 'dual_property'. Defaults to 'single_property'.\").optional(),\n}).passthrough()).default([]).describe(\"List of property (column) updates for the database schema. At least one of (title, description, or properties) must be provided. Each PropertySchemaUpdate must specify: \\n1) 'name': The EXACT case-sensitive name of the existing property\\n2) One of these actions:\\n - 'rename': Change the property name\\n - 'new_type': Change the property type (see PropertySchemaUpdate for valid types)\\n - 'remove': Set to true to delete the property\\nIMPORTANT: When changing a property to 'relation' type, you MUST also provide 'database_id' with the UUID of the target database to link to.\\nExample: [{'name': 'Status', 'new_type': 'select'}, {'name': 'Tasks', 'new_type': 'relation', 'database_id': 'abc123...'}]\").optional(),\n database_id: z.string().describe(\"REQUIRED: The UUID identifier of the Notion database to update. IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are both UUIDs but they are NOT interchangeable - passing a page ID will result in an error. Use NOTION_FETCH_DATA with get_databases=true to get available database IDs. Format: UUID with or without hyphens (e.g., 'd9824bdc-8445-4327-be8b-554d41f30b60'). The database must be shared with your integration. NOTE: At least one of (title, description, or properties) must also be provided to perform an update.\"),\n description: z.string().describe(\"New description for the database. Leave as None or omit to keep the existing description unchanged. This updates the description text shown below the database title. At least one of (title, description, or properties) must be provided.\").optional(),\n});\nconst NotionUpdateSchemaDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated temporary URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_FileObjectSchema = z.object({\n file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),\n file_upload: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_LinkInfoSchema = z.object({\n url: z.string().describe(\"URL of the hyperlink.\").nullable(),\n}).passthrough().describe(\"Link information for hyperlinked text.\");\nconst NotionUpdateSchemaDatabase_TextContentSchema = z.object({\n link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content within a rich text object.\");\nconst NotionUpdateSchemaDatabase_DateMentionSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format, if range.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n}).passthrough().describe(\"Date information for a date mention.\");\nconst NotionUpdateSchemaDatabase_PageReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the page.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion page.\");\nconst NotionUpdateSchemaDatabase_BotOwnerUserSchema = z.object({\n id: z.string().describe(\"UUID of the user.\").nullable(),\n name: z.string().describe(\"Display name.\").nullable().optional(),\n type: z.string().describe(\"Type: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().default(\"user\").describe(\"Always 'user'.\").nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL.\").nullable().optional(),\n}).passthrough().describe(\"User reference in bot owner context (simplified to avoid circular reference).\");\nconst NotionUpdateSchemaDatabase_BotOwnerSchema = z.object({\n type: z.string().describe(\"Type of owner: 'workspace' or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"True when owner type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Owner information for a bot.\");\nconst NotionUpdateSchemaDatabase_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for a bot.\");\nconst NotionUpdateSchemaDatabase_BotInfoSchema = z.object({\n owner: NotionUpdateSchemaDatabase_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"UUID of the workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot.\").nullable().optional(),\n workspace_limits: NotionUpdateSchemaDatabase_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of person. Only present if integration has user capabilities.\").nullable().optional(),\n}).passthrough().describe(\"Person-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user' for user objects.\").nullable(),\n person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n}).passthrough().describe(\"Notion user object representing a person or bot.\");\nconst NotionUpdateSchemaDatabase_DatabaseReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the database.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion database.\");\nconst NotionUpdateSchemaDatabase_LinkPreviewMentionSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n}).passthrough().describe(\"Link preview mention information.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionDateSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_date'.\").nullable(),\n template_mention_date: z.string().describe(\"Template date value: 'today' or 'now'.\").nullable(),\n}).passthrough().describe(\"Template mention for dates.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionUserSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_user'.\").nullable(),\n template_mention_user: z.string().describe(\"Template user value: 'me'.\").nullable(),\n}).passthrough().describe(\"Template mention for users.\");\nconst NotionUpdateSchemaDatabase_MentionObjectSchema = z.object({\n date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),\n page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),\n database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),\n link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional(),\n}).passthrough().describe(\"Mention object within rich text.\");\nconst NotionUpdateSchemaDatabase_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX expression string.\").nullable(),\n}).passthrough().describe(\"LaTeX equation within rich text.\");\nconst NotionUpdateSchemaDatabase_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text. One of: default, gray, brown, orange, yellow, green, blue, purple, pink, red, or their _background variants.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling annotations for rich text.\");\nconst NotionUpdateSchemaDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL when the text is a hyperlink, null otherwise.\").nullable().optional(),\n text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),\n equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted plain text content.\").nullable(),\n annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for formatted text, mentions, and equations.\");\nconst NotionUpdateSchemaDatabase_ParentWorkspaceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace', indicating a top-level database.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentPageSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (when type is 'page_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentBlockSchema = z.object({\n type: z.string().describe(\"Type of parent: 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block (when type is 'block_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentDatabaseSchema = z.object({\n type: z.string().describe(\"Type of parent: 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database (when type is 'database_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentDataSourceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'data_source_id'.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source (when type is 'data_source_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_DataSourceSummarySchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n}).passthrough();\nexport const NotionUpdateSchemaDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\").nullable(),\n url: z.string().describe(\"The URL of the database in Notion.\").nullable(),\n icon: z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),\n cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),\n title: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database name as an array of rich text objects.\"),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionUpdateSchemaDatabase_ParentWorkspaceSchema, NotionUpdateSchemaDatabase_ParentPageSchema, NotionUpdateSchemaDatabase_ParentBlockSchema, NotionUpdateSchemaDatabase_ParentDatabaseSchema, NotionUpdateSchemaDatabase_ParentDataSourceSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database appears as an inline block (true) or as a child page (false).\").nullable(),\n created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Database schema properties representing columns, where each key is a property name or ID mapping to a property object.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been shared publicly, null otherwise.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n description: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionUpdateSchemaDatabase_DataSourceSummarySchema).describe(\"List of child data sources under this database. Each entry summarizes a data source; fetch a data source by ID to get its full schema/properties.\").nullable().optional(),\n last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).passthrough();\n\nexport const notionUpdateSchemaDatabase = action(\"NOTION_UPDATE_SCHEMA_DATABASE\", {\n slug: \"notion-update-schema-database\",\n name: \"Update database schema\",\n description: \"Updates an existing Notion database's schema including title, description, and/or properties (columns). IMPORTANT NOTES: - At least one update (title, description, or properties) must be provided - The database must be shared with your integration - Property names are case-sensitive and must match exactly - When changing a property to 'relation' type, you MUST provide the database_id of the target database - Removing properties will permanently delete that column and its data - Use NOTION_FETCH_DATA first to get the exact property names and database structure Common errors: - 'database_id' missing: Ensure you're passing the database_id parameter (not page_id) - 'data_source_id' undefined: When changing to relation type, database_id is required in PropertySchemaUpdate - Property name mismatch: Names must match exactly including case and special characters\",\n input: NotionUpdateSchemaDatabaseInput,\n output: NotionUpdateSchemaDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iNAAiN,CAAC,CAAC,SAAS;CACvP,YAAY,EAAE,MAAM,EAAE,OAAO;EAC7B,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,yHAAyH;EACnJ,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;EACtJ,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;EAClH,UAAU,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,sWAAsW,CAAC,CAAC,SAAS;EACnpB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN,CAAC,CAAC,SAA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,CAAC,SAAS;EAC7E,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,WAAW,EAAE,QAAQ,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS;EAC/H,YAAY,6CAA6C,SAAS;EAClE,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrM,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3C,aAAa,EAAE,MAAM,+CAA+C,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7J,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EACnG,cAAc,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5P,gBAAgB,6CAA6C,SAAS;EACtE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"update-schema-database.mjs","names":[],"sources":["../../src/actions/update-schema-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionUpdateSchemaDatabaseInput = z.object({\n title: z.string().describe(\"New title for the database. Leave as None or omit to keep the existing title unchanged. This updates the database name visible in Notion. At least one of (title, description, or properties) must be provided.\").optional(),\n properties: z.array(z.object({\n name: z.string().describe(\"Name of the existing property to update. This must match the exact case-sensitive name of the property in the database.\"),\n remove: z.boolean().default(false).describe(\"Set to true to remove this property from the database. Cannot be combined with other updates.\").optional(),\n rename: z.string().describe(\"New name for the property. If None (default), the name remains unchanged.\").optional(),\n new_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(\"New type for the property. If None (default), the type remains unchanged. IMPORTANT: When changing to 'relation' type, you MUST also provide 'database_id'. NOTE: Title properties CANNOT be changed to a different type - every Notion database must have exactly one title property. If you need to rename the title property, use 'rename' instead of 'new_type'.\").optional(),\n database_id: z.string().describe(\"ID of the database to relate to. REQUIRED when new_type is 'relation'. This is the UUID of the target database that this relation property will link to. The target database must be shared with your integration.\").optional(),\n relation_type: z.string().default(\"single_property\").describe(\"Type of relation when new_type is 'relation'. Either 'single_property' or 'dual_property'. Defaults to 'single_property'.\").optional(),\n}).passthrough()).default([]).describe(\"List of property (column) updates for the database schema. At least one of (title, description, or properties) must be provided. Each PropertySchemaUpdate must specify: \\n1) 'name': The EXACT case-sensitive name of the existing property\\n2) One of these actions:\\n - 'rename': Change the property name\\n - 'new_type': Change the property type (see PropertySchemaUpdate for valid types)\\n - 'remove': Set to true to delete the property\\nIMPORTANT: When changing a property to 'relation' type, you MUST also provide 'database_id' with the UUID of the target database to link to.\\nExample: [{'name': 'Status', 'new_type': 'select'}, {'name': 'Tasks', 'new_type': 'relation', 'database_id': 'abc123...'}]\").optional(),\n database_id: z.string().describe(\"REQUIRED: The UUID identifier of the Notion database to update. IMPORTANT: This must be a DATABASE ID, not a page ID. Page IDs and database IDs are both UUIDs but they are NOT interchangeable - passing a page ID will result in an error. Use NOTION_FETCH_DATA with get_databases=true to get available database IDs. Format: UUID with or without hyphens (e.g., 'd9824bdc-8445-4327-be8b-554d41f30b60'). The database must be shared with your integration. NOTE: At least one of (title, description, or properties) must also be provided to perform an update.\"),\n description: z.string().describe(\"New description for the database. Leave as None or omit to keep the existing description unchanged. This updates the description text shown below the database title. At least one of (title, description, or properties) must be provided.\").optional(),\n});\nconst NotionUpdateSchemaDatabase_NotionFileSchema = z.object({\n url: z.string().describe(\"Authenticated temporary URL to the file, valid for one hour.\").nullable(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the URL expires.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ExternalFileSchema = z.object({\n url: z.string().describe(\"URL to the externally hosted file.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_FileObjectSchema = z.object({\n file: NotionUpdateSchemaDatabase_NotionFileSchema.nullable().optional(),\n type: z.string().describe(\"Type of file: 'external', 'file', or 'file_upload'.\").nullable(),\n external: NotionUpdateSchemaDatabase_ExternalFileSchema.nullable().optional(),\n file_upload: z.record(z.string(), z.unknown()).nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_CustomEmojiSchema = z.object({\n id: z.string().describe(\"Unique identifier for the custom emoji.\").nullable(),\n url: z.string().describe(\"Public URL to the emoji image.\").nullable(),\n name: z.string().describe(\"Display name of the custom emoji.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Type of icon: 'emoji', 'external', 'file', or 'custom_emoji'.\").nullable(),\n emoji: z.string().describe(\"Emoji character when type is 'emoji'.\").nullable().optional(),\n custom_emoji: NotionUpdateSchemaDatabase_CustomEmojiSchema.nullable().optional(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_LinkInfoSchema = z.object({\n url: z.string().describe(\"URL of the hyperlink.\").nullable(),\n}).passthrough().describe(\"Link information for hyperlinked text.\");\nconst NotionUpdateSchemaDatabase_TextContentSchema = z.object({\n link: NotionUpdateSchemaDatabase_LinkInfoSchema.nullable().optional(),\n content: z.string().describe(\"The actual text content.\").nullable(),\n}).passthrough().describe(\"Text content within a rich text object.\");\nconst NotionUpdateSchemaDatabase_DateMentionSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format, if range.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n}).passthrough().describe(\"Date information for a date mention.\");\nconst NotionUpdateSchemaDatabase_PageReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the page.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion page.\");\nconst NotionUpdateSchemaDatabase_BotOwnerUserSchema = z.object({\n id: z.string().describe(\"UUID of the user.\").nullable(),\n name: z.string().describe(\"Display name.\").nullable().optional(),\n type: z.string().describe(\"Type: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().default(\"user\").describe(\"Always 'user'.\").nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL.\").nullable().optional(),\n}).passthrough().describe(\"User reference in bot owner context (simplified to avoid circular reference).\");\nconst NotionUpdateSchemaDatabase_BotOwnerSchema = z.object({\n type: z.string().describe(\"Type of owner: 'workspace' or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"True when owner type is 'workspace'.\").nullable().optional(),\n}).passthrough().describe(\"Owner information for a bot.\");\nconst NotionUpdateSchemaDatabase_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file upload size in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limits for a bot.\");\nconst NotionUpdateSchemaDatabase_BotInfoSchema = z.object({\n owner: NotionUpdateSchemaDatabase_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"UUID of the workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot.\").nullable().optional(),\n workspace_limits: NotionUpdateSchemaDatabase_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PersonInfoSchema = z.object({\n email: z.string().describe(\"Email address of person. Only present if integration has user capabilities.\").nullable().optional(),\n}).passthrough().describe(\"Person-specific information for user objects.\");\nconst NotionUpdateSchemaDatabase_PartialUserSchema = z.object({\n id: z.string().describe(\"Unique identifier for the user (UUID).\").nullable(),\n bot: NotionUpdateSchemaDatabase_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.string().describe(\"Type of user: 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user' for user objects.\").nullable(),\n person: NotionUpdateSchemaDatabase_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL to the user's avatar image.\").nullable().optional(),\n}).passthrough().describe(\"Notion user object representing a person or bot.\");\nconst NotionUpdateSchemaDatabase_DatabaseReferenceSchema = z.object({\n id: z.string().describe(\"UUID of the database.\").nullable(),\n}).passthrough().describe(\"Reference to a Notion database.\");\nconst NotionUpdateSchemaDatabase_LinkPreviewMentionSchema = z.object({\n url: z.string().describe(\"URL of the link preview.\").nullable(),\n}).passthrough().describe(\"Link preview mention information.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionDateSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_date'.\").nullable(),\n template_mention_date: z.string().describe(\"Template date value: 'today' or 'now'.\").nullable(),\n}).passthrough().describe(\"Template mention for dates.\");\nconst NotionUpdateSchemaDatabase_TemplateMentionUserSchema = z.object({\n type: z.string().describe(\"Type: 'template_mention_user'.\").nullable(),\n template_mention_user: z.string().describe(\"Template user value: 'me'.\").nullable(),\n}).passthrough().describe(\"Template mention for users.\");\nconst NotionUpdateSchemaDatabase_MentionObjectSchema = z.object({\n date: NotionUpdateSchemaDatabase_DateMentionSchema.nullable().optional(),\n page: NotionUpdateSchemaDatabase_PageReferenceSchema.nullable().optional(),\n type: z.string().describe(\"Type of mention: 'database', 'date', 'link_preview', 'page', 'template_mention', or 'user'.\").nullable(),\n user: NotionUpdateSchemaDatabase_PartialUserSchema.nullable().optional(),\n database: NotionUpdateSchemaDatabase_DatabaseReferenceSchema.nullable().optional(),\n link_preview: NotionUpdateSchemaDatabase_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionUpdateSchemaDatabase_TemplateMentionDateSchema, NotionUpdateSchemaDatabase_TemplateMentionUserSchema]).nullable().optional(),\n}).passthrough().describe(\"Mention object within rich text.\");\nconst NotionUpdateSchemaDatabase_EquationObjectSchema = z.object({\n expression: z.string().describe(\"LaTeX expression string.\").nullable(),\n}).passthrough().describe(\"LaTeX equation within rich text.\");\nconst NotionUpdateSchemaDatabase_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is formatted as code.\").nullable(),\n color: z.string().describe(\"Color of the text. One of: default, gray, brown, orange, yellow, green, blue, purple, pink, red, or their _background variants.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Styling annotations for rich text.\");\nconst NotionUpdateSchemaDatabase_RichTextObjectSchema = z.object({\n href: z.string().describe(\"URL when the text is a hyperlink, null otherwise.\").nullable().optional(),\n text: NotionUpdateSchemaDatabase_TextContentSchema.nullable().optional(),\n type: z.string().describe(\"Type of rich text: 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionUpdateSchemaDatabase_MentionObjectSchema.nullable().optional(),\n equation: NotionUpdateSchemaDatabase_EquationObjectSchema.nullable().optional(),\n plain_text: z.string().describe(\"Unformatted plain text content.\").nullable(),\n annotations: NotionUpdateSchemaDatabase_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object for formatted text, mentions, and equations.\");\nconst NotionUpdateSchemaDatabase_ParentWorkspaceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'workspace'.\").nullable(),\n workspace: z.boolean().describe(\"Always true when type is 'workspace', indicating a top-level database.\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentPageSchema = z.object({\n type: z.string().describe(\"Type of parent: 'page_id'.\").nullable(),\n page_id: z.string().describe(\"UUID of the parent page (when type is 'page_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentBlockSchema = z.object({\n type: z.string().describe(\"Type of parent: 'block_id'.\").nullable(),\n block_id: z.string().describe(\"UUID of the parent block (when type is 'block_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentDatabaseSchema = z.object({\n type: z.string().describe(\"Type of parent: 'database_id'.\").nullable(),\n database_id: z.string().describe(\"UUID of the parent database (when type is 'database_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_ParentDataSourceSchema = z.object({\n type: z.string().describe(\"Type of parent: 'data_source_id'.\").nullable(),\n data_source_id: z.string().describe(\"UUID of the parent data source (when type is 'data_source_id').\").nullable(),\n}).passthrough();\nconst NotionUpdateSchemaDatabase_DataSourceSummarySchema = z.object({\n id: z.string().nullable(),\n name: z.string().nullable(),\n}).passthrough();\nexport const NotionUpdateSchemaDatabaseOutput = z.object({\n id: z.string().describe(\"Unique identifier for the database (UUID format).\").nullable(),\n url: z.string().describe(\"The URL of the database in Notion.\").nullable(),\n icon: z.union([NotionUpdateSchemaDatabase_FileObjectSchema, NotionUpdateSchemaDatabase_EmojiObjectSchema]).nullable().optional(),\n cover: NotionUpdateSchemaDatabase_FileObjectSchema.nullable().optional(),\n title: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database name as an array of rich text objects.\"),\n object: z.string().describe(\"Always 'database' for database objects.\").nullable(),\n parent: z.union([NotionUpdateSchemaDatabase_ParentWorkspaceSchema, NotionUpdateSchemaDatabase_ParentPageSchema, NotionUpdateSchemaDatabase_ParentBlockSchema, NotionUpdateSchemaDatabase_ParentDatabaseSchema, NotionUpdateSchemaDatabase_ParentDataSourceSchema]),\n archived: z.boolean().describe(\"Whether the database is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable().optional(),\n is_inline: z.boolean().describe(\"Whether the database appears as an inline block (true) or as a child page (false).\").nullable(),\n created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Database schema properties representing columns, where each key is a property name or ID mapping to a property object.\").nullable().optional(),\n public_url: z.string().describe(\"The public URL of the database if it has been shared publicly, null otherwise.\").nullable().optional(),\n request_id: z.string().nullable().optional(),\n description: z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe(\"Database description as an array of rich text objects.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp of when the database was created.\").nullable(),\n data_sources: z.array(NotionUpdateSchemaDatabase_DataSourceSummarySchema).describe(\"List of child data sources under this database. Each entry summarizes a data source; fetch a data source by ID to get its full schema/properties.\").nullable().optional(),\n last_edited_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of when the database was last edited.\").nullable(),\n}).passthrough();\n\nexport const notionUpdateSchemaDatabase: AppAction<\n typeof NotionUpdateSchemaDatabaseInput,\n typeof NotionUpdateSchemaDatabaseOutput,\n typeof notion.credential\n> = action(\"NOTION_UPDATE_SCHEMA_DATABASE\", {\n slug: \"notion-update-schema-database\",\n name: \"Update database schema\",\n description: \"Updates an existing Notion database's schema including title, description, and/or properties (columns). IMPORTANT NOTES: - At least one update (title, description, or properties) must be provided - The database must be shared with your integration - Property names are case-sensitive and must match exactly - When changing a property to 'relation' type, you MUST provide the database_id of the target database - Removing properties will permanently delete that column and its data - Use NOTION_FETCH_DATA first to get the exact property names and database structure Common errors: - 'database_id' missing: Ensure you're passing the database_id parameter (not page_id) - 'data_source_id' undefined: When changing to relation type, database_id is required in PropertySchemaUpdate - Property name mismatch: Names must match exactly including case and special characters\",\n input: NotionUpdateSchemaDatabaseInput,\n output: NotionUpdateSchemaDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAk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AAS,sDAAsD,CAAC,CAAC,SAAS;EACnG,cAAc,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5P,gBAAgB,6CAA6C,SAAS;EACtE,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC7G,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-row-database.cjs","names":["z","action"],"sources":["../../src/actions/upsert-row-database.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionUpsertRowDatabaseInput = z.object({\n items: z.array(z.object({\n match: z.union([z.object({\n equals: z.string().describe(\"Value to match exactly.\"),\n property: z.string().describe(\"Property name or ID to filter by.\"),\n}).passthrough().describe(\"Filter specification for matching existing rows.\"), z.record(z.string(), z.unknown())]),\n create: z.object({\n icon: z.union([z.object({\n type: z.string().default(\"emoji\").describe(\"The icon type (emoji).\").optional(),\n emoji: z.string().describe(\"Emoji character (e.g., '🎉').\"),\n}).passthrough().describe(\"Emoji icon.\"), z.object({\n type: z.string().default(\"external\").describe(\"The icon type (external URL).\").optional(),\n external: z.object({\n url: z.string().describe(\"URL of the external file.\"),\n}).passthrough().describe(\"External file URL.\"),\n}).passthrough().describe(\"External file icon.\"), z.record(z.string(), z.unknown())]).optional(),\n cover: z.union([z.object({\n type: z.string().default(\"external\").describe(\"The cover image type (external URL).\").optional(),\n external: z.object({\n url: z.string().describe(\"URL of the external file.\"),\n}).passthrough().describe(\"External image URL.\"),\n}).passthrough().describe(\"External cover image.\"), z.record(z.string(), z.unknown())]).optional(),\n children: z.array(z.union([z.object({\n type: z.string().default(\"paragraph\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n paragraph: z.record(z.string(), z.unknown()).describe(\"Paragraph content with rich_text array.\"),\n}).passthrough().describe(\"Paragraph block type.\"), z.object({\n type: z.string().default(\"heading_1\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n heading_1: z.record(z.string(), z.unknown()).describe(\"Heading content with rich_text array.\"),\n}).passthrough().describe(\"Heading 1 block type.\"), z.object({\n type: z.string().default(\"heading_2\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n heading_2: z.record(z.string(), z.unknown()).describe(\"Heading content with rich_text array.\"),\n}).passthrough().describe(\"Heading 2 block type.\"), z.object({\n type: z.string().default(\"heading_3\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n heading_3: z.record(z.string(), z.unknown()).describe(\"Heading content with rich_text array.\"),\n}).passthrough().describe(\"Heading 3 block type.\"), z.object({\n type: z.string().default(\"bulleted_list_item\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n bulleted_list_item: z.record(z.string(), z.unknown()).describe(\"List item content with rich_text array.\"),\n}).passthrough().describe(\"Bulleted list item block type.\"), z.object({\n type: z.string().default(\"numbered_list_item\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n numbered_list_item: z.record(z.string(), z.unknown()).describe(\"List item content with rich_text array.\"),\n}).passthrough().describe(\"Numbered list item block type.\"), z.object({\n type: z.string().default(\"to_do\").describe(\"The block type identifier.\").optional(),\n to_do: z.record(z.string(), z.unknown()).describe(\"To-do content with rich_text array and checked boolean.\"),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n}).passthrough().describe(\"To-do block type.\"), z.object({\n type: z.string().default(\"toggle\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n toggle: z.record(z.string(), z.unknown()).describe(\"Toggle content with rich_text array.\"),\n}).passthrough().describe(\"Toggle block type.\"), z.object({\n code: z.record(z.string(), z.unknown()).describe(\"Code content with rich_text array and language.\"),\n type: z.string().default(\"code\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n}).passthrough().describe(\"Code block type.\"), z.object({\n type: z.string().default(\"quote\").describe(\"The block type identifier.\").optional(),\n quote: z.record(z.string(), z.unknown()).describe(\"Quote content with rich_text array.\"),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n}).passthrough().describe(\"Quote block type.\"), z.object({\n type: z.string().default(\"callout\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n callout: z.record(z.string(), z.unknown()).describe(\"Callout content with rich_text array and icon.\"),\n}).passthrough().describe(\"Callout block type.\"), z.object({\n type: z.string().default(\"divider\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n divider: z.record(z.string(), z.unknown()).describe(\"Empty object for divider.\").optional(),\n}).passthrough().describe(\"Divider block type.\"), z.record(z.string(), z.unknown())])).describe(\"Array of block objects to add as page content. Each block has 'type' and a corresponding content object. Supported types: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, code, quote, callout, divider.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values for the new page. Keys are property names, values are property value objects. Supported types: title, rich_text, number, select, multi_select, status, date, people, files, checkbox, url, email, phone_number, relation. Format: {'PropertyName': {'type_name': value}}. Example: {'Name': {'title': [{'text': {'content': 'Page Title'}}]}, 'Status': {'select': {'name': 'Done'}}, 'Count': {'number': 42}}\"),\n}).describe(\"Payload to use when creating a new page if no match is found.\"),\n update: z.object({\n icon: z.union([z.object({\n type: z.string().default(\"emoji\").describe(\"The icon type (emoji).\").optional(),\n emoji: z.string().describe(\"Emoji character (e.g., '🎉').\"),\n}).passthrough().describe(\"Emoji icon.\"), z.object({\n type: z.string().default(\"external\").describe(\"The icon type (external URL).\").optional(),\n external: z.object({\n url: z.string().describe(\"URL of the external file.\"),\n}).passthrough().describe(\"External file URL.\"),\n}).passthrough().describe(\"External file icon.\"), z.record(z.string(), z.unknown())]).optional(),\n cover: z.union([z.object({\n type: z.string().default(\"external\").describe(\"The cover image type (external URL).\").optional(),\n external: z.object({\n url: z.string().describe(\"URL of the external file.\"),\n}).passthrough().describe(\"External image URL.\"),\n}).passthrough().describe(\"External cover image.\"), z.record(z.string(), z.unknown())]).optional(),\n archived: z.boolean().describe(\"Set to true to archive the page, false to restore.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values to update. Keys are property names, values are property value objects. Only properties specified will be updated; others remain unchanged. Format: {'PropertyName': {'type_name': value}}. Example: {'Status': {'select': {'name': 'Done'}}, 'Count': {'number': 42}}\").optional(),\n}).describe(\"Payload to use when updating an existing page if a match is found.\"),\n}).passthrough().describe(\"Single upsert item containing match criteria and create/update payloads.\")).describe(\"Array of items to upsert. Each item contains match criteria and create/update payloads.\"),\n options: z.object({\n continue_on_error: z.boolean().default(true).describe(\"If true, continue processing remaining items after an error; if false, stop on first error.\").optional(),\n if_multiple_matches: z.enum([\"error\", \"update_first\"]).default(\"update_first\").describe(\"Behavior when multiple matches are found: 'error' raises an error, 'update_first' updates the first result.\").optional(),\n}).describe(\"Options controlling upsert behavior.\").optional(),\n database_id: z.string().describe(\"UUID of the Notion database (legacy). If provided without data_source_id, will attempt to resolve to data_source_id. Only safe for single-source databases.\").optional(),\n data_source_id: z.string().describe(\"UUID of the Notion data source (preferred). Required if database_id is not provided.\").optional(),\n}).describe(\"Request model for upserting rows in a Notion database.\");\nconst NotionUpsertRowDatabase_UpsertItemResultSchema = z.object({\n ok: z.boolean().describe(\"Whether the operation succeeded.\").nullable(),\n index: z.number().int().describe(\"Zero-based index of the item in the request array.\").nullable(),\n action: z.enum([\"created\", \"updated\"]).describe(\"Action performed: 'created' or 'updated'. Null if error occurred.\").nullable().optional(),\n page_id: z.string().describe(\"UUID of the created or updated page. Null if error occurred.\").nullable().optional(),\n error_code: z.string().describe(\"Error code if operation failed.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if operation failed.\").nullable().optional(),\n}).passthrough().describe(\"Result for a single upsert item.\");\nexport const NotionUpsertRowDatabaseOutput = z.object({\n results: z.array(NotionUpsertRowDatabase_UpsertItemResultSchema).describe(\"Array of results for each upsert item, in the same order as the request.\"),\n error_count: z.number().int().describe(\"Number of items that failed.\").nullable(),\n success_count: z.number().int().describe(\"Number of items that succeeded.\").nullable(),\n}).passthrough().describe(\"Response model for upserting rows in a Notion database.\");\n\nexport const notionUpsertRowDatabase = action(\"NOTION_UPSERT_ROW_DATABASE\", {\n slug: \"notion-upsert-row-database\",\n name: \"Upsert database rows\",\n description: \"Tool to upsert rows in a Notion database by querying for existing rows and creating or updating them. Use when you need to sync data to Notion without creating duplicates. Each item is matched by a filter, then either created (if no match) or updated (if match found). Supports bulk operations with per-item error handling.\",\n input: NotionUpsertRowDatabaseInput,\n output: NotionUpsertRowDatabaseOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;GACzB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;GACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;EAC/G,QAAQA,IAAAA,EAAE,OAAO;GACjB,MAAMA,IAAAA,EAAE,MAAM;IAACA,IAAAA,EAAE,OAAO;KACxB,MAAMA,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AC,SAAS;CAChG,QAAQA,IAAAA,EAAE,KAAK,CAAC,WAAW,SAAS,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kCAAkC;AAC5D,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,0EAA0E;CACpJ,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CAChF,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAAyD;AAEnF,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"upsert-row-database.cjs","names":["z","action"],"sources":["../../src/actions/upsert-row-database.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { notion } from \"../app\";\n\nexport const NotionUpsertRowDatabaseInput = z.object({\n items: z.array(z.object({\n match: z.union([z.object({\n equals: z.string().describe(\"Value to match exactly.\"),\n property: z.string().describe(\"Property name or ID to filter by.\"),\n}).passthrough().describe(\"Filter specification for matching existing rows.\"), z.record(z.string(), z.unknown())]),\n create: z.object({\n icon: z.union([z.object({\n type: z.string().default(\"emoji\").describe(\"The icon type (emoji).\").optional(),\n emoji: z.string().describe(\"Emoji character (e.g., '🎉').\"),\n}).passthrough().describe(\"Emoji icon.\"), z.object({\n type: z.string().default(\"external\").describe(\"The icon type (external URL).\").optional(),\n external: z.object({\n url: z.string().describe(\"URL of the external file.\"),\n}).passthrough().describe(\"External file URL.\"),\n}).passthrough().describe(\"External file icon.\"), z.record(z.string(), z.unknown())]).optional(),\n cover: z.union([z.object({\n type: z.string().default(\"external\").describe(\"The cover image type (external URL).\").optional(),\n external: z.object({\n url: z.string().describe(\"URL of the external file.\"),\n}).passthrough().describe(\"External image URL.\"),\n}).passthrough().describe(\"External cover image.\"), z.record(z.string(), z.unknown())]).optional(),\n children: z.array(z.union([z.object({\n type: z.string().default(\"paragraph\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n paragraph: z.record(z.string(), z.unknown()).describe(\"Paragraph content with rich_text array.\"),\n}).passthrough().describe(\"Paragraph block type.\"), z.object({\n type: z.string().default(\"heading_1\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n heading_1: z.record(z.string(), z.unknown()).describe(\"Heading content with rich_text array.\"),\n}).passthrough().describe(\"Heading 1 block type.\"), z.object({\n type: z.string().default(\"heading_2\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n heading_2: z.record(z.string(), z.unknown()).describe(\"Heading content with rich_text array.\"),\n}).passthrough().describe(\"Heading 2 block type.\"), z.object({\n type: z.string().default(\"heading_3\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n heading_3: z.record(z.string(), z.unknown()).describe(\"Heading content with rich_text array.\"),\n}).passthrough().describe(\"Heading 3 block type.\"), z.object({\n type: z.string().default(\"bulleted_list_item\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n bulleted_list_item: z.record(z.string(), z.unknown()).describe(\"List item content with rich_text array.\"),\n}).passthrough().describe(\"Bulleted list item block type.\"), z.object({\n type: z.string().default(\"numbered_list_item\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n numbered_list_item: z.record(z.string(), z.unknown()).describe(\"List item content with rich_text array.\"),\n}).passthrough().describe(\"Numbered list item block type.\"), z.object({\n type: z.string().default(\"to_do\").describe(\"The block type identifier.\").optional(),\n to_do: z.record(z.string(), z.unknown()).describe(\"To-do content with rich_text array and checked boolean.\"),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n}).passthrough().describe(\"To-do block type.\"), z.object({\n type: z.string().default(\"toggle\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n toggle: z.record(z.string(), z.unknown()).describe(\"Toggle content with rich_text array.\"),\n}).passthrough().describe(\"Toggle block type.\"), z.object({\n code: z.record(z.string(), z.unknown()).describe(\"Code content with rich_text array and language.\"),\n type: z.string().default(\"code\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n}).passthrough().describe(\"Code block type.\"), z.object({\n type: z.string().default(\"quote\").describe(\"The block type identifier.\").optional(),\n quote: z.record(z.string(), z.unknown()).describe(\"Quote content with rich_text array.\"),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n}).passthrough().describe(\"Quote block type.\"), z.object({\n type: z.string().default(\"callout\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n callout: z.record(z.string(), z.unknown()).describe(\"Callout content with rich_text array and icon.\"),\n}).passthrough().describe(\"Callout block type.\"), z.object({\n type: z.string().default(\"divider\").describe(\"The block type identifier.\").optional(),\n object: z.string().default(\"block\").describe(\"The object type identifier (always 'block').\").optional(),\n divider: z.record(z.string(), z.unknown()).describe(\"Empty object for divider.\").optional(),\n}).passthrough().describe(\"Divider block type.\"), z.record(z.string(), z.unknown())])).describe(\"Array of block objects to add as page content. Each block has 'type' and a corresponding content object. Supported types: paragraph, heading_1, heading_2, heading_3, bulleted_list_item, numbered_list_item, to_do, toggle, code, quote, callout, divider.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values for the new page. Keys are property names, values are property value objects. Supported types: title, rich_text, number, select, multi_select, status, date, people, files, checkbox, url, email, phone_number, relation. Format: {'PropertyName': {'type_name': value}}. Example: {'Name': {'title': [{'text': {'content': 'Page Title'}}]}, 'Status': {'select': {'name': 'Done'}}, 'Count': {'number': 42}}\"),\n}).describe(\"Payload to use when creating a new page if no match is found.\"),\n update: z.object({\n icon: z.union([z.object({\n type: z.string().default(\"emoji\").describe(\"The icon type (emoji).\").optional(),\n emoji: z.string().describe(\"Emoji character (e.g., '🎉').\"),\n}).passthrough().describe(\"Emoji icon.\"), z.object({\n type: z.string().default(\"external\").describe(\"The icon type (external URL).\").optional(),\n external: z.object({\n url: z.string().describe(\"URL of the external file.\"),\n}).passthrough().describe(\"External file URL.\"),\n}).passthrough().describe(\"External file icon.\"), z.record(z.string(), z.unknown())]).optional(),\n cover: z.union([z.object({\n type: z.string().default(\"external\").describe(\"The cover image type (external URL).\").optional(),\n external: z.object({\n url: z.string().describe(\"URL of the external file.\"),\n}).passthrough().describe(\"External image URL.\"),\n}).passthrough().describe(\"External cover image.\"), z.record(z.string(), z.unknown())]).optional(),\n archived: z.boolean().describe(\"Set to true to archive the page, false to restore.\").optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Property values to update. Keys are property names, values are property value objects. Only properties specified will be updated; others remain unchanged. Format: {'PropertyName': {'type_name': value}}. Example: {'Status': {'select': {'name': 'Done'}}, 'Count': {'number': 42}}\").optional(),\n}).describe(\"Payload to use when updating an existing page if a match is found.\"),\n}).passthrough().describe(\"Single upsert item containing match criteria and create/update payloads.\")).describe(\"Array of items to upsert. Each item contains match criteria and create/update payloads.\"),\n options: z.object({\n continue_on_error: z.boolean().default(true).describe(\"If true, continue processing remaining items after an error; if false, stop on first error.\").optional(),\n if_multiple_matches: z.enum([\"error\", \"update_first\"]).default(\"update_first\").describe(\"Behavior when multiple matches are found: 'error' raises an error, 'update_first' updates the first result.\").optional(),\n}).describe(\"Options controlling upsert behavior.\").optional(),\n database_id: z.string().describe(\"UUID of the Notion database (legacy). If provided without data_source_id, will attempt to resolve to data_source_id. Only safe for single-source databases.\").optional(),\n data_source_id: z.string().describe(\"UUID of the Notion data source (preferred). Required if database_id is not provided.\").optional(),\n}).describe(\"Request model for upserting rows in a Notion database.\");\nconst NotionUpsertRowDatabase_UpsertItemResultSchema = z.object({\n ok: z.boolean().describe(\"Whether the operation succeeded.\").nullable(),\n index: z.number().int().describe(\"Zero-based index of the item in the request array.\").nullable(),\n action: z.enum([\"created\", \"updated\"]).describe(\"Action performed: 'created' or 'updated'. Null if error occurred.\").nullable().optional(),\n page_id: z.string().describe(\"UUID of the created or updated page. Null if error occurred.\").nullable().optional(),\n error_code: z.string().describe(\"Error code if operation failed.\").nullable().optional(),\n error_message: z.string().describe(\"Error message if operation failed.\").nullable().optional(),\n}).passthrough().describe(\"Result for a single upsert item.\");\nexport const NotionUpsertRowDatabaseOutput = z.object({\n results: z.array(NotionUpsertRowDatabase_UpsertItemResultSchema).describe(\"Array of results for each upsert item, in the same order as the request.\"),\n error_count: z.number().int().describe(\"Number of items that failed.\").nullable(),\n success_count: z.number().int().describe(\"Number of items that succeeded.\").nullable(),\n}).passthrough().describe(\"Response model for upserting rows in a Notion database.\");\n\nexport const notionUpsertRowDatabase: AppAction<\n typeof NotionUpsertRowDatabaseInput,\n typeof NotionUpsertRowDatabaseOutput,\n typeof notion.credential\n> = action(\"NOTION_UPSERT_ROW_DATABASE\", {\n slug: \"notion-upsert-row-database\",\n name: \"Upsert database rows\",\n description: \"Tool to upsert rows in a Notion database by querying for existing rows and creating or updating them. Use when you need to sync data to Notion without creating duplicates. Each item is matched by a filter, then either created (if no match) or updated (if match found). Supports bulk operations with per-item error handling.\",\n input: NotionUpsertRowDatabaseInput,\n output: NotionUpsertRowDatabaseOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EACxB,OAAOA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO;GACzB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;GACrD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EACnE,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,kDAAkD,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC;EAC/G,QAAQA,IAAAA,EAAE,OAAO;GACjB,MAAMA,IAAAA,EAAE,MAAM;IAACA,IAAAA,EAAE,OAAO;KACxB,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;KAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;IAC5D,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,aAAa;IAAGA,IAAAA,EAAE,OAAO;KACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,UAAU,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;KACxF,UAAUA,IAAAA,EAAE,OAAO,EACnB,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,EACtD,CAAC,CAAC,CAAC,YAA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