@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
|
@@ -14,14 +14,14 @@ const NotionSearchNotionPageInput = z.object({
|
|
|
14
14
|
const NotionSearchNotionPage_FileFileSchema = z.object({
|
|
15
15
|
url: z.string().nullable(),
|
|
16
16
|
expiry_time: z.string().nullable()
|
|
17
|
-
});
|
|
18
|
-
const NotionSearchNotionPage_ExternalFileSchema = z.object({ url: z.string().nullable() });
|
|
19
|
-
const NotionSearchNotionPage_FileUploadSchema = z.object({ id: z.string().nullable() });
|
|
17
|
+
}).passthrough();
|
|
18
|
+
const NotionSearchNotionPage_ExternalFileSchema = z.object({ url: z.string().nullable() }).passthrough();
|
|
19
|
+
const NotionSearchNotionPage_FileUploadSchema = z.object({ id: z.string().nullable() }).passthrough();
|
|
20
20
|
const NotionSearchNotionPage_CustomEmojiInfoSchema = z.object({
|
|
21
21
|
id: z.string().describe("The ID of the custom emoji.").nullable(),
|
|
22
22
|
url: z.string().describe("The URL of the custom emoji image.").nullable().optional(),
|
|
23
23
|
name: z.string().describe("The name of the custom emoji.").nullable().optional()
|
|
24
|
-
}).describe("Custom emoji details.");
|
|
24
|
+
}).passthrough().describe("Custom emoji details.");
|
|
25
25
|
const NotionSearchNotionPage_FileObjectSchema = z.object({
|
|
26
26
|
file: NotionSearchNotionPage_FileFileSchema.nullable().optional(),
|
|
27
27
|
name: z.string().nullable().optional(),
|
|
@@ -34,15 +34,15 @@ const NotionSearchNotionPage_FileObjectSchema = z.object({
|
|
|
34
34
|
external: NotionSearchNotionPage_ExternalFileSchema.nullable().optional(),
|
|
35
35
|
file_upload: NotionSearchNotionPage_FileUploadSchema.nullable().optional(),
|
|
36
36
|
custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional()
|
|
37
|
-
});
|
|
37
|
+
}).passthrough();
|
|
38
38
|
const NotionSearchNotionPage_EmojiObjectSchema = z.object({
|
|
39
39
|
type: z.string().describe("Always 'emoji'.").nullable(),
|
|
40
40
|
emoji: z.string().describe("The emoji character.").nullable()
|
|
41
|
-
}).describe("Standard emoji icon object.");
|
|
41
|
+
}).passthrough().describe("Standard emoji icon object.");
|
|
42
42
|
const NotionSearchNotionPage_CustomEmojiObjectSchema = z.object({
|
|
43
43
|
type: z.string().describe("Always 'custom_emoji'.").nullable(),
|
|
44
44
|
custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional()
|
|
45
|
-
}).describe("Custom emoji icon object for workspace-uploaded emojis.");
|
|
45
|
+
}).passthrough().describe("Custom emoji icon object for workspace-uploaded emojis.");
|
|
46
46
|
const NotionSearchNotionPage_ParentSchema = z.object({
|
|
47
47
|
type: z.enum([
|
|
48
48
|
"page_id",
|
|
@@ -56,8 +56,8 @@ const NotionSearchNotionPage_ParentSchema = z.object({
|
|
|
56
56
|
workspace: z.boolean().nullable().optional(),
|
|
57
57
|
database_id: z.string().nullable().optional(),
|
|
58
58
|
data_source_id: z.string().nullable().optional()
|
|
59
|
-
});
|
|
60
|
-
const NotionSearchNotionPage_PersonInfoSchema = z.object({ email: z.string().describe("The email address of the person. Only available if integration has user capability permissions.").nullable().optional() }).describe("Person-specific information for user objects.");
|
|
59
|
+
}).passthrough();
|
|
60
|
+
const NotionSearchNotionPage_PersonInfoSchema = z.object({ email: z.string().describe("The email address of the person. Only available if integration has user capability permissions.").nullable().optional() }).passthrough().describe("Person-specific information for user objects.");
|
|
61
61
|
const NotionSearchNotionPage_BotOwnerUserSchema = z.object({
|
|
62
62
|
id: z.string().describe("UUID of the owner user.").nullable(),
|
|
63
63
|
name: z.string().describe("Display name of the owner.").nullable().optional(),
|
|
@@ -65,19 +65,19 @@ const NotionSearchNotionPage_BotOwnerUserSchema = z.object({
|
|
|
65
65
|
object: z.string().describe("Always 'user'.").nullable(),
|
|
66
66
|
person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),
|
|
67
67
|
avatar_url: z.string().describe("Avatar URL of the owner.").nullable().optional()
|
|
68
|
-
}).describe("User reference for bot owner when type is 'user'.");
|
|
68
|
+
}).passthrough().describe("User reference for bot owner when type is 'user'.");
|
|
69
69
|
const NotionSearchNotionPage_BotOwnerSchema = z.object({
|
|
70
70
|
type: z.enum(["workspace", "user"]).describe("The type of owner - either 'workspace' or 'user'.").nullable(),
|
|
71
71
|
user: NotionSearchNotionPage_BotOwnerUserSchema.nullable().optional(),
|
|
72
72
|
workspace: z.boolean().describe("Boolean value when owner type is workspace.").nullable().optional()
|
|
73
|
-
}).describe("Owner information for bot users.");
|
|
74
|
-
const NotionSearchNotionPage_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum file size allowed for uploads in bytes.").nullable().optional() }).describe("Workspace limit restrictions for bot users.");
|
|
73
|
+
}).passthrough().describe("Owner information for bot users.");
|
|
74
|
+
const NotionSearchNotionPage_WorkspaceLimitsSchema = z.object({ max_file_upload_size_in_bytes: z.number().int().describe("Maximum file size allowed for uploads in bytes.").nullable().optional() }).passthrough().describe("Workspace limit restrictions for bot users.");
|
|
75
75
|
const NotionSearchNotionPage_BotInfoSchema = z.object({
|
|
76
76
|
owner: NotionSearchNotionPage_BotOwnerSchema.nullable().optional(),
|
|
77
77
|
workspace_id: z.string().describe("ID of the bot's workspace.").nullable().optional(),
|
|
78
78
|
workspace_name: z.string().describe("Name of the workspace that owns the bot. Null if owner type is 'user'.").nullable().optional(),
|
|
79
79
|
workspace_limits: NotionSearchNotionPage_WorkspaceLimitsSchema.nullable().optional()
|
|
80
|
-
}).describe("Bot-specific information for user objects.");
|
|
80
|
+
}).passthrough().describe("Bot-specific information for user objects.");
|
|
81
81
|
const NotionSearchNotionPage_PartialUserSchema = z.object({
|
|
82
82
|
id: z.string().describe("UUID identifier for the user.").nullable(),
|
|
83
83
|
bot: NotionSearchNotionPage_BotInfoSchema.nullable().optional(),
|
|
@@ -86,7 +86,7 @@ const NotionSearchNotionPage_PartialUserSchema = z.object({
|
|
|
86
86
|
object: z.string().describe("Always 'user'.").nullable(),
|
|
87
87
|
person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),
|
|
88
88
|
avatar_url: z.string().describe("URL of the user's avatar image.").nullable().optional()
|
|
89
|
-
}).describe("Represents a user in Notion (person or bot).");
|
|
89
|
+
}).passthrough().describe("Represents a user in Notion (person or bot).");
|
|
90
90
|
const NotionSearchNotionPage_PageSchema = z.object({
|
|
91
91
|
id: z.string().describe("UUID of the page.").nullable(),
|
|
92
92
|
url: z.string().describe("URL of the page.").nullable(),
|
|
@@ -102,40 +102,40 @@ const NotionSearchNotionPage_PageSchema = z.object({
|
|
|
102
102
|
in_trash: z.boolean().describe("Whether the page is in trash.").nullable(),
|
|
103
103
|
is_locked: z.boolean().describe("Whether the page is locked for editing.").nullable().optional(),
|
|
104
104
|
created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),
|
|
105
|
-
properties: z.
|
|
105
|
+
properties: z.record(z.string(), z.unknown()).describe("Map of property names to their values. Structure varies by property type."),
|
|
106
106
|
public_url: z.string().describe("Public URL if page is published.").nullable().optional(),
|
|
107
107
|
created_time: z.string().describe("ISO 8601 timestamp when page was created.").nullable(),
|
|
108
108
|
last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),
|
|
109
109
|
last_edited_time: z.string().describe("ISO 8601 timestamp of last edit.").nullable()
|
|
110
|
-
}).describe("Represents a Notion page object.");
|
|
110
|
+
}).passthrough().describe("Represents a Notion page object.");
|
|
111
111
|
const NotionSearchNotionPage_LinkObjectSchema = z.object({
|
|
112
112
|
url: z.string().describe("The URL the text links to.").nullable(),
|
|
113
113
|
type: z.string().describe("Optional link type (e.g., 'url').").nullable().optional()
|
|
114
|
-
}).describe("Link object for inline links in text.");
|
|
114
|
+
}).passthrough().describe("Link object for inline links in text.");
|
|
115
115
|
const NotionSearchNotionPage_RichTextTextSchema = z.object({
|
|
116
116
|
link: NotionSearchNotionPage_LinkObjectSchema.nullable().optional(),
|
|
117
117
|
content: z.string().describe("The text content.").nullable()
|
|
118
|
-
}).describe("Text content for rich text objects.");
|
|
118
|
+
}).passthrough().describe("Text content for rich text objects.");
|
|
119
119
|
const NotionSearchNotionPage_DateMentionValueSchema = z.object({
|
|
120
120
|
end: z.string().describe("End date in ISO 8601 format for ranges.").nullable().optional(),
|
|
121
121
|
start: z.string().describe("Start date in ISO 8601 format.").nullable(),
|
|
122
122
|
time_zone: z.string().describe("Time zone for the date.").nullable().optional()
|
|
123
|
-
}).describe("Date value for date mentions.");
|
|
124
|
-
const NotionSearchNotionPage_PageMentionSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() }).describe("Page mention reference.");
|
|
123
|
+
}).passthrough().describe("Date value for date mentions.");
|
|
124
|
+
const NotionSearchNotionPage_PageMentionSchema = z.object({ id: z.string().describe("UUID of the mentioned page.").nullable() }).passthrough().describe("Page mention reference.");
|
|
125
125
|
const NotionSearchNotionPage_UserMentionSchema = z.object({
|
|
126
126
|
id: z.string().describe("UUID of the mentioned user.").nullable(),
|
|
127
127
|
object: z.string().describe("Always 'user'.").nullable()
|
|
128
|
-
}).describe("User mention reference.");
|
|
129
|
-
const NotionSearchNotionPage_DatabaseMentionSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() }).describe("Database mention reference.");
|
|
130
|
-
const NotionSearchNotionPage_LinkPreviewMentionSchema = z.object({ url: z.string().describe("The URL of the link preview.").nullable() }).describe("Link preview mention reference.");
|
|
128
|
+
}).passthrough().describe("User mention reference.");
|
|
129
|
+
const NotionSearchNotionPage_DatabaseMentionSchema = z.object({ id: z.string().describe("UUID of the mentioned database.").nullable() }).passthrough().describe("Database mention reference.");
|
|
130
|
+
const NotionSearchNotionPage_LinkPreviewMentionSchema = z.object({ url: z.string().describe("The URL of the link preview.").nullable() }).passthrough().describe("Link preview mention reference.");
|
|
131
131
|
const NotionSearchNotionPage_TemplateMentionDateSchema = z.object({
|
|
132
132
|
type: z.string().describe("Always 'template_mention_date'.").nullable(),
|
|
133
133
|
template_mention_date: z.enum(["today", "now"]).describe("The template date value - 'today' or 'now'.").nullable()
|
|
134
|
-
}).describe("Template mention for dates.");
|
|
134
|
+
}).passthrough().describe("Template mention for dates.");
|
|
135
135
|
const NotionSearchNotionPage_TemplateMentionUserSchema = z.object({
|
|
136
136
|
type: z.string().describe("Always 'template_mention_user'.").nullable(),
|
|
137
137
|
template_mention_user: z.string().describe("The template user value - always 'me'.").nullable()
|
|
138
|
-
}).describe("Template mention for users.");
|
|
138
|
+
}).passthrough().describe("Template mention for users.");
|
|
139
139
|
const NotionSearchNotionPage_MentionObjectSchema = z.object({
|
|
140
140
|
date: NotionSearchNotionPage_DateMentionValueSchema.nullable().optional(),
|
|
141
141
|
page: NotionSearchNotionPage_PageMentionSchema.nullable().optional(),
|
|
@@ -151,8 +151,8 @@ const NotionSearchNotionPage_MentionObjectSchema = z.object({
|
|
|
151
151
|
database: NotionSearchNotionPage_DatabaseMentionSchema.nullable().optional(),
|
|
152
152
|
link_preview: NotionSearchNotionPage_LinkPreviewMentionSchema.nullable().optional(),
|
|
153
153
|
template_mention: z.union([NotionSearchNotionPage_TemplateMentionDateSchema, NotionSearchNotionPage_TemplateMentionUserSchema]).nullable().optional()
|
|
154
|
-
}).describe("Mention object that can reference users, pages, databases, dates, or link previews.");
|
|
155
|
-
const NotionSearchNotionPage_RichTextEquationSchema = z.object({ expression: z.string().describe("The LaTeX equation expression.").nullable() }).describe("Equation content for rich text objects.");
|
|
154
|
+
}).passthrough().describe("Mention object that can reference users, pages, databases, dates, or link previews.");
|
|
155
|
+
const NotionSearchNotionPage_RichTextEquationSchema = z.object({ expression: z.string().describe("The LaTeX equation expression.").nullable() }).passthrough().describe("Equation content for rich text objects.");
|
|
156
156
|
const NotionSearchNotionPage_AnnotationsSchema = z.object({
|
|
157
157
|
bold: z.boolean().describe("Whether the text is bold.").nullable(),
|
|
158
158
|
code: z.boolean().describe("Whether the text is code-formatted.").nullable(),
|
|
@@ -160,7 +160,7 @@ const NotionSearchNotionPage_AnnotationsSchema = z.object({
|
|
|
160
160
|
italic: z.boolean().describe("Whether the text is italic.").nullable(),
|
|
161
161
|
underline: z.boolean().describe("Whether the text is underlined.").nullable(),
|
|
162
162
|
strikethrough: z.boolean().describe("Whether the text has strikethrough.").nullable()
|
|
163
|
-
}).describe("Text styling annotations.");
|
|
163
|
+
}).passthrough().describe("Text styling annotations.");
|
|
164
164
|
const NotionSearchNotionPage_RichTextSchema = z.object({
|
|
165
165
|
href: z.string().describe("The URL of any link in the text.").nullable().optional(),
|
|
166
166
|
text: NotionSearchNotionPage_RichTextTextSchema.nullable().optional(),
|
|
@@ -173,7 +173,7 @@ const NotionSearchNotionPage_RichTextSchema = z.object({
|
|
|
173
173
|
equation: NotionSearchNotionPage_RichTextEquationSchema.nullable().optional(),
|
|
174
174
|
plain_text: z.string().describe("The plain text representation.").nullable(),
|
|
175
175
|
annotations: NotionSearchNotionPage_AnnotationsSchema.nullable()
|
|
176
|
-
}).describe("Rich text object that can contain text, mentions, or equations.");
|
|
176
|
+
}).passthrough().describe("Rich text object that can contain text, mentions, or equations.");
|
|
177
177
|
const NotionSearchNotionPage_DataSourceSchema = z.object({
|
|
178
178
|
id: z.string().describe("UUID of the data source.").nullable(),
|
|
179
179
|
icon: z.union([
|
|
@@ -187,13 +187,13 @@ const NotionSearchNotionPage_DataSourceSchema = z.object({
|
|
|
187
187
|
archived: z.boolean().describe("Whether archived.").nullable().optional(),
|
|
188
188
|
in_trash: z.boolean().describe("Whether in trash.").nullable().optional(),
|
|
189
189
|
created_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),
|
|
190
|
-
properties: z.
|
|
190
|
+
properties: z.record(z.string(), z.unknown()).describe("Schema mapping property names to property definitions."),
|
|
191
191
|
description: z.array(NotionSearchNotionPage_RichTextSchema).describe("Description as rich text array.").nullable().optional(),
|
|
192
192
|
created_time: z.string().describe("ISO 8601 timestamp when created.").nullable().optional(),
|
|
193
193
|
last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),
|
|
194
194
|
database_parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),
|
|
195
195
|
last_edited_time: z.string().describe("ISO 8601 timestamp of last edit.").nullable().optional()
|
|
196
|
-
}).describe("Represents a Notion data source object.");
|
|
196
|
+
}).passthrough().describe("Represents a Notion data source object.");
|
|
197
197
|
const NotionSearchNotionPage_DatabaseSchema = z.object({
|
|
198
198
|
id: z.string().describe("UUID of the database.").nullable(),
|
|
199
199
|
url: z.string().describe("URL of the database.").nullable(),
|
|
@@ -210,13 +210,13 @@ const NotionSearchNotionPage_DatabaseSchema = z.object({
|
|
|
210
210
|
in_trash: z.boolean().describe("Whether the database is in trash.").nullable(),
|
|
211
211
|
is_inline: z.boolean().describe("Whether the database is inline.").nullable().optional(),
|
|
212
212
|
created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),
|
|
213
|
-
properties: z.
|
|
213
|
+
properties: z.record(z.string(), z.unknown()).describe("Map of property names to property schema definitions."),
|
|
214
214
|
public_url: z.string().describe("Public URL if database is published.").nullable().optional(),
|
|
215
215
|
description: z.array(NotionSearchNotionPage_RichTextSchema).describe("Database description as rich text array.").nullable().optional(),
|
|
216
216
|
created_time: z.string().describe("ISO 8601 timestamp when created.").nullable(),
|
|
217
217
|
last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),
|
|
218
218
|
last_edited_time: z.string().describe("ISO 8601 timestamp of last edit.").nullable()
|
|
219
|
-
}).describe("Represents a Notion database object.");
|
|
219
|
+
}).passthrough().describe("Represents a Notion database object.");
|
|
220
220
|
const NotionSearchNotionPage_PageOrDatabaseMarkerSchema = z.record(z.string(), z.unknown()).describe("Empty marker object for union discriminator in search responses.");
|
|
221
221
|
const notionSearchNotionPage = action("NOTION_SEARCH_NOTION_PAGE", {
|
|
222
222
|
slug: "notion-search-notion-page",
|
|
@@ -236,7 +236,7 @@ const notionSearchNotionPage = action("NOTION_SEARCH_NOTION_PAGE", {
|
|
|
236
236
|
next_cursor: z.string().describe("A cursor to be used as start_cursor for the next page of results, or null if there are no more results.").nullable().optional(),
|
|
237
237
|
page_or_database: NotionSearchNotionPage_PageOrDatabaseMarkerSchema.nullable().optional(),
|
|
238
238
|
composio_execution_message: z.string().describe("Message from the action execution indicating any modifications or warnings about the request parameters.").nullable().optional()
|
|
239
|
-
}).describe("Paginated list of search results matching the query. Results are Page, Data source, or Database objects shared with the integration.")
|
|
239
|
+
}).passthrough().describe("Paginated list of search results matching the query. Results are Page, Data source, or Database objects shared with the integration.")
|
|
240
240
|
});
|
|
241
241
|
//#endregion
|
|
242
242
|
export { notionSearchNotionPage };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-notion-page.mjs","names":[],"sources":["../../src/actions/search-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSearchNotionPageInput = z.object({\n query: z.string().default(\"\").describe(\"Text to search for in page and database titles. Use specific search terms to find items by title (primary approach). Note: Notion's search has known limitations - indexing is not immediate and recently shared items may not appear. If a specific query returns empty results, try an empty query as a fallback to list all accessible items and filter client-side.\").optional(),\n direction: z.string().describe(\"Specifies the sort direction for the results. Required if `timestamp` is provided. Valid values are `ascending` or `descending`.\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to include in the response. Must be an integer between 1 and 100, inclusive. Defaults to 25.\").optional(),\n timestamp: z.string().describe(\"The timestamp field to sort the results by. Currently, the only supported value is `last_edited_time`. If provided, `direction` must also be specified.\").optional(),\n filter_value: z.enum([\"page\", \"database\"]).default(\"page\").describe(\"Filters results by object type: 'page' or 'database'. Note: When searching databases, Notion's search may not find recently shared or newly created databases due to indexing delays. If specific database searches return empty results, try an empty query with filter_value='database' as a fallback to list all accessible databases.\").optional(),\n start_cursor: z.string().describe(\"An opaque cursor value from a previous response's `next_cursor` field. Must be exactly as returned by the API - do not pass page IDs, database IDs, or any other identifiers. If `None`, empty, or invalid, results start from the beginning.\").optional(),\n filter_property: z.string().default(\"object\").describe(\"The property to filter the search results by. Currently, the only supported value is `object`, which filters by the type specified in `filter_value`. Defaults to `object`.\").optional(),\n filter_properties: z.array(z.string()).describe(\"List of property names to include in the response for page results. When specified, only these properties will be returned in each page's 'properties' object, reducing response size. Useful for database pages with many custom properties. If not specified, all properties are returned. Note: This filter is applied client-side after receiving the API response.\").optional(),\n});\nconst NotionSearchNotionPage_FileFileSchema = z.object({\n url: z.string().nullable(),\n expiry_time: z.string().nullable(),\n});\nconst NotionSearchNotionPage_ExternalFileSchema = z.object({\n url: z.string().nullable(),\n});\nconst NotionSearchNotionPage_FileUploadSchema = z.object({\n id: z.string().nullable(),\n});\nconst NotionSearchNotionPage_CustomEmojiInfoSchema = z.object({\n id: z.string().describe(\"The ID of the custom emoji.\").nullable(),\n url: z.string().describe(\"The URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"The name of the custom emoji.\").nullable().optional(),\n}).describe(\"Custom emoji details.\");\nconst NotionSearchNotionPage_FileObjectSchema = z.object({\n file: NotionSearchNotionPage_FileFileSchema.nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.enum([\"file\", \"file_upload\", \"external\", \"custom_emoji\"]).nullable(),\n external: NotionSearchNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionSearchNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional(),\n});\nconst NotionSearchNotionPage_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).describe(\"Standard emoji icon object.\");\nconst NotionSearchNotionPage_CustomEmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional(),\n}).describe(\"Custom emoji icon object for workspace-uploaded emojis.\");\nconst NotionSearchNotionPage_ParentSchema = z.object({\n type: z.enum([\"page_id\", \"workspace\", \"block_id\", \"database_id\", \"data_source_id\"]).nullable(),\n page_id: z.string().nullable().optional(),\n block_id: z.string().nullable().optional(),\n workspace: z.boolean().nullable().optional(),\n database_id: z.string().nullable().optional(),\n data_source_id: z.string().nullable().optional(),\n});\nconst NotionSearchNotionPage_PersonInfoSchema = z.object({\n email: z.string().describe(\"The email address of the person. Only available if integration has user capability permissions.\").nullable().optional(),\n}).describe(\"Person-specific information for user objects.\");\nconst NotionSearchNotionPage_BotOwnerUserSchema = z.object({\n id: z.string().describe(\"UUID of the owner user.\").nullable(),\n name: z.string().describe(\"Display name of the owner.\").nullable().optional(),\n type: z.string().describe(\"User type.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL of the owner.\").nullable().optional(),\n}).describe(\"User reference for bot owner when type is 'user'.\");\nconst NotionSearchNotionPage_BotOwnerSchema = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner - either 'workspace' or 'user'.\").nullable(),\n user: NotionSearchNotionPage_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Boolean value when owner type is workspace.\").nullable().optional(),\n}).describe(\"Owner information for bot users.\");\nconst NotionSearchNotionPage_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file size allowed for uploads in bytes.\").nullable().optional(),\n}).describe(\"Workspace limit restrictions for bot users.\");\nconst NotionSearchNotionPage_BotInfoSchema = z.object({\n owner: NotionSearchNotionPage_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"ID of the bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot. Null if owner type is 'user'.\").nullable().optional(),\n workspace_limits: NotionSearchNotionPage_WorkspaceLimitsSchema.nullable().optional(),\n}).describe(\"Bot-specific information for user objects.\");\nconst NotionSearchNotionPage_PartialUserSchema = z.object({\n id: z.string().describe(\"UUID identifier for the user.\").nullable(),\n bot: NotionSearchNotionPage_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"The type of user - 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image.\").nullable().optional(),\n}).describe(\"Represents a user in Notion (person or bot).\");\nconst NotionSearchNotionPage_PageSchema = z.object({\n id: z.string().describe(\"UUID of the page.\").nullable(),\n url: z.string().describe(\"URL of the page.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionSearchNotionPage_FileObjectSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Map of property names to their values. Structure varies by property type.\"),\n public_url: z.string().describe(\"Public URL if page is published.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when page was created.\").nullable(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable(),\n}).describe(\"Represents a Notion page object.\");\nconst NotionSearchNotionPage_LinkObjectSchema = z.object({\n url: z.string().describe(\"The URL the text links to.\").nullable(),\n type: z.string().describe(\"Optional link type (e.g., 'url').\").nullable().optional(),\n}).describe(\"Link object for inline links in text.\");\nconst NotionSearchNotionPage_RichTextTextSchema = z.object({\n link: NotionSearchNotionPage_LinkObjectSchema.nullable().optional(),\n content: z.string().describe(\"The text content.\").nullable(),\n}).describe(\"Text content for rich text objects.\");\nconst NotionSearchNotionPage_DateMentionValueSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format for ranges.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n time_zone: z.string().describe(\"Time zone for the date.\").nullable().optional(),\n}).describe(\"Date value for date mentions.\");\nconst NotionSearchNotionPage_PageMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n}).describe(\"Page mention reference.\");\nconst NotionSearchNotionPage_UserMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).describe(\"User mention reference.\");\nconst NotionSearchNotionPage_DatabaseMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n}).describe(\"Database mention reference.\");\nconst NotionSearchNotionPage_LinkPreviewMentionSchema = z.object({\n url: z.string().describe(\"The URL of the link preview.\").nullable(),\n}).describe(\"Link preview mention reference.\");\nconst NotionSearchNotionPage_TemplateMentionDateSchema = z.object({\n type: z.string().describe(\"Always 'template_mention_date'.\").nullable(),\n template_mention_date: z.enum([\"today\", \"now\"]).describe(\"The template date value - 'today' or 'now'.\").nullable(),\n}).describe(\"Template mention for dates.\");\nconst NotionSearchNotionPage_TemplateMentionUserSchema = z.object({\n type: z.string().describe(\"Always 'template_mention_user'.\").nullable(),\n template_mention_user: z.string().describe(\"The template user value - always 'me'.\").nullable(),\n}).describe(\"Template mention for users.\");\nconst NotionSearchNotionPage_MentionObjectSchema = z.object({\n date: NotionSearchNotionPage_DateMentionValueSchema.nullable().optional(),\n page: NotionSearchNotionPage_PageMentionSchema.nullable().optional(),\n type: z.enum([\"user\", \"page\", \"database\", \"date\", \"link_preview\", \"template_mention\"]).describe(\"The type of mention.\").nullable(),\n user: NotionSearchNotionPage_UserMentionSchema.nullable().optional(),\n database: NotionSearchNotionPage_DatabaseMentionSchema.nullable().optional(),\n link_preview: NotionSearchNotionPage_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionSearchNotionPage_TemplateMentionDateSchema, NotionSearchNotionPage_TemplateMentionUserSchema]).nullable().optional(),\n}).describe(\"Mention object that can reference users, pages, databases, dates, or link previews.\");\nconst NotionSearchNotionPage_RichTextEquationSchema = z.object({\n expression: z.string().describe(\"The LaTeX equation expression.\").nullable(),\n}).describe(\"Equation content for rich text objects.\");\nconst NotionSearchNotionPage_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is code-formatted.\").nullable(),\n color: z.string().describe(\"Text color.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).describe(\"Text styling annotations.\");\nconst NotionSearchNotionPage_RichTextSchema = z.object({\n href: z.string().describe(\"The URL of any link in the text.\").nullable().optional(),\n text: NotionSearchNotionPage_RichTextTextSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"The type of rich text - 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionSearchNotionPage_MentionObjectSchema.nullable().optional(),\n equation: NotionSearchNotionPage_RichTextEquationSchema.nullable().optional(),\n plain_text: z.string().describe(\"The plain text representation.\").nullable(),\n annotations: NotionSearchNotionPage_AnnotationsSchema.nullable(),\n}).describe(\"Rich text object that can contain text, mentions, or equations.\");\nconst NotionSearchNotionPage_DataSourceSchema = z.object({\n id: z.string().describe(\"UUID of the data source.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n title: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'data_source'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether in trash.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),\n properties: z.object({}).describe(\"Schema mapping property names to property definitions.\"),\n description: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),\n database_parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable().optional(),\n}).describe(\"Represents a Notion data source object.\");\nconst NotionSearchNotionPage_DatabaseSchema = z.object({\n id: z.string().describe(\"UUID of the database.\").nullable(),\n url: z.string().describe(\"URL of the database.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionSearchNotionPage_FileObjectSchema.nullable().optional(),\n title: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Database title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'database'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is inline.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n properties: z.object({}).describe(\"Map of property names to property schema definitions.\"),\n public_url: z.string().describe(\"Public URL if database is published.\").nullable().optional(),\n description: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Database description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when created.\").nullable(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable(),\n}).describe(\"Represents a Notion database object.\");\nconst NotionSearchNotionPage_PageOrDatabaseMarkerSchema = z.record(z.string(), z.unknown()).describe(\"Empty marker object for union discriminator in search responses.\");\nexport const NotionSearchNotionPageOutput = z.object({\n type: z.string().describe(\"Union type discriminator.\").nullable().optional(),\n object: z.string().describe(\"Indicates a paginated list response.\").nullable(),\n results: z.array(z.union([NotionSearchNotionPage_PageSchema, NotionSearchNotionPage_DataSourceSchema, NotionSearchNotionPage_DatabaseSchema])).describe(\"Array of search results. Each item is either a Page, Data source, or Database object.\"),\n has_more: z.boolean().describe(\"True if there are more results after this page; otherwise false.\").nullable(),\n request_id: z.string().describe(\"Request ID from the Notion API.\").nullable().optional(),\n next_cursor: z.string().describe(\"A cursor to be used as start_cursor for the next page of results, or null if there are no more results.\").nullable().optional(),\n page_or_database: NotionSearchNotionPage_PageOrDatabaseMarkerSchema.nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the action execution indicating any modifications or warnings about the request parameters.\").nullable().optional(),\n}).describe(\"Paginated list of search results matching the query. Results are Page, Data source, or Database objects shared with the integration.\");\n\nexport const notionSearchNotionPage = action(\"NOTION_SEARCH_NOTION_PAGE\", {\n slug: \"notion-search-notion-page\",\n name: \"Search Notion pages and databases\",\n description: \"Searches Notion pages and databases by title. Use specific search terms to find items by title (primary approach). KNOWN LIMITATIONS: (1) Search indexing is not immediate - recently shared items may not appear. (2) Search is not exhaustive - results may be incomplete. (3) Database pages return all custom properties with full nested structures, which can create large responses for databases with many properties - use filter_properties to reduce response size. FALLBACK STRATEGY: If a specific title search returns empty results despite knowing items exist, try an empty query to list all accessible items and filter client-side.\",\n input: NotionSearchNotionPageInput,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G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,CAAC,CAAC,CAAC,SAAS,sIAOF;AACV,CAAC"}
|
|
1
|
+
{"version":3,"file":"search-notion-page.mjs","names":[],"sources":["../../src/actions/search-notion-page.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSearchNotionPageInput = z.object({\n query: z.string().default(\"\").describe(\"Text to search for in page and database titles. Use specific search terms to find items by title (primary approach). Note: Notion's search has known limitations - indexing is not immediate and recently shared items may not appear. If a specific query returns empty results, try an empty query as a fallback to list all accessible items and filter client-side.\").optional(),\n direction: z.string().describe(\"Specifies the sort direction for the results. Required if `timestamp` is provided. Valid values are `ascending` or `descending`.\").optional(),\n page_size: z.number().int().default(25).describe(\"The number of items to include in the response. Must be an integer between 1 and 100, inclusive. Defaults to 25.\").optional(),\n timestamp: z.string().describe(\"The timestamp field to sort the results by. Currently, the only supported value is `last_edited_time`. If provided, `direction` must also be specified.\").optional(),\n filter_value: z.enum([\"page\", \"database\"]).default(\"page\").describe(\"Filters results by object type: 'page' or 'database'. Note: When searching databases, Notion's search may not find recently shared or newly created databases due to indexing delays. If specific database searches return empty results, try an empty query with filter_value='database' as a fallback to list all accessible databases.\").optional(),\n start_cursor: z.string().describe(\"An opaque cursor value from a previous response's `next_cursor` field. Must be exactly as returned by the API - do not pass page IDs, database IDs, or any other identifiers. If `None`, empty, or invalid, results start from the beginning.\").optional(),\n filter_property: z.string().default(\"object\").describe(\"The property to filter the search results by. Currently, the only supported value is `object`, which filters by the type specified in `filter_value`. Defaults to `object`.\").optional(),\n filter_properties: z.array(z.string()).describe(\"List of property names to include in the response for page results. When specified, only these properties will be returned in each page's 'properties' object, reducing response size. Useful for database pages with many custom properties. If not specified, all properties are returned. Note: This filter is applied client-side after receiving the API response.\").optional(),\n});\nconst NotionSearchNotionPage_FileFileSchema = z.object({\n url: z.string().nullable(),\n expiry_time: z.string().nullable(),\n}).passthrough();\nconst NotionSearchNotionPage_ExternalFileSchema = z.object({\n url: z.string().nullable(),\n}).passthrough();\nconst NotionSearchNotionPage_FileUploadSchema = z.object({\n id: z.string().nullable(),\n}).passthrough();\nconst NotionSearchNotionPage_CustomEmojiInfoSchema = z.object({\n id: z.string().describe(\"The ID of the custom emoji.\").nullable(),\n url: z.string().describe(\"The URL of the custom emoji image.\").nullable().optional(),\n name: z.string().describe(\"The name of the custom emoji.\").nullable().optional(),\n}).passthrough().describe(\"Custom emoji details.\");\nconst NotionSearchNotionPage_FileObjectSchema = z.object({\n file: NotionSearchNotionPage_FileFileSchema.nullable().optional(),\n name: z.string().nullable().optional(),\n type: z.enum([\"file\", \"file_upload\", \"external\", \"custom_emoji\"]).nullable(),\n external: NotionSearchNotionPage_ExternalFileSchema.nullable().optional(),\n file_upload: NotionSearchNotionPage_FileUploadSchema.nullable().optional(),\n custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional(),\n}).passthrough();\nconst NotionSearchNotionPage_EmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'emoji'.\").nullable(),\n emoji: z.string().describe(\"The emoji character.\").nullable(),\n}).passthrough().describe(\"Standard emoji icon object.\");\nconst NotionSearchNotionPage_CustomEmojiObjectSchema = z.object({\n type: z.string().describe(\"Always 'custom_emoji'.\").nullable(),\n custom_emoji: NotionSearchNotionPage_CustomEmojiInfoSchema.nullable().optional(),\n}).passthrough().describe(\"Custom emoji icon object for workspace-uploaded emojis.\");\nconst NotionSearchNotionPage_ParentSchema = z.object({\n type: z.enum([\"page_id\", \"workspace\", \"block_id\", \"database_id\", \"data_source_id\"]).nullable(),\n page_id: z.string().nullable().optional(),\n block_id: z.string().nullable().optional(),\n workspace: z.boolean().nullable().optional(),\n database_id: z.string().nullable().optional(),\n data_source_id: z.string().nullable().optional(),\n}).passthrough();\nconst NotionSearchNotionPage_PersonInfoSchema = z.object({\n email: z.string().describe(\"The email address of the person. Only available if integration has user capability permissions.\").nullable().optional(),\n}).passthrough().describe(\"Person-specific information for user objects.\");\nconst NotionSearchNotionPage_BotOwnerUserSchema = z.object({\n id: z.string().describe(\"UUID of the owner user.\").nullable(),\n name: z.string().describe(\"Display name of the owner.\").nullable().optional(),\n type: z.string().describe(\"User type.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"Avatar URL of the owner.\").nullable().optional(),\n}).passthrough().describe(\"User reference for bot owner when type is 'user'.\");\nconst NotionSearchNotionPage_BotOwnerSchema = z.object({\n type: z.enum([\"workspace\", \"user\"]).describe(\"The type of owner - either 'workspace' or 'user'.\").nullable(),\n user: NotionSearchNotionPage_BotOwnerUserSchema.nullable().optional(),\n workspace: z.boolean().describe(\"Boolean value when owner type is workspace.\").nullable().optional(),\n}).passthrough().describe(\"Owner information for bot users.\");\nconst NotionSearchNotionPage_WorkspaceLimitsSchema = z.object({\n max_file_upload_size_in_bytes: z.number().int().describe(\"Maximum file size allowed for uploads in bytes.\").nullable().optional(),\n}).passthrough().describe(\"Workspace limit restrictions for bot users.\");\nconst NotionSearchNotionPage_BotInfoSchema = z.object({\n owner: NotionSearchNotionPage_BotOwnerSchema.nullable().optional(),\n workspace_id: z.string().describe(\"ID of the bot's workspace.\").nullable().optional(),\n workspace_name: z.string().describe(\"Name of the workspace that owns the bot. Null if owner type is 'user'.\").nullable().optional(),\n workspace_limits: NotionSearchNotionPage_WorkspaceLimitsSchema.nullable().optional(),\n}).passthrough().describe(\"Bot-specific information for user objects.\");\nconst NotionSearchNotionPage_PartialUserSchema = z.object({\n id: z.string().describe(\"UUID identifier for the user.\").nullable(),\n bot: NotionSearchNotionPage_BotInfoSchema.nullable().optional(),\n name: z.string().describe(\"Display name of the user.\").nullable().optional(),\n type: z.enum([\"person\", \"bot\"]).describe(\"The type of user - 'person' or 'bot'.\").nullable().optional(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n person: NotionSearchNotionPage_PersonInfoSchema.nullable().optional(),\n avatar_url: z.string().describe(\"URL of the user's avatar image.\").nullable().optional(),\n}).passthrough().describe(\"Represents a user in Notion (person or bot).\");\nconst NotionSearchNotionPage_PageSchema = z.object({\n id: z.string().describe(\"UUID of the page.\").nullable(),\n url: z.string().describe(\"URL of the page.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionSearchNotionPage_FileObjectSchema.nullable().optional(),\n object: z.string().describe(\"Always 'page'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable(),\n archived: z.boolean().describe(\"Whether the page is archived.\").nullable(),\n in_trash: z.boolean().describe(\"Whether the page is in trash.\").nullable(),\n is_locked: z.boolean().describe(\"Whether the page is locked for editing.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Map of property names to their values. Structure varies by property type.\"),\n public_url: z.string().describe(\"Public URL if page is published.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when page was created.\").nullable(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable(),\n}).passthrough().describe(\"Represents a Notion page object.\");\nconst NotionSearchNotionPage_LinkObjectSchema = z.object({\n url: z.string().describe(\"The URL the text links to.\").nullable(),\n type: z.string().describe(\"Optional link type (e.g., 'url').\").nullable().optional(),\n}).passthrough().describe(\"Link object for inline links in text.\");\nconst NotionSearchNotionPage_RichTextTextSchema = z.object({\n link: NotionSearchNotionPage_LinkObjectSchema.nullable().optional(),\n content: z.string().describe(\"The text content.\").nullable(),\n}).passthrough().describe(\"Text content for rich text objects.\");\nconst NotionSearchNotionPage_DateMentionValueSchema = z.object({\n end: z.string().describe(\"End date in ISO 8601 format for ranges.\").nullable().optional(),\n start: z.string().describe(\"Start date in ISO 8601 format.\").nullable(),\n time_zone: z.string().describe(\"Time zone for the date.\").nullable().optional(),\n}).passthrough().describe(\"Date value for date mentions.\");\nconst NotionSearchNotionPage_PageMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned page.\").nullable(),\n}).passthrough().describe(\"Page mention reference.\");\nconst NotionSearchNotionPage_UserMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned user.\").nullable(),\n object: z.string().describe(\"Always 'user'.\").nullable(),\n}).passthrough().describe(\"User mention reference.\");\nconst NotionSearchNotionPage_DatabaseMentionSchema = z.object({\n id: z.string().describe(\"UUID of the mentioned database.\").nullable(),\n}).passthrough().describe(\"Database mention reference.\");\nconst NotionSearchNotionPage_LinkPreviewMentionSchema = z.object({\n url: z.string().describe(\"The URL of the link preview.\").nullable(),\n}).passthrough().describe(\"Link preview mention reference.\");\nconst NotionSearchNotionPage_TemplateMentionDateSchema = z.object({\n type: z.string().describe(\"Always 'template_mention_date'.\").nullable(),\n template_mention_date: z.enum([\"today\", \"now\"]).describe(\"The template date value - 'today' or 'now'.\").nullable(),\n}).passthrough().describe(\"Template mention for dates.\");\nconst NotionSearchNotionPage_TemplateMentionUserSchema = z.object({\n type: z.string().describe(\"Always 'template_mention_user'.\").nullable(),\n template_mention_user: z.string().describe(\"The template user value - always 'me'.\").nullable(),\n}).passthrough().describe(\"Template mention for users.\");\nconst NotionSearchNotionPage_MentionObjectSchema = z.object({\n date: NotionSearchNotionPage_DateMentionValueSchema.nullable().optional(),\n page: NotionSearchNotionPage_PageMentionSchema.nullable().optional(),\n type: z.enum([\"user\", \"page\", \"database\", \"date\", \"link_preview\", \"template_mention\"]).describe(\"The type of mention.\").nullable(),\n user: NotionSearchNotionPage_UserMentionSchema.nullable().optional(),\n database: NotionSearchNotionPage_DatabaseMentionSchema.nullable().optional(),\n link_preview: NotionSearchNotionPage_LinkPreviewMentionSchema.nullable().optional(),\n template_mention: z.union([NotionSearchNotionPage_TemplateMentionDateSchema, NotionSearchNotionPage_TemplateMentionUserSchema]).nullable().optional(),\n}).passthrough().describe(\"Mention object that can reference users, pages, databases, dates, or link previews.\");\nconst NotionSearchNotionPage_RichTextEquationSchema = z.object({\n expression: z.string().describe(\"The LaTeX equation expression.\").nullable(),\n}).passthrough().describe(\"Equation content for rich text objects.\");\nconst NotionSearchNotionPage_AnnotationsSchema = z.object({\n bold: z.boolean().describe(\"Whether the text is bold.\").nullable(),\n code: z.boolean().describe(\"Whether the text is code-formatted.\").nullable(),\n color: z.string().describe(\"Text color.\").nullable(),\n italic: z.boolean().describe(\"Whether the text is italic.\").nullable(),\n underline: z.boolean().describe(\"Whether the text is underlined.\").nullable(),\n strikethrough: z.boolean().describe(\"Whether the text has strikethrough.\").nullable(),\n}).passthrough().describe(\"Text styling annotations.\");\nconst NotionSearchNotionPage_RichTextSchema = z.object({\n href: z.string().describe(\"The URL of any link in the text.\").nullable().optional(),\n text: NotionSearchNotionPage_RichTextTextSchema.nullable().optional(),\n type: z.enum([\"text\", \"mention\", \"equation\"]).describe(\"The type of rich text - 'text', 'mention', or 'equation'.\").nullable(),\n mention: NotionSearchNotionPage_MentionObjectSchema.nullable().optional(),\n equation: NotionSearchNotionPage_RichTextEquationSchema.nullable().optional(),\n plain_text: z.string().describe(\"The plain text representation.\").nullable(),\n annotations: NotionSearchNotionPage_AnnotationsSchema.nullable(),\n}).passthrough().describe(\"Rich text object that can contain text, mentions, or equations.\");\nconst NotionSearchNotionPage_DataSourceSchema = z.object({\n id: z.string().describe(\"UUID of the data source.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n title: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'data_source'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),\n archived: z.boolean().describe(\"Whether archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether in trash.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),\n properties: z.record(z.string(), z.unknown()).describe(\"Schema mapping property names to property definitions.\"),\n description: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when created.\").nullable().optional(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable().optional(),\n database_parent: NotionSearchNotionPage_ParentSchema.nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable().optional(),\n}).passthrough().describe(\"Represents a Notion data source object.\");\nconst NotionSearchNotionPage_DatabaseSchema = z.object({\n id: z.string().describe(\"UUID of the database.\").nullable(),\n url: z.string().describe(\"URL of the database.\").nullable(),\n icon: z.union([NotionSearchNotionPage_FileObjectSchema, NotionSearchNotionPage_EmojiObjectSchema, NotionSearchNotionPage_CustomEmojiObjectSchema]).nullable().optional(),\n cover: NotionSearchNotionPage_FileObjectSchema.nullable().optional(),\n title: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Database title as rich text array.\").nullable().optional(),\n object: z.string().describe(\"Always 'database'.\").nullable(),\n parent: NotionSearchNotionPage_ParentSchema.nullable(),\n archived: z.boolean().default(false).describe(\"Whether the database is archived.\").nullable().optional(),\n in_trash: z.boolean().describe(\"Whether the database is in trash.\").nullable(),\n is_inline: z.boolean().describe(\"Whether the database is inline.\").nullable().optional(),\n created_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n properties: z.record(z.string(), z.unknown()).describe(\"Map of property names to property schema definitions.\"),\n public_url: z.string().describe(\"Public URL if database is published.\").nullable().optional(),\n description: z.array(NotionSearchNotionPage_RichTextSchema).describe(\"Database description as rich text array.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when created.\").nullable(),\n last_edited_by: NotionSearchNotionPage_PartialUserSchema.nullable(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp of last edit.\").nullable(),\n}).passthrough().describe(\"Represents a Notion database object.\");\nconst NotionSearchNotionPage_PageOrDatabaseMarkerSchema = z.record(z.string(), z.unknown()).describe(\"Empty marker object for union discriminator in search responses.\");\nexport const NotionSearchNotionPageOutput = z.object({\n type: z.string().describe(\"Union type discriminator.\").nullable().optional(),\n object: z.string().describe(\"Indicates a paginated list response.\").nullable(),\n results: z.array(z.union([NotionSearchNotionPage_PageSchema, NotionSearchNotionPage_DataSourceSchema, NotionSearchNotionPage_DatabaseSchema])).describe(\"Array of search results. Each item is either a Page, Data source, or Database object.\"),\n has_more: z.boolean().describe(\"True if there are more results after this page; otherwise false.\").nullable(),\n request_id: z.string().describe(\"Request ID from the Notion API.\").nullable().optional(),\n next_cursor: z.string().describe(\"A cursor to be used as start_cursor for the next page of results, or null if there are no more results.\").nullable().optional(),\n page_or_database: NotionSearchNotionPage_PageOrDatabaseMarkerSchema.nullable().optional(),\n composio_execution_message: z.string().describe(\"Message from the action execution indicating any modifications or warnings about the request parameters.\").nullable().optional(),\n}).passthrough().describe(\"Paginated list of search results matching the query. Results are Page, Data source, or Database objects shared with the integration.\");\n\nexport const notionSearchNotionPage = action(\"NOTION_SEARCH_NOTION_PAGE\", {\n slug: \"notion-search-notion-page\",\n name: \"Search Notion pages and databases\",\n description: \"Searches Notion pages and databases by title. Use specific search terms to find items by title (primary approach). KNOWN LIMITATIONS: (1) Search indexing is not immediate - recently shared items may not appear. (2) Search is not exhaustive - results may be incomplete. (3) Database pages return all custom properties with full nested structures, which can create large responses for databases with many properties - use filter_properties to reduce response size. FALLBACK STRATEGY: If a specific title search returns empty results despite knowing items exist, try an empty query to list all accessible items and filter client-side.\",\n input: NotionSearchNotionPageInput,\n output: NotionSearchNotionPageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8B,EAAE,OAAO;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,yWAAyW,CAAC,CAAC,SAAS;CAC3Z,WAAW,EAAE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E,MAAM,EAAE,MAAM;GAAC;GAAmC;GAAyC;EAAqC,CAAC,CAAC,CAAC,CAAC,SAAS,uFAAuF;EAC/O,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;EAC5G,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yGAAyG,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChK,kBAAkB,kDAAkD,SAAS,CAAC,CAAC,SAAS;EACxF,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sIAOhB;AACV,CAAC"}
|
|
@@ -23,7 +23,7 @@ const NotionSendFileUploadOutput = zod.z.object({
|
|
|
23
23
|
created_time: zod.z.string().describe("ISO 8601 timestamp when the file upload was created.").nullable(),
|
|
24
24
|
content_length: zod.z.number().int().describe("The total size of the file in bytes.").nullable().optional(),
|
|
25
25
|
last_edited_time: zod.z.string().describe("ISO 8601 timestamp when the file upload was last modified.").nullable()
|
|
26
|
-
});
|
|
26
|
+
}).passthrough();
|
|
27
27
|
const notionSendFileUpload = require_action.action("NOTION_SEND_FILE_UPLOAD", {
|
|
28
28
|
slug: "notion-send-file-upload",
|
|
29
29
|
name: "Send file upload",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/send-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSendFileUploadInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg').\"),\n s3key: z.string().describe(\"A file reference key. Required only when NOT using file_content_base64 or file_path.\").optional(),\n mimetype: z.string().describe(\"The MIME type of the file.\"),\n}).describe(\"File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt').\"),\n part_number: z.number().int().describe(\"Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.\").optional(),\n file_upload_id: z.string().describe(\"Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action.\"),\n file_content_base64: z.string().describe(\"Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.\").optional(),\n});\nexport const NotionSendFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.string().describe(\"Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire.\").nullable(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.number().int().describe(\"The total size of the file in bytes.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n});\n\nexport const notionSendFileUpload = action(\"NOTION_SEND_FILE_UPLOAD\", {\n slug: \"notion-send-file-upload\",\n name: \"Send file upload\",\n description: \"Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.\",\n input: NotionSendFileUploadInput,\n output: NotionSendFileUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,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AAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC/G,CAAC;
|
|
1
|
+
{"version":3,"file":"send-file-upload.cjs","names":["z","action"],"sources":["../../src/actions/send-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSendFileUploadInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg').\"),\n s3key: z.string().describe(\"A file reference key. Required only when NOT using file_content_base64 or file_path.\").optional(),\n mimetype: z.string().describe(\"The MIME type of the file.\"),\n}).describe(\"File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt').\"),\n part_number: z.number().int().describe(\"Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.\").optional(),\n file_upload_id: z.string().describe(\"Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action.\"),\n file_content_base64: z.string().describe(\"Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.\").optional(),\n});\nexport const NotionSendFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.string().describe(\"Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire.\").nullable(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.number().int().describe(\"The total size of the file in bytes.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n}).passthrough();\n\nexport const notionSendFileUpload = action(\"NOTION_SEND_FILE_UPLOAD\", {\n slug: \"notion-send-file-upload\",\n name: \"Send file upload\",\n description: \"Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.\",\n input: NotionSendFileUploadInput,\n output: NotionSendFileUploadOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO;EACf,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;EACvH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC5H,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;CAC5D,CAAC,CAAC,CAAC,SAAS,gIAAgI;CAC1I,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;CAC9N,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;CACpJ,qBAAqBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;AACjO,CAAC;AACD,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAClF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CACjG,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;CACjI,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAChG,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;CACnG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -23,7 +23,7 @@ declare const NotionSendFileUploadOutput: z.ZodObject<{
|
|
|
23
23
|
created_time: z.ZodNullable<z.ZodString>;
|
|
24
24
|
content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const notionSendFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
file: {
|
|
29
29
|
name: string;
|
|
@@ -33,7 +33,19 @@ declare const notionSendFileUpload: import("@keystrokehq/action").WorkflowAction
|
|
|
33
33
|
file_upload_id: string;
|
|
34
34
|
part_number?: number | undefined;
|
|
35
35
|
file_content_base64?: string | undefined;
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
37
|
+
connectionId: z.ZodString;
|
|
38
|
+
entityId: z.ZodString;
|
|
39
|
+
instanceId: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
accessToken: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
43
|
+
connectionId: z.ZodString;
|
|
44
|
+
entityId: z.ZodString;
|
|
45
|
+
instanceId: z.ZodString;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
accessToken: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>]>;
|
|
37
49
|
//#endregion
|
|
38
50
|
export { notionSendFileUpload };
|
|
39
51
|
//# sourceMappingURL=send-file-upload.d.cts.map
|
|
@@ -23,7 +23,7 @@ declare const NotionSendFileUploadOutput: z.ZodObject<{
|
|
|
23
23
|
created_time: z.ZodNullable<z.ZodString>;
|
|
24
24
|
content_length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
25
25
|
last_edited_time: z.ZodNullable<z.ZodString>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>;
|
|
27
27
|
declare const notionSendFileUpload: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
28
|
file: {
|
|
29
29
|
name: string;
|
|
@@ -33,7 +33,19 @@ declare const notionSendFileUpload: import("@keystrokehq/action").WorkflowAction
|
|
|
33
33
|
file_upload_id: string;
|
|
34
34
|
part_number?: number | undefined;
|
|
35
35
|
file_content_base64?: string | undefined;
|
|
36
|
-
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential
|
|
36
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
37
|
+
connectionId: z.ZodString;
|
|
38
|
+
entityId: z.ZodString;
|
|
39
|
+
instanceId: z.ZodString;
|
|
40
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
41
|
+
accessToken: z.ZodString;
|
|
42
|
+
}, z.core.$strip>>]>, readonly [import("@keystrokehq/shared").Credential<"notion", z.ZodObject<{
|
|
43
|
+
connectionId: z.ZodString;
|
|
44
|
+
entityId: z.ZodString;
|
|
45
|
+
instanceId: z.ZodString;
|
|
46
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
47
|
+
accessToken: z.ZodString;
|
|
48
|
+
}, z.core.$strip>>]>;
|
|
37
49
|
//#endregion
|
|
38
50
|
export { notionSendFileUpload };
|
|
39
51
|
//# sourceMappingURL=send-file-upload.d.mts.map
|
|
@@ -26,7 +26,7 @@ const notionSendFileUpload = action("NOTION_SEND_FILE_UPLOAD", {
|
|
|
26
26
|
created_time: z.string().describe("ISO 8601 timestamp when the file upload was created.").nullable(),
|
|
27
27
|
content_length: z.number().int().describe("The total size of the file in bytes.").nullable().optional(),
|
|
28
28
|
last_edited_time: z.string().describe("ISO 8601 timestamp when the file upload was last modified.").nullable()
|
|
29
|
-
})
|
|
29
|
+
}).passthrough()
|
|
30
30
|
});
|
|
31
31
|
//#endregion
|
|
32
32
|
export { notionSendFileUpload };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-file-upload.mjs","names":[],"sources":["../../src/actions/send-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSendFileUploadInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg').\"),\n s3key: z.string().describe(\"A file reference key. Required only when NOT using file_content_base64 or file_path.\").optional(),\n mimetype: z.string().describe(\"The MIME type of the file.\"),\n}).describe(\"File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt').\"),\n part_number: z.number().int().describe(\"Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.\").optional(),\n file_upload_id: z.string().describe(\"Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action.\"),\n file_content_base64: z.string().describe(\"Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.\").optional(),\n});\nexport const NotionSendFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.string().describe(\"Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire.\").nullable(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.number().int().describe(\"The total size of the file in bytes.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n});\n\nexport const notionSendFileUpload = action(\"NOTION_SEND_FILE_UPLOAD\", {\n slug: \"notion-send-file-upload\",\n name: \"Send file upload\",\n description: \"Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.\",\n input: NotionSendFileUploadInput,\n output: NotionSendFileUploadOutput,\n});\n"],"mappings":";;AA4BA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CAC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,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,kBAAkB,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAC/G,
|
|
1
|
+
{"version":3,"file":"send-file-upload.mjs","names":[],"sources":["../../src/actions/send-file-upload.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const NotionSendFileUploadInput = z.object({\n file: z.object({\n name: z.string().describe(\"The filename that will be used when uploading the file (e.g., 'document.pdf', 'image.jpg').\"),\n s3key: z.string().describe(\"A file reference key. Required only when NOT using file_content_base64 or file_path.\").optional(),\n mimetype: z.string().describe(\"The MIME type of the file.\"),\n}).describe(\"File information including name and mimetype. FileInfo object where 'name' is the filename (e.g., 'document.pdf', 'test.txt').\"),\n part_number: z.number().int().describe(\"Required when the file upload mode is 'multi_part'. Indicates which part is being sent (parts are numbered starting from 1). For single-part uploads, omit this parameter.\").optional(),\n file_upload_id: z.string().describe(\"Identifier of the file upload object to send data for. This ID is obtained from the Create File Upload action.\"),\n file_content_base64: z.string().describe(\"Optional base64-encoded file content. If provided, this will be used instead of downloading from S3 or reading from file_path. Useful for direct file content submission.\").optional(),\n});\nexport const NotionSendFileUploadOutput = z.object({\n id: z.string().describe(\"Unique identifier (UUID) for the file upload.\").nullable(),\n object: z.string().describe(\"Always set to 'file_upload'. Identifies the object type.\").nullable(),\n status: z.string().describe(\"Current status of the file upload. Can be 'pending', 'uploaded', 'expired', or 'failed'.\").nullable(),\n archived: z.boolean().describe(\"Indicates whether the file upload has been archived.\").nullable(),\n filename: z.string().describe(\"Name of the uploaded file.\").nullable().optional(),\n request_id: z.string().describe(\"Request identifier for tracking the file upload operation.\").nullable().optional(),\n expiry_time: z.string().describe(\"ISO 8601 timestamp when the file upload will expire.\").nullable(),\n content_type: z.string().describe(\"The MIME content type of the uploaded file.\").nullable().optional(),\n created_time: z.string().describe(\"ISO 8601 timestamp when the file upload was created.\").nullable(),\n content_length: z.number().int().describe(\"The total size of the file in bytes.\").nullable().optional(),\n last_edited_time: z.string().describe(\"ISO 8601 timestamp when the file upload was last modified.\").nullable(),\n}).passthrough();\n\nexport const notionSendFileUpload = action(\"NOTION_SEND_FILE_UPLOAD\", {\n slug: \"notion-send-file-upload\",\n name: \"Send file upload\",\n description: \"Tool to transmit file contents to Notion for a file upload object. Use after creating a file upload object to send the actual file data.\",\n input: NotionSendFileUploadInput,\n output: NotionSendFileUploadOutput,\n});\n"],"mappings":";;AA4BA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA5BuC,EAAE,OAAO;EAChD,MAAM,EAAE,OAAO;GACf,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6FAA6F;GACvH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;GAC5H,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B;EAC5D,CAAC,CAAC,CAAC,SAAS,gIAAgI;EAC1I,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4KAA4K,CAAC,CAAC,SAAS;EAC9N,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gHAAgH;EACpJ,qBAAqB,EAAE,OAAO,CAAC,CAAC,SAAS,2KAA2K,CAAC,CAAC,SAAS;CACjO,CAmBS;CACP,QAnBwC,EAAE,OAAO;EACjD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;EAClF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;EACjG,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,0FAA0F,CAAC,CAAC,SAAS;EACjI,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,sDAAsD,CAAC,CAAC,SAAS;EAChG,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4BA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