@keystrokehq/notion 0.0.5 → 0.0.6-rename-t1.1
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 +6 -6
- package/dist/_official/index.mjs +2 -2
- package/dist/blocks.mjs +1 -1
- package/dist/client.mjs +1 -1
- package/dist/comments.mjs +1 -1
- package/dist/connection.mjs +1 -1
- package/dist/data-sources.mjs +1 -1
- package/dist/{factory-ClakehEF.mjs → factory-BvG2wLPI.mjs} +1 -1
- package/dist/{integration-q-rO2FMC.mjs → integration-AVAZpqqY.mjs} +8 -8
- package/dist/pages.mjs +1 -1
- package/dist/search.mjs +1 -1
- package/dist/triggers.mjs +1 -1
- package/dist/users.mjs +1 -1
- package/package.json +3 -3
|
@@ -12,17 +12,17 @@ declare const notionAppCredentialSet: CredentialSet<"keystroke:notion-app", z.Zo
|
|
|
12
12
|
clientId: z.ZodString;
|
|
13
13
|
clientSecret: z.ZodString;
|
|
14
14
|
}, z.core.$strip>>[] | undefined>;
|
|
15
|
-
declare const
|
|
15
|
+
declare const notionOfficialProviderSeed: {
|
|
16
16
|
readonly provider: "notion";
|
|
17
17
|
readonly appRef: "notion-platform";
|
|
18
18
|
readonly displayName: "Notion Platform";
|
|
19
19
|
readonly credentialSetName: "Keystroke Notion Platform App";
|
|
20
20
|
readonly envShape: {
|
|
21
|
-
readonly
|
|
22
|
-
readonly
|
|
21
|
+
readonly KEYSTROKE_OFFICIAL_NOTION_CLIENT_ID: z.ZodOptional<z.ZodString>;
|
|
22
|
+
readonly KEYSTROKE_OFFICIAL_NOTION_CLIENT_SECRET: z.ZodOptional<z.ZodString>;
|
|
23
23
|
};
|
|
24
|
-
readonly requiredEnvKeys: readonly ["
|
|
25
|
-
readonly externalAppIdEnvKey: "
|
|
24
|
+
readonly requiredEnvKeys: readonly ["KEYSTROKE_OFFICIAL_NOTION_CLIENT_ID", "KEYSTROKE_OFFICIAL_NOTION_CLIENT_SECRET"];
|
|
25
|
+
readonly externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_NOTION_CLIENT_ID";
|
|
26
26
|
readonly buildCredentials: (env: Record<string, string | undefined>) => {
|
|
27
27
|
clientId: string | undefined;
|
|
28
28
|
clientSecret: string | undefined;
|
|
@@ -36,4 +36,4 @@ declare const notionWebhookCredentialSet: CredentialSet<"keystroke:notion-webhoo
|
|
|
36
36
|
}, z.core.$strip>>[] | undefined>;
|
|
37
37
|
type NotionWebhookCredentials = InferCredentialSetAuth<typeof notionWebhookCredentialSet>;
|
|
38
38
|
//#endregion
|
|
39
|
-
export { NotionAppCredentials, NotionWebhookCredentials, notionAppCredentialSet, notionBundle,
|
|
39
|
+
export { NotionAppCredentials, NotionWebhookCredentials, notionAppCredentialSet, notionBundle, notionOfficialProviderSeed, notionWebhookCredentialSet };
|
package/dist/_official/index.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as
|
|
1
|
+
import { a as notionOfficialProviderSeed, i as notionAppCredentialSet, n as notionBundle, o as notionWebhookCredentialSet } from "../integration-AVAZpqqY.mjs";
|
|
2
2
|
|
|
3
|
-
export { notionAppCredentialSet, notionBundle,
|
|
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-BvG2wLPI.mjs";
|
|
4
4
|
import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
package/dist/client.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as notion } from "./integration-
|
|
1
|
+
import { t as notion } from "./integration-AVAZpqqY.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-BvG2wLPI.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
|
|
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-BvG2wLPI.mjs";
|
|
4
4
|
import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
|
@@ -13,20 +13,20 @@ const notionAppCredentialSet = new CredentialSet({
|
|
|
13
13
|
clientSecret: z.string().min(1)
|
|
14
14
|
})
|
|
15
15
|
});
|
|
16
|
-
const
|
|
16
|
+
const notionOfficialProviderSeed = {
|
|
17
17
|
provider: "notion",
|
|
18
18
|
appRef: "notion-platform",
|
|
19
19
|
displayName: "Notion Platform",
|
|
20
20
|
credentialSetName: "Keystroke Notion Platform App",
|
|
21
21
|
envShape: {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
KEYSTROKE_OFFICIAL_NOTION_CLIENT_ID: z.string().optional(),
|
|
23
|
+
KEYSTROKE_OFFICIAL_NOTION_CLIENT_SECRET: z.string().optional()
|
|
24
24
|
},
|
|
25
|
-
requiredEnvKeys: ["
|
|
26
|
-
externalAppIdEnvKey: "
|
|
25
|
+
requiredEnvKeys: ["KEYSTROKE_OFFICIAL_NOTION_CLIENT_ID", "KEYSTROKE_OFFICIAL_NOTION_CLIENT_SECRET"],
|
|
26
|
+
externalAppIdEnvKey: "KEYSTROKE_OFFICIAL_NOTION_CLIENT_ID",
|
|
27
27
|
buildCredentials: (env) => ({
|
|
28
|
-
clientId: env.
|
|
29
|
-
clientSecret: env.
|
|
28
|
+
clientId: env.KEYSTROKE_OFFICIAL_NOTION_CLIENT_ID,
|
|
29
|
+
clientSecret: env.KEYSTROKE_OFFICIAL_NOTION_CLIENT_SECRET
|
|
30
30
|
})
|
|
31
31
|
};
|
|
32
32
|
const notionWebhookCredentialSet = new CredentialSet({
|
|
@@ -90,4 +90,4 @@ const notionBundle = defineOfficialIntegration({
|
|
|
90
90
|
const notion = notionBundle.credentialSet;
|
|
91
91
|
|
|
92
92
|
//#endregion
|
|
93
|
-
export {
|
|
93
|
+
export { notionOfficialProviderSeed as a, notionAppCredentialSet as i, notionBundle as n, notionWebhookCredentialSet as o, notionOfficialIntegration as r, notion as t };
|
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-BvG2wLPI.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
|
|
package/dist/search.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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-BvG2wLPI.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/search.ts
|
package/dist/triggers.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as notion } from "./integration-
|
|
1
|
+
import { t as notion } from "./integration-AVAZpqqY.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,6 +1,6 @@
|
|
|
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-BvG2wLPI.mjs";
|
|
4
4
|
import { r as buildPaginationInput } from "./shared-C6A6JPl3.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keystrokehq/notion",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6-rename-t1.1",
|
|
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.
|
|
80
|
-
"@keystrokehq/integration-authoring": "^0.0.
|
|
79
|
+
"@keystrokehq/credential-connection": "^0.0.5-rename-t1.0",
|
|
80
|
+
"@keystrokehq/integration-authoring": "^0.0.6-rename-t1.0",
|
|
81
81
|
"@notionhq/client": "^5.17.0",
|
|
82
82
|
"zod": "^4.3.6"
|
|
83
83
|
},
|