@notionhq/custom-blocks 0.1.17 → 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.
Files changed (43) hide show
  1. package/dist/bridge/SandboxBridge.d.ts +2 -1
  2. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  3. package/dist/bridge/SandboxBridge.js +7 -5
  4. package/dist/bridge/sandboxClient.d.ts +1 -0
  5. package/dist/bridge/sandboxClient.d.ts.map +1 -1
  6. package/dist/bridge/sandboxClient.js +26 -17
  7. package/dist/init.d.ts.map +1 -1
  8. package/dist/init.js +1 -0
  9. package/dist/protocol/dataSources/dataSource.d.ts +12 -12
  10. package/dist/protocol/dataSources/dataSourcePage.d.ts +1 -1
  11. package/dist/protocol/ids.d.ts +10 -26
  12. package/dist/protocol/ids.d.ts.map +1 -1
  13. package/dist/protocol/ids.js +25 -5
  14. package/dist/protocol/messages/createPage.d.ts +8 -8
  15. package/dist/protocol/messages/createPageResult.d.ts +5 -5
  16. package/dist/protocol/messages/currentUserChanged.d.ts +1 -1
  17. package/dist/protocol/messages/dataSourcesChanged.d.ts +3 -3
  18. package/dist/protocol/messages/getPage.d.ts +6 -6
  19. package/dist/protocol/messages/getUser.d.ts +2 -2
  20. package/dist/protocol/messages/getUser.js +2 -2
  21. package/dist/protocol/messages/hostToSandbox.d.ts +45 -45
  22. package/dist/protocol/messages/init.d.ts +14 -14
  23. package/dist/protocol/messages/listUsers.d.ts +1 -1
  24. package/dist/protocol/messages/pageChanged.d.ts +5 -5
  25. package/dist/protocol/messages/parentChanged.d.ts +4 -4
  26. package/dist/protocol/messages/queryDataSource.d.ts +1 -1
  27. package/dist/protocol/messages/queryDataSourceResult.d.ts +1 -1
  28. package/dist/protocol/messages/sandboxToHost.d.ts +8 -8
  29. package/dist/protocol/messages/updatePage.d.ts +1 -1
  30. package/dist/protocol/messages/updatePageResult.d.ts +5 -5
  31. package/dist/protocol/pages/page.d.ts +10 -10
  32. package/dist/protocol/parent.d.ts +4 -4
  33. package/dist/protocol/users/user.d.ts +4 -7
  34. package/dist/protocol/users/user.d.ts.map +1 -1
  35. package/dist/protocol/users/user.js +2 -1
  36. package/dist/react/standalonePreview.d.ts.map +1 -1
  37. package/dist/react/standalonePreview.js +3 -1
  38. package/dist/version.js +1 -1
  39. package/package.json +1 -1
  40. package/src/bridge/SandboxBridge.ts +6 -6
  41. package/src/bridge/sandboxClient.ts +28 -17
  42. package/src/init.ts +1 -0
  43. package/src/react/standalonePreview.ts +3 -1
@@ -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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionSpaceId, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionSpaceId, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionSpaceId, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>, undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
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.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
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>;
@@ -55,17 +55,17 @@ export declare const sandboxToHostMessageSchema: v.UnionSchema<[v.VariantSchema<
55
55
  }, undefined>], undefined>, v.ObjectSchema<{
56
56
  readonly type: v.LiteralSchema<"queryDataSource", undefined>;
57
57
  readonly subscriptionId: v.StringSchema<undefined>;
58
- readonly dataSourceId: v.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
58
+ readonly dataSourceId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
59
59
  readonly limit: v.NumberSchema<undefined>;
60
60
  }, undefined>, v.ObjectSchema<{
61
61
  readonly type: v.LiteralSchema<"createPage", undefined>;
62
62
  readonly requestId: v.StringSchema<undefined>;
63
63
  readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
64
64
  readonly type: v.LiteralSchema<"page_id", undefined>;
65
- readonly page_id: v.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
65
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
66
66
  }, undefined>, v.ObjectSchema<{
67
67
  readonly type: v.LiteralSchema<"data_source_id", undefined>;
68
- readonly data_source_id: v.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
68
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
69
69
  }, undefined>], undefined>;
70
70
  readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
