@keystrokehq/notion 0.1.2 → 0.1.4
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 +30 -16
- package/dist/actions/add-multiple-page-content.d.cts.map +1 -1
- package/dist/actions/add-multiple-page-content.d.mts +30 -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 +178 -148
- package/dist/actions/append-code-blocks.d.mts +178 -148
- 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 +162 -140
- package/dist/actions/append-layout-blocks.d.mts +162 -140
- 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 +228 -173
- package/dist/actions/append-media-blocks.d.mts +228 -173
- 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 +154 -136
- package/dist/actions/append-table-blocks.d.mts +154 -136
- 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 +180 -149
- package/dist/actions/append-task-blocks.d.mts +180 -149
- 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 +214 -166
- package/dist/actions/append-text-blocks.d.mts +214 -166
- 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 +33 -21
- package/dist/actions/archive-notion-page.d.mts +33 -21
- 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 +21 -9
- package/dist/actions/create-comment.d.mts +21 -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 +39 -26
- package/dist/actions/create-database.d.mts +39 -26
- 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 +14 -2
- package/dist/actions/create-file-upload.d.mts +14 -2
- 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 +31 -19
- package/dist/actions/create-notion-page.d.mts +31 -19
- 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 +345 -333
- package/dist/actions/delete-block.d.mts +345 -333
- 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 +37 -25
- package/dist/actions/duplicate-page.d.mts +37 -25
- 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 +17 -5
- package/dist/actions/fetch-all-block-contents.d.mts +17 -5
- 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 +185 -173
- package/dist/actions/fetch-block-contents.d.mts +185 -173
- 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 +304 -292
- package/dist/actions/fetch-block-metadata.d.mts +304 -292
- 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 +42 -30
- package/dist/actions/fetch-comments.d.mts +42 -30
- 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 +122 -110
- package/dist/actions/fetch-data.d.mts +122 -110
- 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 +31 -19
- package/dist/actions/fetch-database.d.mts +31 -19
- 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 +51 -39
- package/dist/actions/fetch-row.d.mts +51 -39
- 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 +20 -8
- package/dist/actions/get-about-user.d.mts +20 -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 +14 -2
- package/dist/actions/get-page-markdown.d.mts +14 -2
- package/dist/actions/get-page-markdown.mjs +1 -1
- package/dist/actions/get-page-markdown.mjs.map +1 -1
- package/dist/actions/get-page-property-action.d.cts +13 -1
- package/dist/actions/get-page-property-action.d.mts +13 -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 +52 -38
- package/dist/actions/insert-row-database.d.mts +52 -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 +14 -2
- package/dist/actions/insert-row-from-nl.d.mts +14 -2
- 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 +15 -3
- package/dist/actions/list-data-source-templates.d.mts +15 -3
- 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 +15 -3
- package/dist/actions/list-file-uploads.d.mts +15 -3
- 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 +22 -10
- package/dist/actions/list-users.d.mts +22 -10
- 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 +36 -22
- package/dist/actions/move-page.d.mts +36 -22
- 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 +42 -28
- package/dist/actions/query-data-source.d.cts.map +1 -1
- package/dist/actions/query-data-source.d.mts +42 -28
- 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 +63 -49
- package/dist/actions/query-database-with-filter.d.cts.map +1 -1
- package/dist/actions/query-database-with-filter.d.mts +63 -49
- 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 +62 -49
- package/dist/actions/query-database.d.mts +62 -49
- 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 +274 -132
- package/dist/actions/replace-page-content.d.mts +274 -132
- package/dist/actions/replace-page-content.mjs +130 -130
- package/dist/actions/replace-page-content.mjs.map +1 -1
- package/dist/actions/retrieve-comment.d.cts +13 -1
- package/dist/actions/retrieve-comment.d.mts +13 -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 +41 -29
- package/dist/actions/retrieve-database-property.d.mts +41 -29
- 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 +14 -2
- package/dist/actions/retrieve-file-upload.d.mts +14 -2
- 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 +49 -37
- package/dist/actions/retrieve-page.d.mts +49 -37
- 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 +152 -140
- package/dist/actions/search-notion-page.d.mts +152 -140
- 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 +14 -2
- package/dist/actions/send-file-upload.d.mts +14 -2
- 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 +154 -142
- package/dist/actions/update-block.d.cts.map +1 -1
- package/dist/actions/update-block.d.mts +154 -142
- package/dist/actions/update-block.d.mts.map +1 -1
- 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 +36 -24
- package/dist/actions/update-page.d.mts +36 -24
- 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 +42 -29
- package/dist/actions/update-row-database.d.mts +42 -29
- 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 +25 -12
- package/dist/actions/update-schema-database.d.mts +25 -12
- 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 +67 -31
- package/dist/actions/upsert-row-database.d.mts +67 -31
- package/dist/actions/upsert-row-database.mjs +28 -28
- 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 +9 -1
- package/dist/app.d.cts.map +1 -1
- package/dist/app.d.mts +9 -1
- package/dist/app.d.mts.map +1 -1
- package/dist/app.mjs +3 -1
- package/dist/app.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
|
@@ -6,94 +6,94 @@ declare const NotionUpsertRowDatabaseInput: z.ZodObject<{
|
|
|
6
6
|
match: z.ZodUnion<readonly [z.ZodObject<{
|
|
7
7
|
equals: z.ZodString;
|
|
8
8
|
property: z.ZodString;
|
|
9
|
-
}, z.core.$
|
|
9
|
+
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
|
|
10
10
|
create: z.ZodObject<{
|
|
11
11
|
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
12
12
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
13
13
|
emoji: z.ZodString;
|
|
14
|
-
}, z.core.$
|
|
14
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
15
15
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
16
16
|
external: z.ZodObject<{
|
|
17
17
|
url: z.ZodString;
|
|
18
|
-
}, z.core.$
|
|
19
|
-
}, z.core.$
|
|
18
|
+
}, z.core.$loose>;
|
|
19
|
+
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
20
20
|
cover: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
21
21
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
22
22
|
external: z.ZodObject<{
|
|
23
23
|
url: z.ZodString;
|
|
24
|
-
}, z.core.$
|
|
25
|
-
}, z.core.$
|
|
24
|
+
}, z.core.$loose>;
|
|
25
|
+
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
26
26
|
children: z.ZodOptional<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
27
27
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
28
28
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
29
29
|
paragraph: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
31
31
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
32
32
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
33
33
|
heading_1: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
35
35
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
36
36
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
37
37
|
heading_2: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
38
|
-
}, z.core.$
|
|
38
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
39
39
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
40
40
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
41
41
|
heading_3: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
42
|
-
}, z.core.$
|
|
42
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
43
43
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
44
44
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
45
45
|
bulleted_list_item: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
46
|
-
}, z.core.$
|
|
46
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
47
47
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
48
48
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
49
49
|
numbered_list_item: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
50
|
-
}, z.core.$
|
|
50
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
51
51
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
52
52
|
to_do: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
53
53
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
54
|
-
}, z.core.$
|
|
54
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
55
55
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
56
56
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
57
57
|
toggle: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
58
|
-
}, z.core.$
|
|
58
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
59
59
|
code: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
60
60
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
61
61
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
62
|
-
}, z.core.$
|
|
62
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
63
63
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
64
64
|
quote: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
65
65
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
66
|
-
}, z.core.$
|
|
66
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
67
67
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
68
68
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
69
69
|
callout: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
70
|
-
}, z.core.$
|
|
70
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
71
71
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
72
72
|
object: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
73
73
|
divider: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
74
|
-
}, z.core.$
|
|
75
|
-
properties: z.
|
|
74
|
+
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>>;
|
|
75
|
+
properties: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
76
76
|
}, z.core.$strip>;
|
|
77
77
|
update: z.ZodObject<{
|
|
78
78
|
icon: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
79
79
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
80
80
|
emoji: z.ZodString;
|
|
81
|
-
}, z.core.$
|
|
81
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
82
82
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
83
83
|
external: z.ZodObject<{
|
|
84
84
|
url: z.ZodString;
|
|
85
|
-
}, z.core.$
|
|
86
|
-
}, z.core.$
|
|
85
|
+
}, z.core.$loose>;
|
|
86
|
+
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
87
87
|
cover: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
88
88
|
type: z.ZodOptional<z.ZodDefault<z.ZodString>>;
|
|
89
89
|
external: z.ZodObject<{
|
|
90
90
|
url: z.ZodString;
|
|
91
|
-
}, z.core.$
|
|
92
|
-
}, z.core.$
|
|
91
|
+
}, z.core.$loose>;
|
|
92
|
+
}, z.core.$loose>, z.ZodRecord<z.ZodString, z.ZodUnknown>]>>;
|
|
93
93
|
archived: z.ZodOptional<z.ZodBoolean>;
|
|
94
|
-
properties: z.ZodOptional<z.
|
|
94
|
+
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
95
|
}, z.core.$strip>;
|
|
96
|
-
}, z.core.$
|
|
96
|
+
}, z.core.$loose>>;
|
|
97
97
|
options: z.ZodOptional<z.ZodObject<{
|
|
98
98
|
continue_on_error: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
99
99
|
if_multiple_matches: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
@@ -115,78 +115,97 @@ declare const NotionUpsertRowDatabaseOutput: z.ZodObject<{
|
|
|
115
115
|
page_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
116
116
|
error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
117
117
|
error_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
-
}, z.core.$
|
|
118
|
+
}, z.core.$loose>>;
|
|
119
119
|
error_count: z.ZodNullable<z.ZodNumber>;
|
|
120
120
|
success_count: z.ZodNullable<z.ZodNumber>;
|
|
121
|
-
}, z.core.$
|
|
121
|
+
}, z.core.$loose>;
|
|
122
122
|
declare const notionUpsertRowDatabase: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
123
123
|
items: {
|
|
124
|
+
[x: string]: unknown;
|
|
124
125
|
match: Record<string, unknown> | {
|
|
126
|
+
[x: string]: unknown;
|
|
125
127
|
equals: string;
|
|
126
128
|
property: string;
|
|
127
129
|
};
|
|
128
130
|
create: {
|
|
129
|
-
properties: Record<string,
|
|
131
|
+
properties: Record<string, unknown>;
|
|
130
132
|
icon?: Record<string, unknown> | {
|
|
133
|
+
[x: string]: unknown;
|
|
131
134
|
emoji: string;
|
|
132
135
|
type?: string | undefined;
|
|
133
136
|
} | {
|
|
137
|
+
[x: string]: unknown;
|
|
134
138
|
external: {
|
|
139
|
+
[x: string]: unknown;
|
|
135
140
|
url: string;
|
|
136
141
|
};
|
|
137
142
|
type?: string | undefined;
|
|
138
143
|
} | undefined;
|
|
139
144
|
cover?: Record<string, unknown> | {
|
|
145
|
+
[x: string]: unknown;
|
|
140
146
|
external: {
|
|
147
|
+
[x: string]: unknown;
|
|
141
148
|
url: string;
|
|
142
149
|
};
|
|
143
150
|
type?: string | undefined;
|
|
144
151
|
} | undefined;
|
|
145
152
|
children?: (Record<string, unknown> | {
|
|
153
|
+
[x: string]: unknown;
|
|
146
154
|
paragraph: Record<string, unknown>;
|
|
147
155
|
type?: string | undefined;
|
|
148
156
|
object?: string | undefined;
|
|
149
157
|
} | {
|
|
158
|
+
[x: string]: unknown;
|
|
150
159
|
heading_1: Record<string, unknown>;
|
|
151
160
|
type?: string | undefined;
|
|
152
161
|
object?: string | undefined;
|
|
153
162
|
} | {
|
|
163
|
+
[x: string]: unknown;
|
|
154
164
|
heading_2: Record<string, unknown>;
|
|
155
165
|
type?: string | undefined;
|
|
156
166
|
object?: string | undefined;
|
|
157
167
|
} | {
|
|
168
|
+
[x: string]: unknown;
|
|
158
169
|
heading_3: Record<string, unknown>;
|
|
159
170
|
type?: string | undefined;
|
|
160
171
|
object?: string | undefined;
|
|
161
172
|
} | {
|
|
173
|
+
[x: string]: unknown;
|
|
162
174
|
bulleted_list_item: Record<string, unknown>;
|
|
163
175
|
type?: string | undefined;
|
|
164
176
|
object?: string | undefined;
|
|
165
177
|
} | {
|
|
178
|
+
[x: string]: unknown;
|
|
166
179
|
numbered_list_item: Record<string, unknown>;
|
|
167
180
|
type?: string | undefined;
|
|
168
181
|
object?: string | undefined;
|
|
169
182
|
} | {
|
|
183
|
+
[x: string]: unknown;
|
|
170
184
|
to_do: Record<string, unknown>;
|
|
171
185
|
type?: string | undefined;
|
|
172
186
|
object?: string | undefined;
|
|
173
187
|
} | {
|
|
188
|
+
[x: string]: unknown;
|
|
174
189
|
toggle: Record<string, unknown>;
|
|
175
190
|
type?: string | undefined;
|
|
176
191
|
object?: string | undefined;
|
|
177
192
|
} | {
|
|
193
|
+
[x: string]: unknown;
|
|
178
194
|
code: Record<string, unknown>;
|
|
179
195
|
type?: string | undefined;
|
|
180
196
|
object?: string | undefined;
|
|
181
197
|
} | {
|
|
198
|
+
[x: string]: unknown;
|
|
182
199
|
quote: Record<string, unknown>;
|
|
183
200
|
type?: string | undefined;
|
|
184
201
|
object?: string | undefined;
|
|
185
202
|
} | {
|
|
203
|
+
[x: string]: unknown;
|
|
186
204
|
callout: Record<string, unknown>;
|
|
187
205
|
type?: string | undefined;
|
|
188
206
|
object?: string | undefined;
|
|
189
207
|
} | {
|
|
208
|
+
[x: string]: unknown;
|
|
190
209
|
type?: string | undefined;
|
|
191
210
|
object?: string | undefined;
|
|
192
211
|
divider?: Record<string, unknown> | undefined;
|
|
@@ -194,22 +213,27 @@ declare const notionUpsertRowDatabase: import("@keystrokehq/action").WorkflowAct
|
|
|
194
213
|
};
|
|
195
214
|
update: {
|
|
196
215
|
icon?: Record<string, unknown> | {
|
|
216
|
+
[x: string]: unknown;
|
|
197
217
|
emoji: string;
|
|
198
218
|
type?: string | undefined;
|
|
199
219
|
} | {
|
|
220
|
+
[x: string]: unknown;
|
|
200
221
|
external: {
|
|
222
|
+
[x: string]: unknown;
|
|
201
223
|
url: string;
|
|
202
224
|
};
|
|
203
225
|
type?: string | undefined;
|
|
204
226
|
} | undefined;
|
|
205
227
|
cover?: Record<string, unknown> | {
|
|
228
|
+
[x: string]: unknown;
|
|
206
229
|
external: {
|
|
230
|
+
[x: string]: unknown;
|
|
207
231
|
url: string;
|
|
208
232
|
};
|
|
209
233
|
type?: string | undefined;
|
|
210
234
|
} | undefined;
|
|
211
235
|
archived?: boolean | undefined;
|
|
212
|
-
properties?: Record<string,
|
|
236
|
+
properties?: Record<string, unknown> | undefined;
|
|
213
237
|
};
|
|
214
238
|
}[];
|
|
215
239
|
options?: {
|
|
@@ -218,7 +242,19 @@ declare const notionUpsertRowDatabase: import("@keystrokehq/action").WorkflowAct
|
|
|
218
242
|
} | undefined;
|
|
219
243
|
database_id?: string | undefined;
|
|
220
244
|
data_source_id?: string | undefined;
|
|
221
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
245
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
246
|
+
connectionId: z.ZodString;
|
|
247
|
+
entityId: z.ZodString;
|
|
248
|
+
instanceId: z.ZodString;
|
|
249
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
250
|
+
accessToken: z.ZodString;
|
|
251
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
252
|
+
connectionId: z.ZodString;
|
|
253
|
+
entityId: z.ZodString;
|
|
254
|
+
instanceId: z.ZodString;
|
|
255
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
256
|
+
accessToken: z.ZodString;
|
|
257
|
+
}, z.core.$strip>>]>;
|
|
222
258
|
//#endregion
|
|
223
259
|
export { notionUpsertRowDatabase };
|
|
224
260
|
//# sourceMappingURL=upsert-row-database.d.mts.map
|
|
@@ -6,108 +6,108 @@ const NotionUpsertRowDatabaseInput = z.object({
|
|
|
6
6
|
match: z.union([z.object({
|
|
7
7
|
equals: z.string().describe("Value to match exactly."),
|
|
8
8
|
property: z.string().describe("Property name or ID to filter by.")
|
|
9
|
-
}).describe("Filter specification for matching existing rows."), z.record(z.string(), z.unknown())]),
|
|
9
|
+
}).passthrough().describe("Filter specification for matching existing rows."), z.record(z.string(), z.unknown())]),
|
|
10
10
|
create: z.object({
|
|
11
11
|
icon: z.union([
|
|
12
12
|
z.object({
|
|
13
13
|
type: z.string().default("emoji").describe("The icon type (emoji).").optional(),
|
|
14
14
|
emoji: z.string().describe("Emoji character (e.g., '🎉').")
|
|
15
|
-
}).describe("Emoji icon."),
|
|
15
|
+
}).passthrough().describe("Emoji icon."),
|
|
16
16
|
z.object({
|
|
17
17
|
type: z.string().default("external").describe("The icon type (external URL).").optional(),
|
|
18
|
-
external: z.object({ url: z.string().describe("URL of the external file.") }).describe("External file URL.")
|
|
19
|
-
}).describe("External file icon."),
|
|
18
|
+
external: z.object({ url: z.string().describe("URL of the external file.") }).passthrough().describe("External file URL.")
|
|
19
|
+
}).passthrough().describe("External file icon."),
|
|
20
20
|
z.record(z.string(), z.unknown())
|
|
21
21
|
]).optional(),
|
|
22
22
|
cover: z.union([z.object({
|
|
23
23
|
type: z.string().default("external").describe("The cover image type (external URL).").optional(),
|
|
24
|
-
external: z.object({ url: z.string().describe("URL of the external file.") }).describe("External image URL.")
|
|
25
|
-
}).describe("External cover image."), z.record(z.string(), z.unknown())]).optional(),
|
|
24
|
+
external: z.object({ url: z.string().describe("URL of the external file.") }).passthrough().describe("External image URL.")
|
|
25
|
+
}).passthrough().describe("External cover image."), z.record(z.string(), z.unknown())]).optional(),
|
|
26
26
|
children: z.array(z.union([
|
|
27
27
|
z.object({
|
|
28
28
|
type: z.string().default("paragraph").describe("The block type identifier.").optional(),
|
|
29
29
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
30
30
|
paragraph: z.record(z.string(), z.unknown()).describe("Paragraph content with rich_text array.")
|
|
31
|
-
}).describe("Paragraph block type."),
|
|
31
|
+
}).passthrough().describe("Paragraph block type."),
|
|
32
32
|
z.object({
|
|
33
33
|
type: z.string().default("heading_1").describe("The block type identifier.").optional(),
|
|
34
34
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
35
35
|
heading_1: z.record(z.string(), z.unknown()).describe("Heading content with rich_text array.")
|
|
36
|
-
}).describe("Heading 1 block type."),
|
|
36
|
+
}).passthrough().describe("Heading 1 block type."),
|
|
37
37
|
z.object({
|
|
38
38
|
type: z.string().default("heading_2").describe("The block type identifier.").optional(),
|
|
39
39
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
40
40
|
heading_2: z.record(z.string(), z.unknown()).describe("Heading content with rich_text array.")
|
|
41
|
-
}).describe("Heading 2 block type."),
|
|
41
|
+
}).passthrough().describe("Heading 2 block type."),
|
|
42
42
|
z.object({
|
|
43
43
|
type: z.string().default("heading_3").describe("The block type identifier.").optional(),
|
|
44
44
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
45
45
|
heading_3: z.record(z.string(), z.unknown()).describe("Heading content with rich_text array.")
|
|
46
|
-
}).describe("Heading 3 block type."),
|
|
46
|
+
}).passthrough().describe("Heading 3 block type."),
|
|
47
47
|
z.object({
|
|
48
48
|
type: z.string().default("bulleted_list_item").describe("The block type identifier.").optional(),
|
|
49
49
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
50
50
|
bulleted_list_item: z.record(z.string(), z.unknown()).describe("List item content with rich_text array.")
|
|
51
|
-
}).describe("Bulleted list item block type."),
|
|
51
|
+
}).passthrough().describe("Bulleted list item block type."),
|
|
52
52
|
z.object({
|
|
53
53
|
type: z.string().default("numbered_list_item").describe("The block type identifier.").optional(),
|
|
54
54
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
55
55
|
numbered_list_item: z.record(z.string(), z.unknown()).describe("List item content with rich_text array.")
|
|
56
|
-
}).describe("Numbered list item block type."),
|
|
56
|
+
}).passthrough().describe("Numbered list item block type."),
|
|
57
57
|
z.object({
|
|
58
58
|
type: z.string().default("to_do").describe("The block type identifier.").optional(),
|
|
59
59
|
to_do: z.record(z.string(), z.unknown()).describe("To-do content with rich_text array and checked boolean."),
|
|
60
60
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional()
|
|
61
|
-
}).describe("To-do block type."),
|
|
61
|
+
}).passthrough().describe("To-do block type."),
|
|
62
62
|
z.object({
|
|
63
63
|
type: z.string().default("toggle").describe("The block type identifier.").optional(),
|
|
64
64
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
65
65
|
toggle: z.record(z.string(), z.unknown()).describe("Toggle content with rich_text array.")
|
|
66
|
-
}).describe("Toggle block type."),
|
|
66
|
+
}).passthrough().describe("Toggle block type."),
|
|
67
67
|
z.object({
|
|
68
68
|
code: z.record(z.string(), z.unknown()).describe("Code content with rich_text array and language."),
|
|
69
69
|
type: z.string().default("code").describe("The block type identifier.").optional(),
|
|
70
70
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional()
|
|
71
|
-
}).describe("Code block type."),
|
|
71
|
+
}).passthrough().describe("Code block type."),
|
|
72
72
|
z.object({
|
|
73
73
|
type: z.string().default("quote").describe("The block type identifier.").optional(),
|
|
74
74
|
quote: z.record(z.string(), z.unknown()).describe("Quote content with rich_text array."),
|
|
75
75
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional()
|
|
76
|
-
}).describe("Quote block type."),
|
|
76
|
+
}).passthrough().describe("Quote block type."),
|
|
77
77
|
z.object({
|
|
78
78
|
type: z.string().default("callout").describe("The block type identifier.").optional(),
|
|
79
79
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
80
80
|
callout: z.record(z.string(), z.unknown()).describe("Callout content with rich_text array and icon.")
|
|
81
|
-
}).describe("Callout block type."),
|
|
81
|
+
}).passthrough().describe("Callout block type."),
|
|
82
82
|
z.object({
|
|
83
83
|
type: z.string().default("divider").describe("The block type identifier.").optional(),
|
|
84
84
|
object: z.string().default("block").describe("The object type identifier (always 'block').").optional(),
|
|
85
85
|
divider: z.record(z.string(), z.unknown()).describe("Empty object for divider.").optional()
|
|
86
|
-
}).describe("Divider block type."),
|
|
86
|
+
}).passthrough().describe("Divider block type."),
|
|
87
87
|
z.record(z.string(), z.unknown())
|
|
88
88
|
])).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(),
|
|
89
|
-
properties: z.
|
|
89
|
+
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}}")
|
|
90
90
|
}).describe("Payload to use when creating a new page if no match is found."),
|
|
91
91
|
update: z.object({
|
|
92
92
|
icon: z.union([
|
|
93
93
|
z.object({
|
|
94
94
|
type: z.string().default("emoji").describe("The icon type (emoji).").optional(),
|
|
95
95
|
emoji: z.string().describe("Emoji character (e.g., '🎉').")
|
|
96
|
-
}).describe("Emoji icon."),
|
|
96
|
+
}).passthrough().describe("Emoji icon."),
|
|
97
97
|
z.object({
|
|
98
98
|
type: z.string().default("external").describe("The icon type (external URL).").optional(),
|
|
99
|
-
external: z.object({ url: z.string().describe("URL of the external file.") }).describe("External file URL.")
|
|
100
|
-
}).describe("External file icon."),
|
|
99
|
+
external: z.object({ url: z.string().describe("URL of the external file.") }).passthrough().describe("External file URL.")
|
|
100
|
+
}).passthrough().describe("External file icon."),
|
|
101
101
|
z.record(z.string(), z.unknown())
|
|
102
102
|
]).optional(),
|
|
103
103
|
cover: z.union([z.object({
|
|
104
104
|
type: z.string().default("external").describe("The cover image type (external URL).").optional(),
|
|
105
|
-
external: z.object({ url: z.string().describe("URL of the external file.") }).describe("External image URL.")
|
|
106
|
-
}).describe("External cover image."), z.record(z.string(), z.unknown())]).optional(),
|
|
105
|
+
external: z.object({ url: z.string().describe("URL of the external file.") }).passthrough().describe("External image URL.")
|
|
106
|
+
}).passthrough().describe("External cover image."), z.record(z.string(), z.unknown())]).optional(),
|
|
107
107
|
archived: z.boolean().describe("Set to true to archive the page, false to restore.").optional(),
|
|
108
|
-
properties: z.
|
|
108
|
+
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()
|
|
109
109
|
}).describe("Payload to use when updating an existing page if a match is found.")
|
|
110
|
-
}).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."),
|
|
110
|
+
}).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."),
|
|
111
111
|
options: z.object({
|
|
112
112
|
continue_on_error: z.boolean().default(true).describe("If true, continue processing remaining items after an error; if false, stop on first error.").optional(),
|
|
113
113
|
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()
|
|
@@ -122,7 +122,7 @@ const NotionUpsertRowDatabase_UpsertItemResultSchema = z.object({
|
|
|
122
122
|
page_id: z.string().describe("UUID of the created or updated page. Null if error occurred.").nullable().optional(),
|
|
123
123
|
error_code: z.string().describe("Error code if operation failed.").nullable().optional(),
|
|
124
124
|
error_message: z.string().describe("Error message if operation failed.").nullable().optional()
|
|
125
|
-
}).describe("Result for a single upsert item.");
|
|
125
|
+
}).passthrough().describe("Result for a single upsert item.");
|
|
126
126
|
const notionUpsertRowDatabase = action("NOTION_UPSERT_ROW_DATABASE", {
|
|
127
127
|
slug: "notion-upsert-row-database",
|
|
128
128
|
name: "Upsert database rows",
|
|
@@ -132,7 +132,7 @@ const notionUpsertRowDatabase = action("NOTION_UPSERT_ROW_DATABASE", {
|
|
|
132
132
|
results: z.array(NotionUpsertRowDatabase_UpsertItemResultSchema).describe("Array of results for each upsert item, in the same order as the request."),
|
|
133
133
|
error_count: z.number().int().describe("Number of items that failed.").nullable(),
|
|
134
134
|
success_count: z.number().int().describe("Number of items that succeeded.").nullable()
|
|
135
|
-
}).describe("Response model for upserting rows in a Notion database.")
|
|
135
|
+
}).passthrough().describe("Response model for upserting rows in a Notion database.")
|
|
136
136
|
});
|
|
137
137
|
//#endregion
|
|
138
138
|
export { notionUpsertRowDatabase };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upsert-row-database.mjs","names":[],"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}).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}).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}).describe(\"External file URL.\"),\n}).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}).describe(\"External image URL.\"),\n}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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}).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.object({}).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}).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}).describe(\"External file URL.\"),\n}).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}).describe(\"External image URL.\"),\n}).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.object({}).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}).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}).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}).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+B,EAAE,OAAO;CACnD,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,OAAO,EAAE,MAAM,CAAC,EAAE,OAAO;GACzB,QAAQ,EAAE,OAAO,CAAC,CAAC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AAS,CAAC,CAAC,CAAC,SAAS,mEAAmE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,8DAA8D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/F,CAAC,CAAC,CAAC,SAAS,kCAAkC;AAO9C,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAX2C,EAAE,OAAO;EACpD,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,0EAA0E;EACpJ,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;EAChF,eAAe,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"upsert-row-database.mjs","names":[],"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+B,EAAE,OAAO;CACnD,OAAO,EAAE,MAAM,EAA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,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CACvF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yDAOhB;AACV,CAAC"}
|
package/dist/app.cjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
+
let _keystrokehq_keystroke_app = require("@keystrokehq/keystroke/app");
|
|
2
|
+
let zod = require("zod");
|
|
1
3
|
//#region src/app.ts
|
|
2
|
-
const notion = (0,
|
|
4
|
+
const notion = (0, _keystrokehq_keystroke_app.defineApp)({
|
|
3
5
|
slug: "notion",
|
|
4
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential: { accessToken: zod.z.string() }
|
|
5
8
|
});
|
|
6
9
|
//#endregion
|
|
7
10
|
exports.notion = notion;
|
package/dist/app.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const notion = defineApp({\n slug: \"notion\",\n auth: \"keystroke\",\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.cjs","names":["z"],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const notion = defineApp({\n slug: \"notion\",\n auth: \"keystroke\",\n credential: {\n accessToken: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,UAAA,GAAA,2BAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAaA,IAAAA,EAAE,OAAO,EACxB;AACF,CAAC"}
|
package/dist/app.d.cts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
//#region src/app.d.ts
|
|
2
|
-
declare const notion: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential
|
|
4
|
+
declare const notion: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
5
|
+
connectionId: z.ZodString;
|
|
6
|
+
entityId: z.ZodString;
|
|
7
|
+
instanceId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
accessToken: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { notion };
|
|
5
13
|
//# sourceMappingURL=app.d.cts.map
|
package/dist/app.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,MAAA,6BAAM,GAAA,+BAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
|
package/dist/app.d.mts
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
1
3
|
//#region src/app.d.ts
|
|
2
|
-
declare const notion: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential
|
|
4
|
+
declare const notion: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
5
|
+
connectionId: z.ZodString;
|
|
6
|
+
entityId: z.ZodString;
|
|
7
|
+
instanceId: z.ZodString;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
accessToken: z.ZodString;
|
|
10
|
+
}, z.core.$strip>>>;
|
|
3
11
|
//#endregion
|
|
4
12
|
export { notion };
|
|
5
13
|
//# sourceMappingURL=app.d.mts.map
|
package/dist/app.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAGa,MAAA,6BAAM,GAAA,+BAAA,UAAA,WAAA,CAAA,CAAA,SAAA"}
|
package/dist/app.mjs
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { defineApp } from "@keystrokehq/keystroke/app";
|
|
2
|
+
import { z } from "zod";
|
|
2
3
|
//#region src/app.ts
|
|
3
4
|
const notion = defineApp({
|
|
4
5
|
slug: "notion",
|
|
5
|
-
auth: "keystroke"
|
|
6
|
+
auth: "keystroke",
|
|
7
|
+
credential: { accessToken: z.string() }
|
|
6
8
|
});
|
|
7
9
|
//#endregion
|
|
8
10
|
export { notion };
|
package/dist/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const notion = defineApp({\n slug: \"notion\",\n auth: \"keystroke\",\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nexport const notion = defineApp({\n slug: \"notion\",\n auth: \"keystroke\",\n credential: {\n accessToken: z.string(),\n },\n});\n"],"mappings":";;;AAGA,MAAa,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;CACN,YAAY,EACV,aAAa,EAAE,OAAO,EACxB;AACF,CAAC"}
|
package/dist/execute.cjs
CHANGED
|
@@ -2,7 +2,7 @@ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
|
|
|
2
2
|
//#region src/execute.ts
|
|
3
3
|
const APP_SLUG = "notion";
|
|
4
4
|
/** Pinned app version — updated on regeneration. */
|
|
5
|
-
const APP_VERSION = "
|
|
5
|
+
const APP_VERSION = "20260707_00";
|
|
6
6
|
async function executeNotionTool(tool, args) {
|
|
7
7
|
const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
|
|
8
8
|
app: APP_SLUG,
|
package/dist/execute.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"notion\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"
|
|
1
|
+
{"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"notion\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260707_00\";\n\nexport async function executeNotionTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,kBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
|