@notionhq/custom-blocks 0.1.16 → 0.1.18
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/bridge/SandboxBridge.d.ts +3 -3
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/SandboxBridge.js +7 -5
- package/dist/bridge/dataSources/resolveProperty.d.ts +2 -1
- package/dist/bridge/dataSources/resolveProperty.d.ts.map +1 -1
- package/dist/bridge/hostState.d.ts +2 -1
- package/dist/bridge/hostState.d.ts.map +1 -1
- package/dist/bridge/sandboxClient.d.ts +1 -0
- package/dist/bridge/sandboxClient.d.ts.map +1 -1
- package/dist/bridge/sandboxClient.js +26 -17
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +1 -0
- package/dist/protocol/dataSources/dataSource.d.ts +12 -12
- package/dist/protocol/dataSources/dataSourcePage.d.ts +1 -52
- package/dist/protocol/dataSources/dataSourcePage.d.ts.map +1 -1
- package/dist/protocol/dataSources/dataSourcePage.js +1 -3
- package/dist/protocol/ids.d.ts +10 -26
- package/dist/protocol/ids.d.ts.map +1 -1
- package/dist/protocol/ids.js +25 -5
- package/dist/protocol/messages/createPage.d.ts +8 -8
- package/dist/protocol/messages/createPageResult.d.ts +5 -5
- package/dist/protocol/messages/currentUserChanged.d.ts +1 -1
- package/dist/protocol/messages/dataSourcesChanged.d.ts +3 -3
- package/dist/protocol/messages/getPage.d.ts +6 -6
- package/dist/protocol/messages/getUser.d.ts +2 -2
- package/dist/protocol/messages/getUser.js +2 -2
- package/dist/protocol/messages/hostToSandbox.d.ts +45 -45
- package/dist/protocol/messages/init.d.ts +14 -14
- package/dist/protocol/messages/listUsers.d.ts +1 -1
- package/dist/protocol/messages/pageChanged.d.ts +5 -5
- package/dist/protocol/messages/parentChanged.d.ts +4 -4
- package/dist/protocol/messages/queryDataSource.d.ts +1 -1
- package/dist/protocol/messages/queryDataSourceResult.d.ts +1 -1
- package/dist/protocol/messages/sandboxToHost.d.ts +8 -8
- package/dist/protocol/messages/updatePage.d.ts +1 -1
- package/dist/protocol/messages/updatePageResult.d.ts +5 -5
- package/dist/protocol/pages/page.d.ts +10 -24
- package/dist/protocol/pages/page.d.ts.map +1 -1
- package/dist/protocol/parent.d.ts +4 -4
- package/dist/protocol/users/user.d.ts +4 -7
- package/dist/protocol/users/user.d.ts.map +1 -1
- package/dist/protocol/users/user.js +2 -1
- package/dist/react/standalonePreview.d.ts.map +1 -1
- package/dist/react/standalonePreview.js +3 -1
- package/dist/types.d.ts +64 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/src/bridge/SandboxBridge.ts +8 -10
- package/src/bridge/dataSources/resolveProperty.ts +2 -4
- package/src/bridge/hostState.ts +6 -6
- package/src/bridge/sandboxClient.ts +28 -17
- package/src/index.ts +0 -8
- package/src/init.ts +1 -0
- package/src/react/standalonePreview.ts +3 -1
- package/src/types.ts +72 -10
|
@@ -18,22 +18,22 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
18
18
|
/** The newly created page. */
|
|
19
19
|
readonly page: v.ObjectSchema<{
|
|
20
20
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
21
|
-
readonly id: v.
|
|
21
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
22
22
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
23
23
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
24
|
-
readonly page_id: v.
|
|
24
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
25
25
|
}, undefined>, v.ObjectSchema<{
|
|
26
26
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
27
|
-
readonly data_source_id: v.
|
|
27
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
28
28
|
}, undefined>, v.ObjectSchema<{
|
|
29
29
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
30
30
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
31
31
|
}, undefined>, v.ObjectSchema<{
|
|
32
32
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
33
|
-
readonly block_id: v.
|
|
33
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
34
34
|
}, undefined>, v.ObjectSchema<{
|
|
35
35
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
36
|
-
readonly agent_id: v.
|
|
36
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
37
37
|
}, undefined>], undefined>;
|
|
38
38
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
39
39
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
@@ -6,7 +6,7 @@ export declare const currentUserChangedMessageSchema: v.ObjectSchema<{
|
|
|
6
6
|
readonly type: v.LiteralSchema<"currentUserChanged", undefined>;
|
|
7
7
|
readonly currentUser: v.ObjectSchema<{
|
|
8
8
|
readonly object: v.LiteralSchema<"user", undefined>;
|
|
9
|
-
readonly id: v.StringSchema<undefined>;
|
|
9
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
10
10
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
11
11
|
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
12
12
|
readonly type: v.LiteralSchema<"person", undefined>;
|
|
@@ -9,12 +9,12 @@ export declare const dataSourcesChangedMessageSchema: v.ObjectSchema<{
|
|
|
9
9
|
readonly dataSources: v.ObjectSchema<{
|
|
10
10
|
readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
11
11
|
readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
|
|
12
|
-
readonly id: v.
|
|
12
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
13
13
|
readonly table: v.StringSchema<undefined>;
|
|
14
|
-
readonly spaceId: v.OptionalSchema<v.
|
|
14
|
+
readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
|
|
15
15
|
}, undefined>, undefined>;
|
|
16
16
|
readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
|
|
17
|
-
readonly id: v.OptionalSchema<v.
|
|
17
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
|
|
18
18
|
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
19
19
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
20
20
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -14,7 +14,7 @@ export declare const customBlockGetPageErrorInfoSchema: v.ObjectSchema<{
|
|
|
14
14
|
export declare const getPageMessageSchema: v.ObjectSchema<{
|
|
15
15
|
readonly type: v.LiteralSchema<"getPage", undefined>;
|
|
16
16
|
readonly requestId: v.StringSchema<undefined>;
|
|
17
|
-
readonly pageId: v.
|
|
17
|
+
readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
18
18
|
}, undefined>;
|
|
19
19
|
export type GetPageMessage = v.InferOutput<typeof getPageMessageSchema>;
|
|
20
20
|
export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.ObjectSchema<{
|
|
@@ -23,22 +23,22 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
23
23
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
24
24
|
readonly page: v.ObjectSchema<{
|
|
25
25
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
26
|
-
readonly id: v.
|
|
26
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
27
27
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
28
28
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
29
|
-
readonly page_id: v.
|
|
29
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
30
30
|
}, undefined>, v.ObjectSchema<{
|
|
31
31
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
32
|
-
readonly data_source_id: v.
|
|
32
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
33
33
|
}, undefined>, v.ObjectSchema<{
|
|
34
34
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
35
35
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
36
36
|
}, undefined>, v.ObjectSchema<{
|
|
37
37
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
38
|
-
readonly block_id: v.
|
|
38
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
39
39
|
}, undefined>, v.ObjectSchema<{
|
|
40
40
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
41
|
-
readonly agent_id: v.
|
|
41
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
42
42
|
}, undefined>], undefined>;
|
|
43
43
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
44
44
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
@@ -14,7 +14,7 @@ export declare const customBlockGetUserErrorInfoSchema: v.ObjectSchema<{
|
|
|
14
14
|
export declare const getUserMessageSchema: v.ObjectSchema<{
|
|
15
15
|
readonly type: v.LiteralSchema<"getUser", undefined>;
|
|
16
16
|
readonly requestId: v.StringSchema<undefined>;
|
|
17
|
-
readonly userId: v.StringSchema<undefined>;
|
|
17
|
+
readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
18
18
|
}, undefined>;
|
|
19
19
|
export type GetUserMessage = v.InferOutput<typeof getUserMessageSchema>;
|
|
20
20
|
export declare const getUserResultMessageSchema: v.VariantSchema<"status", [v.ObjectSchema<{
|
|
@@ -23,7 +23,7 @@ export declare const getUserResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
23
23
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
24
24
|
readonly user: v.ObjectSchema<{
|
|
25
25
|
readonly object: v.LiteralSchema<"user", undefined>;
|
|
26
|
-
readonly id: v.StringSchema<undefined>;
|
|
26
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
27
27
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
28
28
|
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
29
29
|
readonly type: v.LiteralSchema<"person", undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { notionUserSchema } from "../users/user.js";
|
|
2
|
+
import { notionUserIdSchema, notionUserSchema } from "../users/user.js";
|
|
3
3
|
// The schema accepts any string code. The type lists known codes for
|
|
4
4
|
// autocomplete, with an open string fallback for newer senders.
|
|
5
5
|
export const customBlockGetUserErrorCodeSchema = v.string();
|
|
@@ -14,7 +14,7 @@ export const customBlockGetUserErrorInfoSchema = v.object({
|
|
|
14
14
|
export const getUserMessageSchema = v.object({
|
|
15
15
|
type: v.literal("getUser"),
|
|
16
16
|
requestId: v.string(),
|
|
17
|
-
userId:
|
|
17
|
+
userId: notionUserIdSchema,
|
|
18
18
|
});
|
|
19
19
|
export const getUserResultMessageSchema = v.variant("status", [
|
|
20
20
|
v.object({
|
|
@@ -8,40 +8,40 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
8
8
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
9
9
|
readonly theme: v.PicklistSchema<["light", "dark"], undefined>;
|
|
10
10
|
readonly contrastMode: v.OptionalSchema<v.PicklistSchema<["standard", "high"], undefined>, "standard" | "high">;
|
|
11
|
-
readonly blockId: v.
|
|
11
|
+
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
12
12
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
13
13
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
14
|
-
readonly page_id: v.
|
|
14
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
15
15
|
}, undefined>, v.ObjectSchema<{
|
|
16
16
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
17
|
-
readonly data_source_id: v.
|
|
17
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
18
18
|
}, undefined>, v.ObjectSchema<{
|
|
19
19
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
20
20
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
21
21
|
}, undefined>, v.ObjectSchema<{
|
|
22
22
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
23
|
-
readonly block_id: v.
|
|
23
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
24
24
|
}, undefined>, v.ObjectSchema<{
|
|
25
25
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
26
|
-
readonly agent_id: v.
|
|
26
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
27
27
|
}, undefined>], undefined>;
|
|
28
28
|
readonly page: v.ObjectSchema<{
|
|
29
|
-
readonly id: v.
|
|
29
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
30
30
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
31
31
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
32
|
-
readonly page_id: v.
|
|
32
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
33
33
|
}, undefined>, v.ObjectSchema<{
|
|
34
34
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
35
|
-
readonly data_source_id: v.
|
|
35
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
36
36
|
}, undefined>, v.ObjectSchema<{
|
|
37
37
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
38
38
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
39
39
|
}, undefined>, v.ObjectSchema<{
|
|
40
40
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
41
|
-
readonly block_id: v.
|
|
41
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
42
42
|
}, undefined>, v.ObjectSchema<{
|
|
43
43
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
44
|
-
readonly agent_id: v.
|
|
44
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
45
45
|
}, undefined>], undefined>;
|
|
46
46
|
}, undefined>;
|
|
47
47
|
readonly manifest: v.ObjectSchema<{
|
|
@@ -66,12 +66,12 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
66
66
|
readonly dataSources: v.ObjectSchema<{
|
|
67
67
|
readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
68
68
|
readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
|
|
69
|
-
readonly id: v.
|
|
69
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
70
70
|
readonly table: v.StringSchema<undefined>;
|
|
71
|
-
readonly spaceId: v.OptionalSchema<v.
|
|
71
|
+
readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
|
|
72
72
|
}, undefined>, undefined>;
|
|
73
73
|
readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
|
|
74
|
-
readonly id: v.OptionalSchema<v.
|
|
74
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
|
|
75
75
|
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
76
76
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
77
77
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -212,7 +212,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
212
212
|
}, undefined>;
|
|
213
213
|
readonly currentUser: v.ObjectSchema<{
|
|
214
214
|
readonly object: v.LiteralSchema<"user", undefined>;
|
|
215
|
-
readonly id: v.StringSchema<undefined>;
|
|
215
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
216
216
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
217
217
|
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
218
218
|
readonly type: v.LiteralSchema<"person", undefined>;
|
|
@@ -239,46 +239,46 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
239
239
|
readonly type: v.LiteralSchema<"parentChanged", undefined>;
|
|
240
240
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
241
241
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
242
|
-
readonly page_id: v.
|
|
242
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
243
243
|
}, undefined>, v.ObjectSchema<{
|
|
244
244
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
245
|
-
readonly data_source_id: v.
|
|
245
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
246
246
|
}, undefined>, v.ObjectSchema<{
|
|
247
247
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
248
248
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
249
249
|
}, undefined>, v.ObjectSchema<{
|
|
250
250
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
251
|
-
readonly block_id: v.
|
|
251
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
252
252
|
}, undefined>, v.ObjectSchema<{
|
|
253
253
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
254
|
-
readonly agent_id: v.
|
|
254
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
255
255
|
}, undefined>], undefined>;
|
|
256
256
|
}, undefined>, v.ObjectSchema<{
|
|
257
257
|
readonly type: v.LiteralSchema<"pageChanged", undefined>;
|
|
258
258
|
readonly page: v.ObjectSchema<{
|
|
259
|
-
readonly id: v.
|
|
259
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
260
260
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
261
261
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
262
|
-
readonly page_id: v.
|
|
262
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
263
263
|
}, undefined>, v.ObjectSchema<{
|
|
264
264
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
265
|
-
readonly data_source_id: v.
|
|
265
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
266
266
|
}, undefined>, v.ObjectSchema<{
|
|
267
267
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
268
268
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
269
269
|
}, undefined>, v.ObjectSchema<{
|
|
270
270
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
271
|
-
readonly block_id: v.
|
|
271
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
272
272
|
}, undefined>, v.ObjectSchema<{
|
|
273
273
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
274
|
-
readonly agent_id: v.
|
|
274
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
275
275
|
}, undefined>], undefined>;
|
|
276
276
|
}, undefined>;
|
|
277
277
|
}, undefined>, v.ObjectSchema<{
|
|
278
278
|
readonly type: v.LiteralSchema<"currentUserChanged", undefined>;
|
|
279
279
|
readonly currentUser: v.ObjectSchema<{
|
|
280
280
|
readonly object: v.LiteralSchema<"user", undefined>;
|
|
281
|
-
readonly id: v.StringSchema<undefined>;
|
|
281
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
282
282
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
283
283
|
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
284
284
|
readonly type: v.LiteralSchema<"person", undefined>;
|
|
@@ -291,12 +291,12 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
291
291
|
readonly dataSources: v.ObjectSchema<{
|
|
292
292
|
readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
293
293
|
readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
|
|
294
|
-
readonly id: v.
|
|
294
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
295
295
|
readonly table: v.StringSchema<undefined>;
|
|
296
|
-
readonly spaceId: v.OptionalSchema<v.
|
|
296
|
+
readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
|
|
297
297
|
}, undefined>, undefined>;
|
|
298
298
|
readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
|
|
299
|
-
readonly id: v.OptionalSchema<v.
|
|
299
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
|
|
300
300
|
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
301
301
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
302
302
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -440,7 +440,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
440
440
|
readonly subscriptionId: v.StringSchema<undefined>;
|
|
441
441
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
442
442
|
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
443
|
-
readonly id: v.
|
|
443
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
444
444
|
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
445
445
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
446
446
|
readonly start_date: v.StringSchema<undefined>;
|
|
@@ -519,22 +519,22 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
519
519
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
520
520
|
readonly page: v.ObjectSchema<{
|
|
521
521
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
522
|
-
readonly id: v.
|
|
522
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
523
523
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
524
524
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
525
|
-
readonly page_id: v.
|
|
525
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
526
526
|
}, undefined>, v.ObjectSchema<{
|
|
527
527
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
528
|
-
readonly data_source_id: v.
|
|
528
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
529
529
|
}, undefined>, v.ObjectSchema<{
|
|
530
530
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
531
531
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
532
532
|
}, undefined>, v.ObjectSchema<{
|
|
533
533
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
534
|
-
readonly block_id: v.
|
|
534
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
535
535
|
}, undefined>, v.ObjectSchema<{
|
|
536
536
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
537
|
-
readonly agent_id: v.
|
|
537
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
538
538
|
}, undefined>], undefined>;
|
|
539
539
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
540
540
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
@@ -716,22 +716,22 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
716
716
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
717
717
|
readonly page: v.ObjectSchema<{
|
|
718
718
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
719
|
-
readonly id: v.
|
|
719
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
720
720
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
721
721
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
722
|
-
readonly page_id: v.
|
|
722
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
723
723
|
}, undefined>, v.ObjectSchema<{
|
|
724
724
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
725
|
-
readonly data_source_id: v.
|
|
725
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
726
726
|
}, undefined>, v.ObjectSchema<{
|
|
727
727
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
728
728
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
729
729
|
}, undefined>, v.ObjectSchema<{
|
|
730
730
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
731
|
-
readonly block_id: v.
|
|
731
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
732
732
|
}, undefined>, v.ObjectSchema<{
|
|
733
733
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
734
|
-
readonly agent_id: v.
|
|
734
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
735
735
|
}, undefined>], undefined>;
|
|
736
736
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
737
737
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
@@ -913,7 +913,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
913
913
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
914
914
|
readonly user: v.ObjectSchema<{
|
|
915
915
|
readonly object: v.LiteralSchema<"user", undefined>;
|
|
916
|
-
readonly id: v.StringSchema<undefined>;
|
|
916
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
917
917
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
918
918
|
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
919
919
|
readonly type: v.LiteralSchema<"person", undefined>;
|
|
@@ -938,7 +938,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
938
938
|
readonly object: v.LiteralSchema<"list", undefined>;
|
|
939
939
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
940
940
|
readonly object: v.LiteralSchema<"user", undefined>;
|
|
941
|
-
readonly id: v.StringSchema<undefined>;
|
|
941
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
942
942
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
943
943
|
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
944
944
|
readonly type: v.LiteralSchema<"person", undefined>;
|
|
@@ -966,22 +966,22 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
966
966
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
967
967
|
readonly page: v.ObjectSchema<{
|
|
968
968
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
969
|
-
readonly id: v.
|
|
969
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
970
970
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
971
971
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
972
|
-
readonly page_id: v.
|
|
972
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
973
973
|
}, undefined>, v.ObjectSchema<{
|
|
974
974
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
975
|
-
readonly data_source_id: v.
|
|
975
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
976
976
|
}, undefined>, v.ObjectSchema<{
|
|
977
977
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
978
978
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
979
979
|
}, undefined>, v.ObjectSchema<{
|
|
980
980
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
981
|
-
readonly block_id: v.
|
|
981
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
982
982
|
}, undefined>, v.ObjectSchema<{
|
|
983
983
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
984
|
-
readonly agent_id: v.
|
|
984
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
985
985
|
}, undefined>], undefined>;
|
|
986
986
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
987
987
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
@@ -34,40 +34,40 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
34
34
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
35
35
|
readonly theme: v.PicklistSchema<["light", "dark"], undefined>;
|
|
36
36
|
readonly contrastMode: v.OptionalSchema<v.PicklistSchema<["standard", "high"], undefined>, "standard" | "high">;
|
|
37
|
-
readonly blockId: v.
|
|
37
|
+
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
38
38
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
39
39
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
40
|
-
readonly page_id: v.
|
|
40
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
41
41
|
}, undefined>, v.ObjectSchema<{
|
|
42
42
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
43
|
-
readonly data_source_id: v.
|
|
43
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
44
44
|
}, undefined>, v.ObjectSchema<{
|
|
45
45
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
46
46
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
47
47
|
}, undefined>, v.ObjectSchema<{
|
|
48
48
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
49
|
-
readonly block_id: v.
|
|
49
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
50
50
|
}, undefined>, v.ObjectSchema<{
|
|
51
51
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
52
|
-
readonly agent_id: v.
|
|
52
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
53
53
|
}, undefined>], undefined>;
|
|
54
54
|
readonly page: v.ObjectSchema<{
|
|
55
|
-
readonly id: v.
|
|
55
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
56
56
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
57
57
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
58
|
-
readonly page_id: v.
|
|
58
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
59
59
|
}, undefined>, v.ObjectSchema<{
|
|
60
60
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
61
|
-
readonly data_source_id: v.
|
|
61
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
62
62
|
}, undefined>, v.ObjectSchema<{
|
|
63
63
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
64
64
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
65
65
|
}, undefined>, v.ObjectSchema<{
|
|
66
66
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
67
|
-
readonly block_id: v.
|
|
67
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
68
68
|
}, undefined>, v.ObjectSchema<{
|
|
69
69
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
70
|
-
readonly agent_id: v.
|
|
70
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
71
71
|
}, undefined>], undefined>;
|
|
72
72
|
}, undefined>;
|
|
73
73
|
readonly manifest: v.ObjectSchema<{
|
|
@@ -92,12 +92,12 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
92
92
|
readonly dataSources: v.ObjectSchema<{
|
|
93
93
|
readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
94
94
|
readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
|
|
95
|
-
readonly id: v.
|
|
95
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
96
96
|
readonly table: v.StringSchema<undefined>;
|
|
97
|
-
readonly spaceId: v.OptionalSchema<v.
|
|
97
|
+
readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
|
|
98
98
|
}, undefined>, undefined>;
|
|
99
99
|
readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
|
|
100
|
-
readonly id: v.OptionalSchema<v.
|
|
100
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
|
|
101
101
|
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
102
102
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
103
103
|
readonly name: v.StringSchema<undefined>;
|
|
@@ -238,7 +238,7 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
238
238
|
}, undefined>;
|
|
239
239
|
readonly currentUser: v.ObjectSchema<{
|
|
240
240
|
readonly object: v.LiteralSchema<"user", undefined>;
|
|
241
|
-
readonly id: v.StringSchema<undefined>;
|
|
241
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
242
242
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
243
243
|
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
244
244
|
readonly type: v.LiteralSchema<"person", undefined>;
|
|
@@ -26,7 +26,7 @@ export declare const listUsersResultMessageSchema: v.VariantSchema<"status", [v.
|
|
|
26
26
|
readonly object: v.LiteralSchema<"list", undefined>;
|
|
27
27
|
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
28
28
|
readonly object: v.LiteralSchema<"user", undefined>;
|
|
29
|
-
readonly id: v.StringSchema<undefined>;
|
|
29
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
30
30
|
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
31
31
|
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
32
32
|
readonly type: v.LiteralSchema<"person", undefined>;
|
|
@@ -5,22 +5,22 @@ import * as v from "valibot";
|
|
|
5
5
|
export declare const pageChangedMessageSchema: v.ObjectSchema<{
|
|
6
6
|
readonly type: v.LiteralSchema<"pageChanged", undefined>;
|
|
7
7
|
readonly page: v.ObjectSchema<{
|
|
8
|
-
readonly id: v.
|
|
8
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
9
9
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
10
10
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
11
|
-
readonly page_id: v.
|
|
11
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
12
12
|
}, undefined>, v.ObjectSchema<{
|
|
13
13
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
14
|
-
readonly data_source_id: v.
|
|
14
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
15
15
|
}, undefined>, v.ObjectSchema<{
|
|
16
16
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
17
17
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
18
18
|
}, undefined>, v.ObjectSchema<{
|
|
19
19
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
20
|
-
readonly block_id: v.
|
|
20
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
21
21
|
}, undefined>, v.ObjectSchema<{
|
|
22
22
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
23
|
-
readonly agent_id: v.
|
|
23
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
24
24
|
}, undefined>], undefined>;
|
|
25
25
|
}, undefined>;
|
|
26
26
|
}, undefined>;
|
|
@@ -6,19 +6,19 @@ export declare const parentChangedMessageSchema: v.ObjectSchema<{
|
|
|
6
6
|
readonly type: v.LiteralSchema<"parentChanged", undefined>;
|
|
7
7
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
8
8
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
9
|
-
readonly page_id: v.
|
|
9
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
10
10
|
}, undefined>, v.ObjectSchema<{
|
|
11
11
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
12
|
-
readonly data_source_id: v.
|
|
12
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
13
13
|
}, undefined>, v.ObjectSchema<{
|
|
14
14
|
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
15
15
|
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
16
16
|
}, undefined>, v.ObjectSchema<{
|
|
17
17
|
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
18
|
-
readonly block_id: v.
|
|
18
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
19
19
|
}, undefined>, v.ObjectSchema<{
|
|
20
20
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
21
|
-
readonly agent_id: v.
|
|
21
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
22
22
|
}, undefined>], undefined>;
|
|
23
23
|
}, undefined>;
|
|
24
24
|
export type ParentChangedMessage = v.InferOutput<typeof parentChangedMessageSchema>;
|
|
@@ -8,7 +8,7 @@ export declare const queryDataSourceMessageSchema: v.ObjectSchema<{
|
|
|
8
8
|
/** Stable for the lifetime of this query subscription. */
|
|
9
9
|
readonly subscriptionId: v.StringSchema<undefined>;
|
|
10
10
|
/** The raw Notion data source ID to read from. */
|
|
11
|
-
readonly dataSourceId: v.
|
|
11
|
+
readonly dataSourceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
12
12
|
/** The number of items to return in each subscription update. */
|
|
13
13
|
readonly limit: v.NumberSchema<undefined>;
|
|
14
14
|
}, undefined>;
|
|
@@ -16,7 +16,7 @@ export declare const queryDataSourceResultMessageSchema: v.VariantSchema<"status
|
|
|
16
16
|
readonly subscriptionId: v.StringSchema<undefined>;
|
|
17
17
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
18
18
|
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
19
|
-
readonly id: v.
|
|
19
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
20
20
|
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
21
21
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
22
22
|
readonly start_date: v.StringSchema<undefined>;
|