@keystrokehq/notion 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/actions/add-multiple-page-content.cjs +5 -5
- package/dist/actions/add-multiple-page-content.cjs.map +1 -1
- package/dist/actions/add-multiple-page-content.d.cts +18 -16
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +18 -16
- package/dist/actions/add-multiple-page-content.d.mts.map +1 -1
- package/dist/actions/add-multiple-page-content.mjs +5 -5
- package/dist/actions/add-multiple-page-content.mjs.map +1 -1
- package/dist/actions/append-code-blocks.cjs +60 -60
- package/dist/actions/append-code-blocks.cjs.map +1 -1
- package/dist/actions/append-code-blocks.d.cts +167 -149
- package/dist/actions/append-code-blocks.d.mts +167 -149
- package/dist/actions/append-code-blocks.mjs +60 -60
- package/dist/actions/append-code-blocks.mjs.map +1 -1
- package/dist/actions/append-layout-blocks.cjs +51 -51
- package/dist/actions/append-layout-blocks.cjs.map +1 -1
- package/dist/actions/append-layout-blocks.d.cts +151 -141
- package/dist/actions/append-layout-blocks.d.mts +151 -141
- package/dist/actions/append-layout-blocks.mjs +51 -51
- package/dist/actions/append-layout-blocks.mjs.map +1 -1
- package/dist/actions/append-media-blocks.cjs +85 -85
- package/dist/actions/append-media-blocks.cjs.map +1 -1
- package/dist/actions/append-media-blocks.d.cts +217 -174
- package/dist/actions/append-media-blocks.d.mts +217 -174
- package/dist/actions/append-media-blocks.mjs +85 -85
- package/dist/actions/append-media-blocks.mjs.map +1 -1
- package/dist/actions/append-table-blocks.cjs +47 -47
- package/dist/actions/append-table-blocks.cjs.map +1 -1
- package/dist/actions/append-table-blocks.d.cts +143 -137
- package/dist/actions/append-table-blocks.d.mts +143 -137
- package/dist/actions/append-table-blocks.mjs +47 -47
- package/dist/actions/append-table-blocks.mjs.map +1 -1
- package/dist/actions/append-task-blocks.cjs +61 -61
- package/dist/actions/append-task-blocks.cjs.map +1 -1
- package/dist/actions/append-task-blocks.d.cts +169 -150
- package/dist/actions/append-task-blocks.d.mts +169 -150
- package/dist/actions/append-task-blocks.mjs +61 -61
- package/dist/actions/append-task-blocks.mjs.map +1 -1
- package/dist/actions/append-text-blocks.cjs +78 -78
- package/dist/actions/append-text-blocks.cjs.map +1 -1
- package/dist/actions/append-text-blocks.d.cts +203 -167
- package/dist/actions/append-text-blocks.d.mts +203 -167
- package/dist/actions/append-text-blocks.mjs +78 -78
- package/dist/actions/append-text-blocks.mjs.map +1 -1
- package/dist/actions/archive-notion-page.cjs +17 -17
- package/dist/actions/archive-notion-page.cjs.map +1 -1
- package/dist/actions/archive-notion-page.d.cts +20 -20
- package/dist/actions/archive-notion-page.d.mts +20 -20
- package/dist/actions/archive-notion-page.mjs +17 -17
- package/dist/actions/archive-notion-page.mjs.map +1 -1
- package/dist/actions/create-comment.d.cts +9 -9
- package/dist/actions/create-comment.d.mts +9 -9
- package/dist/actions/create-database.cjs +15 -15
- package/dist/actions/create-database.cjs.map +1 -1
- package/dist/actions/create-database.d.cts +26 -25
- package/dist/actions/create-database.d.mts +26 -25
- package/dist/actions/create-database.mjs +15 -15
- package/dist/actions/create-database.mjs.map +1 -1
- package/dist/actions/create-file-upload.cjs +1 -1
- package/dist/actions/create-file-upload.cjs.map +1 -1
- package/dist/actions/create-file-upload.d.cts +1 -1
- package/dist/actions/create-file-upload.d.mts +1 -1
- package/dist/actions/create-file-upload.mjs +1 -1
- package/dist/actions/create-file-upload.mjs.map +1 -1
- package/dist/actions/create-notion-page.cjs +14 -14
- package/dist/actions/create-notion-page.cjs.map +1 -1
- package/dist/actions/create-notion-page.d.cts +18 -18
- package/dist/actions/create-notion-page.d.mts +18 -18
- package/dist/actions/create-notion-page.mjs +14 -14
- package/dist/actions/create-notion-page.mjs.map +1 -1
- package/dist/actions/delete-block.cjs +46 -46
- package/dist/actions/delete-block.cjs.map +1 -1
- package/dist/actions/delete-block.d.cts +338 -338
- package/dist/actions/delete-block.d.mts +338 -338
- package/dist/actions/delete-block.mjs +46 -46
- package/dist/actions/delete-block.mjs.map +1 -1
- package/dist/actions/duplicate-page.cjs +20 -20
- package/dist/actions/duplicate-page.cjs.map +1 -1
- package/dist/actions/duplicate-page.d.cts +24 -24
- package/dist/actions/duplicate-page.d.mts +24 -24
- package/dist/actions/duplicate-page.mjs +20 -20
- package/dist/actions/duplicate-page.mjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.cjs +58 -58
- package/dist/actions/fetch-all-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-all-block-contents.d.cts +4 -4
- package/dist/actions/fetch-all-block-contents.d.mts +4 -4
- package/dist/actions/fetch-all-block-contents.mjs +58 -58
- package/dist/actions/fetch-all-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-contents.cjs +49 -49
- package/dist/actions/fetch-block-contents.cjs.map +1 -1
- package/dist/actions/fetch-block-contents.d.cts +172 -172
- package/dist/actions/fetch-block-contents.d.mts +172 -172
- package/dist/actions/fetch-block-contents.mjs +49 -49
- package/dist/actions/fetch-block-contents.mjs.map +1 -1
- package/dist/actions/fetch-block-metadata.cjs +43 -43
- package/dist/actions/fetch-block-metadata.cjs.map +1 -1
- package/dist/actions/fetch-block-metadata.d.cts +296 -296
- package/dist/actions/fetch-block-metadata.d.mts +296 -296
- package/dist/actions/fetch-block-metadata.mjs +43 -43
- package/dist/actions/fetch-block-metadata.mjs.map +1 -1
- package/dist/actions/fetch-comments.cjs +24 -24
- package/dist/actions/fetch-comments.cjs.map +1 -1
- package/dist/actions/fetch-comments.d.cts +33 -33
- package/dist/actions/fetch-comments.d.mts +33 -33
- package/dist/actions/fetch-comments.mjs +24 -24
- package/dist/actions/fetch-comments.mjs.map +1 -1
- package/dist/actions/fetch-data.cjs +33 -33
- package/dist/actions/fetch-data.cjs.map +1 -1
- package/dist/actions/fetch-data.d.cts +131 -131
- package/dist/actions/fetch-data.d.mts +131 -131
- package/dist/actions/fetch-data.mjs +33 -33
- package/dist/actions/fetch-data.mjs.map +1 -1
- package/dist/actions/fetch-database.cjs +13 -13
- package/dist/actions/fetch-database.cjs.map +1 -1
- package/dist/actions/fetch-database.d.cts +18 -18
- package/dist/actions/fetch-database.d.mts +18 -18
- package/dist/actions/fetch-database.mjs +13 -13
- package/dist/actions/fetch-database.mjs.map +1 -1
- package/dist/actions/fetch-row.cjs +23 -23
- package/dist/actions/fetch-row.cjs.map +1 -1
- package/dist/actions/fetch-row.d.cts +40 -40
- package/dist/actions/fetch-row.d.mts +40 -40
- package/dist/actions/fetch-row.mjs +23 -23
- package/dist/actions/fetch-row.mjs.map +1 -1
- package/dist/actions/get-about-user.cjs +6 -6
- package/dist/actions/get-about-user.cjs.map +1 -1
- package/dist/actions/get-about-user.d.cts +8 -8
- package/dist/actions/get-about-user.d.mts +8 -8
- package/dist/actions/get-about-user.mjs +6 -6
- package/dist/actions/get-about-user.mjs.map +1 -1
- package/dist/actions/get-page-markdown.cjs +1 -1
- package/dist/actions/get-page-markdown.cjs.map +1 -1
- package/dist/actions/get-page-markdown.d.cts +1 -1
- package/dist/actions/get-page-markdown.d.mts +1 -1
- package/dist/actions/get-page-markdown.mjs +1 -1
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/insert-row-database.cjs +22 -22
- package/dist/actions/insert-row-database.cjs.map +1 -1
- package/dist/actions/insert-row-database.d.cts +40 -38
- package/dist/actions/insert-row-database.d.mts +40 -38
- package/dist/actions/insert-row-database.mjs +22 -22
- package/dist/actions/insert-row-database.mjs.map +1 -1
- package/dist/actions/insert-row-from-nl.cjs +1 -1
- package/dist/actions/insert-row-from-nl.cjs.map +1 -1
- package/dist/actions/insert-row-from-nl.d.cts +1 -1
- package/dist/actions/insert-row-from-nl.d.mts +1 -1
- package/dist/actions/insert-row-from-nl.mjs +1 -1
- package/dist/actions/insert-row-from-nl.mjs.map +1 -1
- package/dist/actions/list-data-source-templates.cjs +2 -2
- package/dist/actions/list-data-source-templates.cjs.map +1 -1
- package/dist/actions/list-data-source-templates.d.cts +2 -2
- package/dist/actions/list-data-source-templates.d.mts +2 -2
- package/dist/actions/list-data-source-templates.mjs +2 -2
- package/dist/actions/list-data-source-templates.mjs.map +1 -1
- package/dist/actions/list-file-uploads.cjs +2 -2
- package/dist/actions/list-file-uploads.cjs.map +1 -1
- package/dist/actions/list-file-uploads.d.cts +2 -2
- package/dist/actions/list-file-uploads.d.mts +2 -2
- package/dist/actions/list-file-uploads.mjs +2 -2
- package/dist/actions/list-file-uploads.mjs.map +1 -1
- package/dist/actions/list-users.cjs +8 -8
- package/dist/actions/list-users.cjs.map +1 -1
- package/dist/actions/list-users.d.cts +11 -11
- package/dist/actions/list-users.d.mts +11 -11
- package/dist/actions/list-users.mjs +8 -8
- package/dist/actions/list-users.mjs.map +1 -1
- package/dist/actions/move-page.cjs +18 -18
- package/dist/actions/move-page.cjs.map +1 -1
- package/dist/actions/move-page.d.cts +23 -21
- package/dist/actions/move-page.d.mts +23 -21
- package/dist/actions/move-page.mjs +18 -18
- package/dist/actions/move-page.mjs.map +1 -1
- package/dist/actions/query-data-source.cjs +18 -18
- package/dist/actions/query-data-source.cjs.map +1 -1
- package/dist/actions/query-data-source.d.cts +34 -32
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +34 -32
- package/dist/actions/query-data-source.d.mts.map +1 -1
- package/dist/actions/query-data-source.mjs +18 -18
- package/dist/actions/query-data-source.mjs.map +1 -1
- package/dist/actions/query-database-with-filter.cjs +25 -25
- package/dist/actions/query-database-with-filter.cjs.map +1 -1
- package/dist/actions/query-database-with-filter.d.cts +50 -48
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +50 -48
- package/dist/actions/query-database-with-filter.d.mts.map +1 -1
- package/dist/actions/query-database-with-filter.mjs +25 -25
- package/dist/actions/query-database-with-filter.mjs.map +1 -1
- package/dist/actions/query-database.cjs +24 -24
- package/dist/actions/query-database.cjs.map +1 -1
- package/dist/actions/query-database.d.cts +49 -48
- package/dist/actions/query-database.d.mts +49 -48
- package/dist/actions/query-database.mjs +24 -24
- package/dist/actions/query-database.mjs.map +1 -1
- package/dist/actions/replace-page-content.cjs +130 -130
- package/dist/actions/replace-page-content.cjs.map +1 -1
- package/dist/actions/replace-page-content.d.cts +261 -131
- package/dist/actions/replace-page-content.d.mts +261 -131
- package/dist/actions/replace-page-content.mjs +130 -130
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-database-property.cjs +25 -25
- package/dist/actions/retrieve-database-property.cjs.map +1 -1
- package/dist/actions/retrieve-database-property.d.cts +28 -28
- package/dist/actions/retrieve-database-property.d.mts +28 -28
- package/dist/actions/retrieve-database-property.mjs +25 -25
- package/dist/actions/retrieve-database-property.mjs.map +1 -1
- package/dist/actions/retrieve-file-upload.cjs +1 -1
- package/dist/actions/retrieve-file-upload.cjs.map +1 -1
- package/dist/actions/retrieve-file-upload.d.cts +1 -1
- package/dist/actions/retrieve-file-upload.d.mts +1 -1
- package/dist/actions/retrieve-file-upload.mjs +1 -1
- package/dist/actions/retrieve-file-upload.mjs.map +1 -1
- package/dist/actions/retrieve-page.cjs +23 -23
- package/dist/actions/retrieve-page.cjs.map +1 -1
- package/dist/actions/retrieve-page.d.cts +38 -38
- package/dist/actions/retrieve-page.d.mts +38 -38
- package/dist/actions/retrieve-page.mjs +23 -23
- package/dist/actions/retrieve-page.mjs.map +1 -1
- package/dist/actions/search-notion-page.cjs +34 -34
- package/dist/actions/search-notion-page.cjs.map +1 -1
- package/dist/actions/search-notion-page.d.cts +157 -157
- package/dist/actions/search-notion-page.d.mts +157 -157
- package/dist/actions/search-notion-page.mjs +34 -34
- package/dist/actions/search-notion-page.mjs.map +1 -1
- package/dist/actions/send-file-upload.cjs +1 -1
- package/dist/actions/send-file-upload.cjs.map +1 -1
- package/dist/actions/send-file-upload.d.cts +1 -1
- package/dist/actions/send-file-upload.d.mts +1 -1
- package/dist/actions/send-file-upload.mjs +1 -1
- package/dist/actions/send-file-upload.mjs.map +1 -1
- package/dist/actions/update-block.cjs +47 -47
- package/dist/actions/update-block.cjs.map +1 -1
- package/dist/actions/update-block.d.cts +141 -141
- package/dist/actions/update-block.d.mts +141 -141
- package/dist/actions/update-block.mjs +47 -47
- package/dist/actions/update-block.mjs.map +1 -1
- package/dist/actions/update-page.cjs +16 -16
- package/dist/actions/update-page.cjs.map +1 -1
- package/dist/actions/update-page.d.cts +23 -23
- package/dist/actions/update-page.d.mts +23 -23
- package/dist/actions/update-page.mjs +16 -16
- package/dist/actions/update-page.mjs.map +1 -1
- package/dist/actions/update-row-database.cjs +21 -21
- package/dist/actions/update-row-database.cjs.map +1 -1
- package/dist/actions/update-row-database.d.cts +29 -28
- package/dist/actions/update-row-database.d.mts +29 -28
- package/dist/actions/update-row-database.mjs +21 -21
- package/dist/actions/update-row-database.mjs.map +1 -1
- package/dist/actions/update-schema-database.cjs +8 -8
- package/dist/actions/update-schema-database.cjs.map +1 -1
- package/dist/actions/update-schema-database.d.cts +12 -11
- package/dist/actions/update-schema-database.d.mts +12 -11
- package/dist/actions/update-schema-database.mjs +8 -8
- package/dist/actions/update-schema-database.mjs.map +1 -1
- package/dist/actions/upsert-row-database.cjs +28 -28
- package/dist/actions/upsert-row-database.cjs.map +1 -1
- package/dist/actions/upsert-row-database.d.cts +54 -30
- package/dist/actions/upsert-row-database.d.mts +54 -30
- package/dist/actions/upsert-row-database.mjs +28 -28
- package/dist/actions/upsert-row-database.mjs.map +1 -1
- package/dist/execute.cjs +1 -1
- package/dist/execute.cjs.map +1 -1
- package/dist/execute.mjs +1 -1
- package/dist/execute.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -12,12 +12,12 @@ declare const NotionUpdateRowDatabaseInput: z.ZodObject<{
|
|
|
12
12
|
number: "number";
|
|
13
13
|
date: "date";
|
|
14
14
|
url: "url";
|
|
15
|
-
|
|
15
|
+
title: "title";
|
|
16
16
|
created_by: "created_by";
|
|
17
17
|
created_time: "created_time";
|
|
18
18
|
last_edited_by: "last_edited_by";
|
|
19
19
|
last_edited_time: "last_edited_time";
|
|
20
|
-
|
|
20
|
+
rich_text: "rich_text";
|
|
21
21
|
select: "select";
|
|
22
22
|
multi_select: "multi_select";
|
|
23
23
|
people: "people";
|
|
@@ -33,7 +33,7 @@ declare const NotionUpdateRowDatabaseInput: z.ZodObject<{
|
|
|
33
33
|
unique_id: "unique_id";
|
|
34
34
|
}>;
|
|
35
35
|
value: z.ZodString;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
declare const NotionUpdateRowDatabaseOutput: z.ZodObject<{
|
|
39
39
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -41,89 +41,90 @@ declare const NotionUpdateRowDatabaseOutput: z.ZodObject<{
|
|
|
41
41
|
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
42
42
|
type: z.ZodNullable<z.ZodString>;
|
|
43
43
|
emoji: z.ZodNullable<z.ZodString>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
45
45
|
type: z.ZodNullable<z.ZodString>;
|
|
46
46
|
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
47
47
|
id: z.ZodNullable<z.ZodString>;
|
|
48
48
|
url: z.ZodNullable<z.ZodString>;
|
|
49
49
|
name: z.ZodNullable<z.ZodString>;
|
|
50
|
-
}, z.core.$
|
|
51
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
52
52
|
file: z.ZodNullable<z.ZodObject<{
|
|
53
53
|
url: z.ZodNullable<z.ZodString>;
|
|
54
54
|
expiry_time: z.ZodNullable<z.ZodString>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
56
|
type: z.ZodNullable<z.ZodString>;
|
|
57
|
-
}, z.core.$
|
|
57
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
58
58
|
type: z.ZodNullable<z.ZodString>;
|
|
59
59
|
file_upload: z.ZodNullable<z.ZodObject<{
|
|
60
60
|
id: z.ZodNullable<z.ZodString>;
|
|
61
|
-
}, z.core.$
|
|
62
|
-
}, z.core.$
|
|
61
|
+
}, z.core.$loose>>;
|
|
62
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
63
63
|
type: z.ZodNullable<z.ZodString>;
|
|
64
64
|
external: z.ZodNullable<z.ZodObject<{
|
|
65
65
|
url: z.ZodNullable<z.ZodString>;
|
|
66
|
-
}, z.core.$
|
|
67
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$loose>>;
|
|
67
|
+
}, z.core.$loose>]>>>;
|
|
68
68
|
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
69
69
|
file: z.ZodNullable<z.ZodObject<{
|
|
70
70
|
url: z.ZodNullable<z.ZodString>;
|
|
71
71
|
expiry_time: z.ZodNullable<z.ZodString>;
|
|
72
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
73
|
type: z.ZodNullable<z.ZodString>;
|
|
74
|
-
}, z.core.$
|
|
74
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
75
75
|
type: z.ZodNullable<z.ZodString>;
|
|
76
76
|
file_upload: z.ZodNullable<z.ZodObject<{
|
|
77
77
|
id: z.ZodNullable<z.ZodString>;
|
|
78
|
-
}, z.core.$
|
|
79
|
-
}, z.core.$
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
80
80
|
type: z.ZodNullable<z.ZodString>;
|
|
81
81
|
external: z.ZodNullable<z.ZodObject<{
|
|
82
82
|
url: z.ZodNullable<z.ZodString>;
|
|
83
|
-
}, z.core.$
|
|
84
|
-
}, z.core.$
|
|
83
|
+
}, z.core.$loose>>;
|
|
84
|
+
}, z.core.$loose>]>>>;
|
|
85
85
|
object: z.ZodNullable<z.ZodString>;
|
|
86
86
|
parent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
87
87
|
type: z.ZodNullable<z.ZodString>;
|
|
88
88
|
database_id: z.ZodNullable<z.ZodString>;
|
|
89
|
-
}, z.core.$
|
|
89
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
90
90
|
type: z.ZodNullable<z.ZodString>;
|
|
91
91
|
database_id: z.ZodNullable<z.ZodString>;
|
|
92
92
|
data_source_id: z.ZodNullable<z.ZodString>;
|
|
93
|
-
}, z.core.$
|
|
93
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
94
94
|
type: z.ZodNullable<z.ZodString>;
|
|
95
95
|
page_id: z.ZodNullable<z.ZodString>;
|
|
96
|
-
}, z.core.$
|
|
96
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
97
97
|
type: z.ZodNullable<z.ZodString>;
|
|
98
98
|
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
99
|
-
}, z.core.$
|
|
99
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
100
100
|
type: z.ZodNullable<z.ZodString>;
|
|
101
101
|
block_id: z.ZodNullable<z.ZodString>;
|
|
102
|
-
}, z.core.$
|
|
102
|
+
}, z.core.$loose>]>>>;
|
|
103
103
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
104
104
|
in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
105
105
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
106
|
id: z.ZodNullable<z.ZodString>;
|
|
107
107
|
object: z.ZodNullable<z.ZodString>;
|
|
108
|
-
}, z.core.$
|
|
109
|
-
properties: z.ZodOptional<z.ZodNullable<z.
|
|
108
|
+
}, z.core.$loose>>>;
|
|
109
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
110
110
|
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
111
|
created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
112
|
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
113
113
|
id: z.ZodNullable<z.ZodString>;
|
|
114
114
|
object: z.ZodNullable<z.ZodString>;
|
|
115
|
-
}, z.core.$
|
|
115
|
+
}, z.core.$loose>>>;
|
|
116
116
|
last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
117
|
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
}, z.core.$
|
|
118
|
+
}, z.core.$loose>;
|
|
119
119
|
declare const notionUpdateRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
120
120
|
row_id: string;
|
|
121
121
|
icon?: string | undefined;
|
|
122
122
|
cover?: string | undefined;
|
|
123
123
|
delete_row?: boolean | undefined;
|
|
124
124
|
properties?: {
|
|
125
|
+
[x: string]: unknown;
|
|
125
126
|
name: string;
|
|
126
|
-
type: "number" | "date" | "url" | "
|
|
127
|
+
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";
|
|
127
128
|
value: string;
|
|
128
129
|
}[] | undefined;
|
|
129
130
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -12,12 +12,12 @@ declare const NotionUpdateRowDatabaseInput: z.ZodObject<{
|
|
|
12
12
|
number: "number";
|
|
13
13
|
date: "date";
|
|
14
14
|
url: "url";
|
|
15
|
-
|
|
15
|
+
title: "title";
|
|
16
16
|
created_by: "created_by";
|
|
17
17
|
created_time: "created_time";
|
|
18
18
|
last_edited_by: "last_edited_by";
|
|
19
19
|
last_edited_time: "last_edited_time";
|
|
20
|
-
|
|
20
|
+
rich_text: "rich_text";
|
|
21
21
|
select: "select";
|
|
22
22
|
multi_select: "multi_select";
|
|
23
23
|
people: "people";
|
|
@@ -33,7 +33,7 @@ declare const NotionUpdateRowDatabaseInput: z.ZodObject<{
|
|
|
33
33
|
unique_id: "unique_id";
|
|
34
34
|
}>;
|
|
35
35
|
value: z.ZodString;
|
|
36
|
-
}, z.core.$
|
|
36
|
+
}, z.core.$loose>>>>;
|
|
37
37
|
}, z.core.$strip>;
|
|
38
38
|
declare const NotionUpdateRowDatabaseOutput: z.ZodObject<{
|
|
39
39
|
id: z.ZodNullable<z.ZodString>;
|
|
@@ -41,89 +41,90 @@ declare const NotionUpdateRowDatabaseOutput: z.ZodObject<{
|
|
|
41
41
|
icon: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
42
42
|
type: z.ZodNullable<z.ZodString>;
|
|
43
43
|
emoji: z.ZodNullable<z.ZodString>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
45
45
|
type: z.ZodNullable<z.ZodString>;
|
|
46
46
|
custom_emoji: z.ZodNullable<z.ZodObject<{
|
|
47
47
|
id: z.ZodNullable<z.ZodString>;
|
|
48
48
|
url: z.ZodNullable<z.ZodString>;
|
|
49
49
|
name: z.ZodNullable<z.ZodString>;
|
|
50
|
-
}, z.core.$
|
|
51
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>>;
|
|
51
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
52
52
|
file: z.ZodNullable<z.ZodObject<{
|
|
53
53
|
url: z.ZodNullable<z.ZodString>;
|
|
54
54
|
expiry_time: z.ZodNullable<z.ZodString>;
|
|
55
|
-
}, z.core.$
|
|
55
|
+
}, z.core.$loose>>;
|
|
56
56
|
type: z.ZodNullable<z.ZodString>;
|
|
57
|
-
}, z.core.$
|
|
57
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
58
58
|
type: z.ZodNullable<z.ZodString>;
|
|
59
59
|
file_upload: z.ZodNullable<z.ZodObject<{
|
|
60
60
|
id: z.ZodNullable<z.ZodString>;
|
|
61
|
-
}, z.core.$
|
|
62
|
-
}, z.core.$
|
|
61
|
+
}, z.core.$loose>>;
|
|
62
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
63
63
|
type: z.ZodNullable<z.ZodString>;
|
|
64
64
|
external: z.ZodNullable<z.ZodObject<{
|
|
65
65
|
url: z.ZodNullable<z.ZodString>;
|
|
66
|
-
}, z.core.$
|
|
67
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$loose>>;
|
|
67
|
+
}, z.core.$loose>]>>>;
|
|
68
68
|
cover: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
69
69
|
file: z.ZodNullable<z.ZodObject<{
|
|
70
70
|
url: z.ZodNullable<z.ZodString>;
|
|
71
71
|
expiry_time: z.ZodNullable<z.ZodString>;
|
|
72
|
-
}, z.core.$
|
|
72
|
+
}, z.core.$loose>>;
|
|
73
73
|
type: z.ZodNullable<z.ZodString>;
|
|
74
|
-
}, z.core.$
|
|
74
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
75
75
|
type: z.ZodNullable<z.ZodString>;
|
|
76
76
|
file_upload: z.ZodNullable<z.ZodObject<{
|
|
77
77
|
id: z.ZodNullable<z.ZodString>;
|
|
78
|
-
}, z.core.$
|
|
79
|
-
}, z.core.$
|
|
78
|
+
}, z.core.$loose>>;
|
|
79
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
80
80
|
type: z.ZodNullable<z.ZodString>;
|
|
81
81
|
external: z.ZodNullable<z.ZodObject<{
|
|
82
82
|
url: z.ZodNullable<z.ZodString>;
|
|
83
|
-
}, z.core.$
|
|
84
|
-
}, z.core.$
|
|
83
|
+
}, z.core.$loose>>;
|
|
84
|
+
}, z.core.$loose>]>>>;
|
|
85
85
|
object: z.ZodNullable<z.ZodString>;
|
|
86
86
|
parent: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
|
|
87
87
|
type: z.ZodNullable<z.ZodString>;
|
|
88
88
|
database_id: z.ZodNullable<z.ZodString>;
|
|
89
|
-
}, z.core.$
|
|
89
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
90
90
|
type: z.ZodNullable<z.ZodString>;
|
|
91
91
|
database_id: z.ZodNullable<z.ZodString>;
|
|
92
92
|
data_source_id: z.ZodNullable<z.ZodString>;
|
|
93
|
-
}, z.core.$
|
|
93
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
94
94
|
type: z.ZodNullable<z.ZodString>;
|
|
95
95
|
page_id: z.ZodNullable<z.ZodString>;
|
|
96
|
-
}, z.core.$
|
|
96
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
97
97
|
type: z.ZodNullable<z.ZodString>;
|
|
98
98
|
workspace: z.ZodNullable<z.ZodBoolean>;
|
|
99
|
-
}, z.core.$
|
|
99
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
100
100
|
type: z.ZodNullable<z.ZodString>;
|
|
101
101
|
block_id: z.ZodNullable<z.ZodString>;
|
|
102
|
-
}, z.core.$
|
|
102
|
+
}, z.core.$loose>]>>>;
|
|
103
103
|
archived: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
104
104
|
in_trash: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
105
105
|
created_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
106
106
|
id: z.ZodNullable<z.ZodString>;
|
|
107
107
|
object: z.ZodNullable<z.ZodString>;
|
|
108
|
-
}, z.core.$
|
|
109
|
-
properties: z.ZodOptional<z.ZodNullable<z.
|
|
108
|
+
}, z.core.$loose>>>;
|
|
109
|
+
properties: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
110
110
|
public_url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
111
111
|
created_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
112
112
|
last_edited_by: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
113
113
|
id: z.ZodNullable<z.ZodString>;
|
|
114
114
|
object: z.ZodNullable<z.ZodString>;
|
|
115
|
-
}, z.core.$
|
|
115
|
+
}, z.core.$loose>>>;
|
|
116
116
|
last_edited_time: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
117
|
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
}, z.core.$
|
|
118
|
+
}, z.core.$loose>;
|
|
119
119
|
declare const notionUpdateRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
120
120
|
row_id: string;
|
|
121
121
|
icon?: string | undefined;
|
|
122
122
|
cover?: string | undefined;
|
|
123
123
|
delete_row?: boolean | undefined;
|
|
124
124
|
properties?: {
|
|
125
|
+
[x: string]: unknown;
|
|
125
126
|
name: string;
|
|
126
|
-
type: "number" | "date" | "url" | "
|
|
127
|
+
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";
|
|
127
128
|
value: string;
|
|
128
129
|
}[] | undefined;
|
|
129
130
|
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
@@ -33,76 +33,76 @@ const NotionUpdateRowDatabaseInput = z.object({
|
|
|
33
33
|
"unique_id"
|
|
34
34
|
]).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."),
|
|
35
35
|
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\"")
|
|
36
|
-
})).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()
|
|
36
|
+
}).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()
|
|
37
37
|
});
|
|
38
38
|
const NotionUpdateRowDatabase_EmojiIconSchema = z.object({
|
|
39
39
|
type: z.string().describe("Always \"emoji\".").nullable(),
|
|
40
40
|
emoji: z.string().describe("The emoji character (e.g., '😻').").nullable()
|
|
41
|
-
}).describe("Standard emoji icon.");
|
|
41
|
+
}).passthrough().describe("Standard emoji icon.");
|
|
42
42
|
const NotionUpdateRowDatabase_CustomEmojiObjectSchema = z.object({
|
|
43
43
|
id: z.string().describe("Unique identifier for the custom emoji.").nullable(),
|
|
44
44
|
url: z.string().describe("HTTPS URL to the emoji image.").nullable(),
|
|
45
45
|
name: z.string().describe("Display name of the custom emoji.").nullable()
|
|
46
|
-
}).describe("Custom emoji object with identifier, name, and URL.");
|
|
46
|
+
}).passthrough().describe("Custom emoji object with identifier, name, and URL.");
|
|
47
47
|
const NotionUpdateRowDatabase_CustomEmojiIconSchema = z.object({
|
|
48
48
|
type: z.string().describe("Always \"custom_emoji\".").nullable(),
|
|
49
49
|
custom_emoji: NotionUpdateRowDatabase_CustomEmojiObjectSchema.nullable()
|
|
50
|
-
}).describe("Custom emoji icon.");
|
|
50
|
+
}).passthrough().describe("Custom emoji icon.");
|
|
51
51
|
const NotionUpdateRowDatabase_NotionHostedFileSchema = z.object({
|
|
52
52
|
url: z.string().describe("Authenticated URL to the file, valid for one hour.").nullable(),
|
|
53
53
|
expiry_time: z.string().describe("ISO 8601 timestamp when the URL expires.").nullable()
|
|
54
|
-
}).describe("Notion-hosted file with authenticated URL.");
|
|
54
|
+
}).passthrough().describe("Notion-hosted file with authenticated URL.");
|
|
55
55
|
const NotionUpdateRowDatabase_FileIconWithHostedSchema = z.object({
|
|
56
56
|
file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),
|
|
57
57
|
type: z.string().describe("Type of file.").nullable()
|
|
58
|
-
}).describe("File icon with Notion-hosted file.");
|
|
59
|
-
const NotionUpdateRowDatabase_FileUploadObjectSchema = z.object({ id: z.string().describe("UUID of the uploaded file object.").nullable() }).describe("File uploaded via API.");
|
|
58
|
+
}).passthrough().describe("File icon with Notion-hosted file.");
|
|
59
|
+
const NotionUpdateRowDatabase_FileUploadObjectSchema = z.object({ id: z.string().describe("UUID of the uploaded file object.").nullable() }).passthrough().describe("File uploaded via API.");
|
|
60
60
|
const NotionUpdateRowDatabase_FileIconWithUploadSchema = z.object({
|
|
61
61
|
type: z.string().describe("Type of file.").nullable(),
|
|
62
62
|
file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable()
|
|
63
|
-
}).describe("File icon with uploaded file.");
|
|
64
|
-
const NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({ url: z.string().describe("Link to the externally hosted content.").nullable() }).describe("External file reference.");
|
|
63
|
+
}).passthrough().describe("File icon with uploaded file.");
|
|
64
|
+
const NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({ url: z.string().describe("Link to the externally hosted content.").nullable() }).passthrough().describe("External file reference.");
|
|
65
65
|
const NotionUpdateRowDatabase_FileIconWithExternalSchema = z.object({
|
|
66
66
|
type: z.string().describe("Type of file.").nullable(),
|
|
67
67
|
external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable()
|
|
68
|
-
}).describe("File icon with external URL.");
|
|
68
|
+
}).passthrough().describe("File icon with external URL.");
|
|
69
69
|
const NotionUpdateRowDatabase_CoverWithHostedSchema = z.object({
|
|
70
70
|
file: NotionUpdateRowDatabase_NotionHostedFileSchema.nullable(),
|
|
71
71
|
type: z.string().describe("Type of file.").nullable()
|
|
72
|
-
}).describe("Cover with Notion-hosted file.");
|
|
72
|
+
}).passthrough().describe("Cover with Notion-hosted file.");
|
|
73
73
|
const NotionUpdateRowDatabase_CoverWithUploadSchema = z.object({
|
|
74
74
|
type: z.string().describe("Type of file.").nullable(),
|
|
75
75
|
file_upload: NotionUpdateRowDatabase_FileUploadObjectSchema.nullable()
|
|
76
|
-
}).describe("Cover with uploaded file.");
|
|
76
|
+
}).passthrough().describe("Cover with uploaded file.");
|
|
77
77
|
const NotionUpdateRowDatabase_CoverWithExternalSchema = z.object({
|
|
78
78
|
type: z.string().describe("Type of file.").nullable(),
|
|
79
79
|
external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable()
|
|
80
|
-
}).describe("Cover with external URL.");
|
|
80
|
+
}).passthrough().describe("Cover with external URL.");
|
|
81
81
|
const NotionUpdateRowDatabase_DatabaseParentSchema = z.object({
|
|
82
82
|
type: z.string().describe("Always \"database_id\".").nullable(),
|
|
83
83
|
database_id: z.string().describe("The database identifier in UUIDv4 format.").nullable()
|
|
84
|
-
}).describe("Parent is a database.");
|
|
84
|
+
}).passthrough().describe("Parent is a database.");
|
|
85
85
|
const NotionUpdateRowDatabase_DataSourceParentSchema = z.object({
|
|
86
86
|
type: z.string().describe("Always \"data_source_id\".").nullable(),
|
|
87
87
|
database_id: z.string().describe("The parent database identifier in UUIDv4 format.").nullable(),
|
|
88
88
|
data_source_id: z.string().describe("The data source identifier in UUIDv4 format.").nullable()
|
|
89
|
-
}).describe("Parent is a data source.");
|
|
89
|
+
}).passthrough().describe("Parent is a data source.");
|
|
90
90
|
const NotionUpdateRowDatabase_PageParentSchema = z.object({
|
|
91
91
|
type: z.string().describe("Always \"page_id\".").nullable(),
|
|
92
92
|
page_id: z.string().describe("The page identifier in UUIDv4 format.").nullable()
|
|
93
|
-
}).describe("Parent is a page.");
|
|
93
|
+
}).passthrough().describe("Parent is a page.");
|
|
94
94
|
const NotionUpdateRowDatabase_WorkspaceParentSchema = z.object({
|
|
95
95
|
type: z.string().describe("Always \"workspace\".").nullable(),
|
|
96
96
|
workspace: z.boolean().describe("Always true.").nullable()
|
|
97
|
-
}).describe("Parent is the workspace.");
|
|
97
|
+
}).passthrough().describe("Parent is the workspace.");
|
|
98
98
|
const NotionUpdateRowDatabase_BlockParentSchema = z.object({
|
|
99
99
|
type: z.string().describe("Always \"block_id\".").nullable(),
|
|
100
100
|
block_id: z.string().describe("The block identifier in UUIDv4 format.").nullable()
|
|
101
|
-
}).describe("Parent is a block.");
|
|
101
|
+
}).passthrough().describe("Parent is a block.");
|
|
102
102
|
const NotionUpdateRowDatabase_PartialUserSchema = z.object({
|
|
103
103
|
id: z.string().describe("Unique identifier for the user in UUID format.").nullable(),
|
|
104
104
|
object: z.string().describe("Always \"user\".").nullable()
|
|
105
|
-
}).describe("Partial user object representing a Notion user.");
|
|
105
|
+
}).passthrough().describe("Partial user object representing a Notion user.");
|
|
106
106
|
const notionUpdateRowDatabase = action("NOTION_UPDATE_ROW_DATABASE", {
|
|
107
107
|
slug: "notion-update-row-database",
|
|
108
108
|
name: "Update Database Row (Page)",
|
|
@@ -134,13 +134,13 @@ const notionUpdateRowDatabase = action("NOTION_UPDATE_ROW_DATABASE", {
|
|
|
134
134
|
archived: z.boolean().describe("Whether the page is archived (deleted).").nullable().optional(),
|
|
135
135
|
in_trash: z.boolean().describe("Whether the page is in the trash.").nullable().optional(),
|
|
136
136
|
created_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),
|
|
137
|
-
properties: z.
|
|
137
|
+
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(),
|
|
138
138
|
public_url: z.string().describe("The public URL of the page if it has been published to the web, otherwise null.").nullable().optional(),
|
|
139
139
|
created_time: z.string().describe("Date and time when this page was created, in ISO 8601 format.").nullable().optional(),
|
|
140
140
|
last_edited_by: NotionUpdateRowDatabase_PartialUserSchema.nullable().optional(),
|
|
141
141
|
last_edited_time: z.string().describe("Date and time when this page was last updated, in ISO 8601 format.").nullable().optional(),
|
|
142
142
|
composio_execution_message: z.string().describe("Message from the execution layer explaining any special handling performed.").nullable().optional()
|
|
143
|
-
}).describe("Response object returned when updating a page (database row) in Notion. Returns the complete updated page object.")
|
|
143
|
+
}).passthrough().describe("Response object returned when updating a page (database row) in Notion. Returns the complete updated page object.")
|
|
144
144
|
});
|
|
145
145
|
//#endregion
|
|
146
146
|
export { notionUpdateRowDatabase };
|
|
@@ -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})).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}).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}).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}).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}).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}).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}).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}).describe(\"File icon with uploaded file.\");\nconst NotionUpdateRowDatabase_ExternalFileObjectSchema = z.object({\n url: z.string().describe(\"Link to the externally hosted content.\").nullable(),\n}).describe(\"External file reference.\");\nconst NotionUpdateRowDatabase_FileIconWithExternalSchema = z.object({\n type: z.string().describe(\"Type of file.\").nullable(),\n external: NotionUpdateRowDatabase_ExternalFileObjectSchema.nullable(),\n}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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.object({}).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}).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,EAAE,OAAO,CAAC,CAAC,SAAS,4JAA4J,CAAC,CAAC,SAAS;CAClM,QAAQ,EAAE,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1E,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrO,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,SAAS,mHAOF;AACV,CAAC"}
|
|
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,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;GA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AAC,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"}
|
|
@@ -33,7 +33,7 @@ const NotionUpdateSchemaDatabaseInput = zod.z.object({
|
|
|
33
33
|
]).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(),
|
|
34
34
|
database_id: zod.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(),
|
|
35
35
|
relation_type: zod.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()
|
|
36
|
-
})).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(),
|
|
36
|
+
}).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(),
|
|
37
37
|
database_id: zod.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."),
|
|
38
38
|
description: zod.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()
|
|
39
39
|
});
|
|
@@ -137,27 +137,27 @@ const NotionUpdateSchemaDatabase_RichTextObjectSchema = zod.z.object({
|
|
|
137
137
|
const NotionUpdateSchemaDatabase_ParentWorkspaceSchema = zod.z.object({
|
|
138
138
|
type: zod.z.string().describe("Type of parent: 'workspace'.").nullable(),
|
|
139
139
|
workspace: zod.z.boolean().describe("Always true when type is 'workspace', indicating a top-level database.").nullable()
|
|
140
|
-
});
|
|
140
|
+
}).passthrough();
|
|
141
141
|
const NotionUpdateSchemaDatabase_ParentPageSchema = zod.z.object({
|
|
142
142
|
type: zod.z.string().describe("Type of parent: 'page_id'.").nullable(),
|
|
143
143
|
page_id: zod.z.string().describe("UUID of the parent page (when type is 'page_id').").nullable()
|
|
144
|
-
});
|
|
144
|
+
}).passthrough();
|
|
145
145
|
const NotionUpdateSchemaDatabase_ParentBlockSchema = zod.z.object({
|
|
146
146
|
type: zod.z.string().describe("Type of parent: 'block_id'.").nullable(),
|
|
147
147
|
block_id: zod.z.string().describe("UUID of the parent block (when type is 'block_id').").nullable()
|
|
148
|
-
});
|
|
148
|
+
}).passthrough();
|
|
149
149
|
const NotionUpdateSchemaDatabase_ParentDatabaseSchema = zod.z.object({
|
|
150
150
|
type: zod.z.string().describe("Type of parent: 'database_id'.").nullable(),
|
|
151
151
|
database_id: zod.z.string().describe("UUID of the parent database (when type is 'database_id').").nullable()
|
|
152
|
-
});
|
|
152
|
+
}).passthrough();
|
|
153
153
|
const NotionUpdateSchemaDatabase_ParentDataSourceSchema = zod.z.object({
|
|
154
154
|
type: zod.z.string().describe("Type of parent: 'data_source_id'.").nullable(),
|
|
155
155
|
data_source_id: zod.z.string().describe("UUID of the parent data source (when type is 'data_source_id').").nullable()
|
|
156
|
-
});
|
|
156
|
+
}).passthrough();
|
|
157
157
|
const NotionUpdateSchemaDatabase_DataSourceSummarySchema = zod.z.object({
|
|
158
158
|
id: zod.z.string().nullable(),
|
|
159
159
|
name: zod.z.string().nullable()
|
|
160
|
-
});
|
|
160
|
+
}).passthrough();
|
|
161
161
|
const NotionUpdateSchemaDatabaseOutput = zod.z.object({
|
|
162
162
|
id: zod.z.string().describe("Unique identifier for the database (UUID format).").nullable(),
|
|
163
163
|
url: zod.z.string().describe("The URL of the database in Notion.").nullable(),
|
|
@@ -176,7 +176,7 @@ const NotionUpdateSchemaDatabaseOutput = zod.z.object({
|
|
|
176
176
|
in_trash: zod.z.boolean().describe("Whether the database is in trash.").nullable().optional(),
|
|
177
177
|
is_inline: zod.z.boolean().describe("Whether the database appears as an inline block (true) or as a child page (false).").nullable(),
|
|
178
178
|
created_by: NotionUpdateSchemaDatabase_PartialUserSchema.nullable(),
|
|
179
|
-
properties: zod.z.
|
|
179
|
+
properties: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Database schema properties representing columns, where each key is a property name or ID mapping to a property object.").nullable().optional(),
|
|
180
180
|
public_url: zod.z.string().describe("The public URL of the database if it has been shared publicly, null otherwise.").nullable().optional(),
|
|
181
181
|
request_id: zod.z.string().nullable().optional(),
|
|
182
182
|
description: zod.z.array(NotionUpdateSchemaDatabase_RichTextObjectSchema).describe("Database description as an array of rich text objects.").nullable().optional(),
|