@keystrokehq/notion 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_official/index.d.mts +1 -1
- package/dist/_official/index.mjs +1 -1
- package/dist/blocks.mjs +6 -6
- package/dist/client.mjs +1 -1
- package/dist/comments.mjs +4 -4
- package/dist/connection.mjs +1 -1
- package/dist/data-sources.mjs +6 -6
- package/dist/{factory-BvG2wLPI.mjs → factory-BFy8QmFf.mjs} +1 -1
- package/dist/{integration-AVAZpqqY.mjs → integration-BdUbYCu5.mjs} +1 -1
- package/dist/pages.mjs +8 -8
- package/dist/search.mjs +2 -2
- package/dist/triggers.mjs +1 -1
- package/dist/users.mjs +4 -4
- package/package.json +2 -2
|
@@ -14,7 +14,7 @@ declare const notionAppCredentialSet: CredentialSet<"keystroke:notion-app", z.Zo
|
|
|
14
14
|
}, z.core.$strip>>[] | undefined>;
|
|
15
15
|
declare const notionOfficialProviderSeed: {
|
|
16
16
|
readonly provider: "notion";
|
|
17
|
-
readonly appRef: "notion-
|
|
17
|
+
readonly appRef: "notion-official";
|
|
18
18
|
readonly displayName: "Notion Platform";
|
|
19
19
|
readonly credentialSetName: "Keystroke Notion Platform App";
|
|
20
20
|
readonly envShape: {
|
package/dist/_official/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as notionOfficialProviderSeed, i as notionAppCredentialSet, n as notionBundle, o as notionWebhookCredentialSet } from "../integration-
|
|
1
|
+
import { a as notionOfficialProviderSeed, i as notionAppCredentialSet, n as notionBundle, o as notionWebhookCredentialSet } from "../integration-BdUbYCu5.mjs";
|
|
2
2
|
|
|
3
3
|
export { notionAppCredentialSet, notionBundle, notionOfficialProviderSeed, notionWebhookCredentialSet };
|
package/dist/blocks.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { appendBlockChildrenInChunks, createNotionClient, listAllPaginatedResults, withRateLimitRetry } from "./client.mjs";
|
|
2
2
|
import { normalizeBlock, normalizeListMeta, notionBlockSchema, notionListResponseSchema, notionSuccessResponseSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as notionOperation } from "./factory-
|
|
3
|
+
import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
|
|
4
4
|
import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ async function listBlockChildrenRecursively(client, blockId) {
|
|
|
14
14
|
return normalized.concat(...nested);
|
|
15
15
|
}
|
|
16
16
|
const getBlock = notionOperation({
|
|
17
|
-
id: "
|
|
17
|
+
id: "notion.get-notion-block",
|
|
18
18
|
name: "Get Notion Block",
|
|
19
19
|
description: "Retrieve a Notion block by ID",
|
|
20
20
|
input: z.object({ blockId: z.string().min(1) }),
|
|
@@ -25,7 +25,7 @@ const getBlock = notionOperation({
|
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
27
|
const listBlockChildren = notionOperation({
|
|
28
|
-
id: "
|
|
28
|
+
id: "notion.list-notion-block-children",
|
|
29
29
|
name: "List Notion Block Children",
|
|
30
30
|
description: "List the children for a Notion block or page",
|
|
31
31
|
input: z.object({
|
|
@@ -55,7 +55,7 @@ const listBlockChildren = notionOperation({
|
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
const appendBlockChildren = notionOperation({
|
|
58
|
-
id: "
|
|
58
|
+
id: "notion.append-notion-block-children",
|
|
59
59
|
name: "Append Notion Block Children",
|
|
60
60
|
description: "Append one or more child blocks to a Notion block or page",
|
|
61
61
|
input: z.object({
|
|
@@ -70,7 +70,7 @@ const appendBlockChildren = notionOperation({
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
const updateBlock = notionOperation({
|
|
73
|
-
id: "
|
|
73
|
+
id: "notion.update-notion-block",
|
|
74
74
|
name: "Update Notion Block",
|
|
75
75
|
description: "Update a Notion block by applying a typed block patch",
|
|
76
76
|
input: z.object({
|
|
@@ -88,7 +88,7 @@ const updateBlock = notionOperation({
|
|
|
88
88
|
}
|
|
89
89
|
});
|
|
90
90
|
const deleteBlock = notionOperation({
|
|
91
|
-
id: "
|
|
91
|
+
id: "notion.delete-notion-block",
|
|
92
92
|
name: "Delete Notion Block",
|
|
93
93
|
description: "Delete a Notion block",
|
|
94
94
|
input: z.object({ blockId: z.string().min(1) }),
|
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as notion } from "./integration-
|
|
1
|
+
import { t as notion } from "./integration-BdUbYCu5.mjs";
|
|
2
2
|
import { CredentialRevokedError } from "@keystrokehq/core/errors";
|
|
3
3
|
import { createErrorNormalizingProxy } from "@keystrokehq/integration-authoring";
|
|
4
4
|
import { Client } from "@notionhq/client";
|
package/dist/comments.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createNotionClient, withRateLimitRetry } from "./client.mjs";
|
|
2
2
|
import { normalizeComment, normalizeListMeta, notionCommentSchema, notionListResponseSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as notionOperation } from "./factory-
|
|
3
|
+
import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
|
|
4
4
|
import { i as buildPlainTextRichText, r as buildPaginationInput, t as buildCommentTarget } from "./shared-C6A6JPl3.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -15,7 +15,7 @@ const commentTargetSchema = z.object({
|
|
|
15
15
|
value.discussionId
|
|
16
16
|
].filter((entry) => Boolean(entry)).length === 1, { error: "Provide exactly one of pageId, blockId, or discussionId." });
|
|
17
17
|
const listComments = notionOperation({
|
|
18
|
-
id: "
|
|
18
|
+
id: "notion.list-notion-comments",
|
|
19
19
|
name: "List Notion Comments",
|
|
20
20
|
description: "List the open comments for a Notion page or block",
|
|
21
21
|
input: z.object({
|
|
@@ -39,7 +39,7 @@ const listComments = notionOperation({
|
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
const getComment = notionOperation({
|
|
42
|
-
id: "
|
|
42
|
+
id: "notion.get-notion-comment",
|
|
43
43
|
name: "Get Notion Comment",
|
|
44
44
|
description: "Retrieve a Notion comment by ID",
|
|
45
45
|
input: z.object({ commentId: z.string().min(1) }),
|
|
@@ -50,7 +50,7 @@ const getComment = notionOperation({
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
const createComment = notionOperation({
|
|
53
|
-
id: "
|
|
53
|
+
id: "notion.create-notion-comment",
|
|
54
54
|
name: "Create Notion Comment",
|
|
55
55
|
description: "Create a page comment or reply to an existing Notion discussion",
|
|
56
56
|
input: z.object({
|
package/dist/connection.mjs
CHANGED
package/dist/data-sources.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createNotionClient, withRateLimitRetry } from "./client.mjs";
|
|
2
2
|
import { normalizeDataSource, normalizeListMeta, normalizePage, notionDataSourceSchema, notionListResponseSchema, notionPageSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as notionOperation } from "./factory-
|
|
3
|
+
import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
|
|
4
4
|
import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -13,7 +13,7 @@ const databaseDiscoverySchema = z.object({
|
|
|
13
13
|
}))
|
|
14
14
|
});
|
|
15
15
|
const discoverDatabaseDataSources = notionOperation({
|
|
16
|
-
id: "
|
|
16
|
+
id: "notion.discover-notion-database-data-sources",
|
|
17
17
|
name: "Discover Notion Database Data Sources",
|
|
18
18
|
description: "Retrieve the data-source references that belong to a Notion database",
|
|
19
19
|
input: z.object({ databaseId: z.string().min(1) }),
|
|
@@ -31,7 +31,7 @@ const discoverDatabaseDataSources = notionOperation({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
const getDataSource = notionOperation({
|
|
34
|
-
id: "
|
|
34
|
+
id: "notion.get-notion-data-source",
|
|
35
35
|
name: "Get Notion Data Source",
|
|
36
36
|
description: "Retrieve a Notion data source by ID",
|
|
37
37
|
input: z.object({ dataSourceId: z.string().min(1) }),
|
|
@@ -42,7 +42,7 @@ const getDataSource = notionOperation({
|
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
44
|
const queryDataSource = notionOperation({
|
|
45
|
-
id: "
|
|
45
|
+
id: "notion.query-notion-data-source",
|
|
46
46
|
name: "Query Notion Data Source",
|
|
47
47
|
description: "Query pages in a Notion data source with filters, sorts, and pagination",
|
|
48
48
|
input: z.object({
|
|
@@ -70,7 +70,7 @@ const queryDataSource = notionOperation({
|
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
72
|
const createDataSourceEntry = notionOperation({
|
|
73
|
-
id: "
|
|
73
|
+
id: "notion.create-notion-data-source-entry",
|
|
74
74
|
name: "Create Notion Data Source Entry",
|
|
75
75
|
description: "Create a new page inside a Notion data source",
|
|
76
76
|
input: z.object({
|
|
@@ -93,7 +93,7 @@ const createDataSourceEntry = notionOperation({
|
|
|
93
93
|
}
|
|
94
94
|
});
|
|
95
95
|
const updateDataSourceEntry = notionOperation({
|
|
96
|
-
id: "
|
|
96
|
+
id: "notion.update-notion-data-source-entry",
|
|
97
97
|
name: "Update Notion Data Source Entry",
|
|
98
98
|
description: "Update the properties for a page that belongs to a Notion data source",
|
|
99
99
|
input: z.object({
|
|
@@ -15,7 +15,7 @@ const notionAppCredentialSet = new CredentialSet({
|
|
|
15
15
|
});
|
|
16
16
|
const notionOfficialProviderSeed = {
|
|
17
17
|
provider: "notion",
|
|
18
|
-
appRef: "notion-
|
|
18
|
+
appRef: "notion-official",
|
|
19
19
|
displayName: "Notion Platform",
|
|
20
20
|
credentialSetName: "Keystroke Notion Platform App",
|
|
21
21
|
envShape: {
|
package/dist/pages.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NOTION_MAX_BLOCK_CHILDREN_PER_REQUEST, appendBlockChildrenAndReturnResults, chunkArray, createNotionClient, listAllPaginatedResults, withRateLimitRetry } from "./client.mjs";
|
|
2
2
|
import { normalizePage, normalizePagePropertyItem, notionPagePropertyItemSchema, notionPageSchema, notionSuccessResponseSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as notionOperation } from "./factory-
|
|
3
|
+
import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
|
|
4
4
|
import { i as buildPlainTextRichText, n as buildPageParent, r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -78,7 +78,7 @@ async function appendCopyableBlockTree(client, targetBlockId, nodes) {
|
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
const getPage = notionOperation({
|
|
81
|
-
id: "
|
|
81
|
+
id: "notion.get-notion-page",
|
|
82
82
|
name: "Get Notion Page",
|
|
83
83
|
description: "Retrieve a Notion page by ID",
|
|
84
84
|
input: z.object({ pageId: z.string().min(1) }),
|
|
@@ -89,7 +89,7 @@ const getPage = notionOperation({
|
|
|
89
89
|
}
|
|
90
90
|
});
|
|
91
91
|
const createPage = notionOperation({
|
|
92
|
-
id: "
|
|
92
|
+
id: "notion.create-notion-page",
|
|
93
93
|
name: "Create Notion Page",
|
|
94
94
|
description: "Create a Notion page in a page, database, or data source parent",
|
|
95
95
|
input: z.object({
|
|
@@ -111,7 +111,7 @@ const createPage = notionOperation({
|
|
|
111
111
|
}
|
|
112
112
|
});
|
|
113
113
|
const updatePage = notionOperation({
|
|
114
|
-
id: "
|
|
114
|
+
id: "notion.update-notion-page",
|
|
115
115
|
name: "Update Notion Page",
|
|
116
116
|
description: "Update Notion page properties or presentation metadata",
|
|
117
117
|
input: z.object({
|
|
@@ -137,7 +137,7 @@ const updatePage = notionOperation({
|
|
|
137
137
|
}
|
|
138
138
|
});
|
|
139
139
|
const copyPageContent = notionOperation({
|
|
140
|
-
id: "
|
|
140
|
+
id: "notion.copy-notion-page-content",
|
|
141
141
|
name: "Copy Notion Page Content",
|
|
142
142
|
description: "Copy block content from one Notion page into another page",
|
|
143
143
|
input: z.object({
|
|
@@ -154,7 +154,7 @@ const copyPageContent = notionOperation({
|
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
const trashPage = notionOperation({
|
|
157
|
-
id: "
|
|
157
|
+
id: "notion.trash-notion-page",
|
|
158
158
|
name: "Trash Notion Page",
|
|
159
159
|
description: "Move a Notion page to the trash",
|
|
160
160
|
input: z.object({ pageId: z.string().min(1) }),
|
|
@@ -169,7 +169,7 @@ const trashPage = notionOperation({
|
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
const getPageProperty = notionOperation({
|
|
172
|
-
id: "
|
|
172
|
+
id: "notion.get-notion-page-property",
|
|
173
173
|
name: "Get Notion Page Property",
|
|
174
174
|
description: "Retrieve a single Notion page property item by property ID",
|
|
175
175
|
input: z.object({
|
|
@@ -189,7 +189,7 @@ const getPageProperty = notionOperation({
|
|
|
189
189
|
}
|
|
190
190
|
});
|
|
191
191
|
const restorePage = notionOperation({
|
|
192
|
-
id: "
|
|
192
|
+
id: "notion.restore-notion-page",
|
|
193
193
|
name: "Restore Notion Page",
|
|
194
194
|
description: "Restore a trashed Notion page",
|
|
195
195
|
input: z.object({ pageId: z.string().min(1) }),
|
package/dist/search.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { createNotionClient, withRateLimitRetry } from "./client.mjs";
|
|
2
2
|
import { normalizeListMeta, normalizeSearchResult, notionListResponseSchema, notionSearchResultSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as notionOperation } from "./factory-
|
|
3
|
+
import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/search.ts
|
|
7
7
|
const searchWorkspace = notionOperation({
|
|
8
|
-
id: "
|
|
8
|
+
id: "notion.search-notion-workspace",
|
|
9
9
|
name: "Search Notion Workspace",
|
|
10
10
|
description: "Search shared Notion pages or data sources by title",
|
|
11
11
|
input: z.object({
|
package/dist/triggers.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as notion } from "./integration-
|
|
1
|
+
import { t as notion } from "./integration-BdUbYCu5.mjs";
|
|
2
2
|
import { createNotionClient, withRateLimitRetry } from "./client.mjs";
|
|
3
3
|
import { createPollingEvent, notionPollingEventSchema } from "./events.mjs";
|
|
4
4
|
import { z } from "zod";
|
package/dist/users.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { createNotionClient, withRateLimitRetry } from "./client.mjs";
|
|
2
2
|
import { normalizeListMeta, normalizeUser, notionListResponseSchema, notionUserSchema } from "./schemas.mjs";
|
|
3
|
-
import { t as notionOperation } from "./factory-
|
|
3
|
+
import { t as notionOperation } from "./factory-BFy8QmFf.mjs";
|
|
4
4
|
import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
7
7
|
//#region src/users.ts
|
|
8
8
|
const getMe = notionOperation({
|
|
9
|
-
id: "
|
|
9
|
+
id: "notion.get-notion-me",
|
|
10
10
|
name: "Get Notion Bot User",
|
|
11
11
|
description: "Retrieve the bot user associated with the current Notion token",
|
|
12
12
|
input: z.object({}),
|
|
@@ -17,7 +17,7 @@ const getMe = notionOperation({
|
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
const getUser = notionOperation({
|
|
20
|
-
id: "
|
|
20
|
+
id: "notion.get-notion-user",
|
|
21
21
|
name: "Get Notion User",
|
|
22
22
|
description: "Retrieve a Notion user by ID",
|
|
23
23
|
input: z.object({ userId: z.string().min(1) }),
|
|
@@ -28,7 +28,7 @@ const getUser = notionOperation({
|
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
const listUsers = notionOperation({
|
|
31
|
-
id: "
|
|
31
|
+
id: "notion.list-notion-users",
|
|
32
32
|
name: "List Notion Users",
|
|
33
33
|
description: "List users visible to the current Notion integration",
|
|
34
34
|
input: z.object({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/notion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"type": "module",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
],
|
|
78
78
|
"dependencies": {
|
|
79
79
|
"@keystrokehq/credential-connection": "^1.0.0",
|
|
80
|
-
"@keystrokehq/integration-authoring": "^0.0.
|
|
80
|
+
"@keystrokehq/integration-authoring": "^0.0.8",
|
|
81
81
|
"@notionhq/client": "^5.17.0",
|
|
82
82
|
"zod": "^4.3.6"
|
|
83
83
|
},
|