71
71
  readonly type: v.LiteralSchema<"title", undefined>;
@@ -198,19 +198,19 @@ export declare const sandboxToHostMessageSchema: v.UnionSchema<[v.VariantSchema<
198
198
  readonly type: v.LiteralSchema<"end", undefined>;
199
199
  }, undefined>, v.ObjectSchema<{
200
200
  readonly type: v.LiteralSchema<"before", undefined>;
201
- readonly blockId: v.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
201
+ readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
202
202
  }, undefined>, v.ObjectSchema<{
203
203
  readonly type: v.LiteralSchema<"after", undefined>;
204
- readonly blockId: v.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
204
+ readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
205
205
  }, undefined>], undefined>, undefined>;
206
206
  }, undefined>, v.ObjectSchema<{
207
207
  readonly type: v.LiteralSchema<"getPage", undefined>;
208
208
  readonly requestId: v.StringSchema<undefined>;
209
- readonly pageId: v.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
209
+ readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
210
210
  }, undefined>, v.ObjectSchema<{
211
211
  readonly type: v.LiteralSchema<"getUser", undefined>;
212
212
  readonly requestId: v.StringSchema<undefined>;
213
- readonly userId: v.StringSchema<undefined>;
213
+ readonly userId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
214
214
  }, undefined>, v.ObjectSchema<{
215
215
  readonly type: v.LiteralSchema<"listUsers", undefined>;
216
216
  readonly requestId: v.StringSchema<undefined>;
@@ -219,7 +219,7 @@ export declare const sandboxToHostMessageSchema: v.UnionSchema<[v.VariantSchema<
219
219
  }, undefined>, v.ObjectSchema<{
220
220
  readonly type: v.LiteralSchema<"updatePage", undefined>;
221
221
  readonly requestId: v.StringSchema<undefined>;
222
- readonly pageId: v.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
222
+ readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
223
223
  readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
224
224
  readonly type: v.LiteralSchema<"title", undefined>;
225
225
  readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
@@ -5,7 +5,7 @@ import * as v from "valibot";
5
5
  export declare const updatePageMessageSchema: v.ObjectSchema<{
6
6
  readonly type: v.LiteralSchema<"updatePage", undefined>;
7
7
  readonly requestId: v.StringSchema<undefined>;
8
- readonly pageId: v.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
8
+ readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
9
9
  readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
10
10
  readonly type: v.LiteralSchema<"title", undefined>;
11
11
  readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
@@ -17,22 +17,22 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
17
17
  readonly status: v.LiteralSchema<"success", undefined>;
18
18
  readonly page: v.ObjectSchema<{
19
19
  readonly object: v.LiteralSchema<"page", undefined>;
20
- readonly id: v.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
20
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
21
21
  readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
22
22
  readonly type: v.LiteralSchema<"page_id", undefined>;
23
- readonly page_id: v.CustomSchema<import("../ids.js").NotionPageId, v.ErrorMessage<v.CustomIssue> | undefined>;
23
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
24
24
  }, undefined>, v.ObjectSchema<{
25
25
  readonly type: v.LiteralSchema<"data_source_id", undefined>;
26
- readonly data_source_id: v.CustomSchema<import("../ids.js").NotionDataSourceId, v.ErrorMessage<v.CustomIssue> | undefined>;
26
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
27
27
  }, undefined>, v.ObjectSchema<{
28
28
  readonly type: v.LiteralSchema<"workspace", undefined>;
29
29
  readonly workspace: v.LiteralSchema<true, undefined>;
30
30
  }, undefined>, v.ObjectSchema<{
31
31
  readonly type: v.LiteralSchema<"block_id", undefined>;
32
- readonly block_id: v.CustomSchema<import("../ids.js").NotionBlockId, v.ErrorMessage<v.CustomIssue> | undefined>;
32
+ readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
33
33
  }, undefined>, v.ObjectSchema<{
34
34
  readonly type: v.LiteralSchema<"agent_id", undefined>;
35
- readonly agent_id: v.CustomSchema<import("../ids.js").NotionAgentId, v.ErrorMessage<v.CustomIssue> | undefined>;
35
+ readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
36
36
  }, undefined>], undefined>;
37
37
  readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
38
38
  readonly type: v.LiteralSchema<"title", undefined>;