@keystrokehq/notion 0.0.8 → 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.
@@ -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-platform";
17
+ readonly appRef: "notion-official";
18
18
  readonly displayName: "Notion Platform";
19
19
  readonly credentialSetName: "Keystroke Notion Platform App";
20
20
  readonly envShape: {
@@ -1,3 +1,3 @@
1
- import { a as notionOfficialProviderSeed, i as notionAppCredentialSet, n as notionBundle, o as notionWebhookCredentialSet } from "../integration-AVAZpqqY.mjs";
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-BvG2wLPI.mjs";
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: "get_notion_block",
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: "list_notion_block_children",
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: "append_notion_block_children",
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: "update_notion_block",
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: "delete_notion_block",
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-AVAZpqqY.mjs";
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-BvG2wLPI.mjs";
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: "list_notion_comments",
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: "get_notion_comment",
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: "create_notion_comment",
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({
@@ -1,3 +1,3 @@
1
- import { r as notionOfficialIntegration, t as notion } from "./integration-AVAZpqqY.mjs";
1
+ import { r as notionOfficialIntegration, t as notion } from "./integration-BdUbYCu5.mjs";
2
2
 
3
3
  export { notion, notionOfficialIntegration };
@@ -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-BvG2wLPI.mjs";
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: "discover_notion_database_data_sources",
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: "get_notion_data_source",
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: "query_notion_data_source",
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: "create_notion_data_source_entry",
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: "update_notion_data_source_entry",
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({
@@ -1,4 +1,4 @@
1
- import { t as notion } from "./integration-AVAZpqqY.mjs";
1
+ import { t as notion } from "./integration-BdUbYCu5.mjs";
2
2
  import { createOfficialOperationFactory } from "@keystrokehq/integration-authoring/official";
3
3
 
4
4
  //#region src/factory.ts
@@ -15,7 +15,7 @@ const notionAppCredentialSet = new CredentialSet({
15
15
  });
16
16
  const notionOfficialProviderSeed = {
17
17
  provider: "notion",
18
- appRef: "notion-platform",
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-BvG2wLPI.mjs";
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: "get_notion_page",
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: "create_notion_page",
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: "update_notion_page",
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: "copy_notion_page_content",
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: "trash_notion_page",
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: "get_notion_page_property",
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: "restore_notion_page",
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-BvG2wLPI.mjs";
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: "search_notion_workspace",
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-AVAZpqqY.mjs";
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-BvG2wLPI.mjs";
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: "get_notion_me",
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: "get_notion_user",
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: "list_notion_users",
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.8",
3
+ "version": "0.0.10",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -76,8 +76,8 @@
76
76
  "LICENSE"
77
77
  ],
78
78
  "dependencies": {
79
- "@keystrokehq/credential-connection": "^0.0.7",
80
- "@keystrokehq/integration-authoring": "^0.0.7",
79
+ "@keystrokehq/credential-connection": "^1.0.0",
80
+ "@keystrokehq/integration-authoring": "^0.0.8",
81
81
  "@notionhq/client": "^5.17.0",
82
82
  "zod": "^4.3.6"
83
83
  },