@notionhq/custom-blocks 0.4.0 → 0.5.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.
Files changed (133) hide show
  1. package/dist/bridge/SandboxBridge.d.ts +0 -16
  2. package/dist/bridge/SandboxBridge.d.ts.map +1 -1
  3. package/dist/bridge/SandboxBridge.js +2 -41
  4. package/dist/bridge/parseHostToSandboxMessage.d.ts +3658 -0
  5. package/dist/bridge/parseHostToSandboxMessage.d.ts.map +1 -0
  6. package/dist/bridge/parseHostToSandboxMessage.js +47 -0
  7. package/dist/dataSources/bridge/resolveDataSourceQuery.js +3 -3
  8. package/dist/dataSources/bridge/resolveDataSources.js +5 -5
  9. package/dist/dataSources/filters/resolveFilter.d.ts.map +1 -1
  10. package/dist/dataSources/filters/resolveFilter.js +13 -3
  11. package/dist/dataSources/filters/types.d.ts +9 -3
  12. package/dist/dataSources/filters/types.d.ts.map +1 -1
  13. package/dist/dataSources/properties/resolvePropertyAddress.js +1 -1
  14. package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.js +1 -1
  15. package/dist/dataSources/resolvePageDataSource.js +2 -2
  16. package/dist/dataSources/subscribeToDataSource.d.ts +1 -4
  17. package/dist/dataSources/subscribeToDataSource.d.ts.map +1 -1
  18. package/dist/dataSources/subscribeToDataSource.js +2 -3
  19. package/dist/files/files.d.ts +2 -0
  20. package/dist/files/files.d.ts.map +1 -0
  21. package/dist/files/files.js +1 -0
  22. package/dist/files/icons.d.ts +2 -0
  23. package/dist/files/icons.d.ts.map +1 -0
  24. package/dist/files/icons.js +1 -0
  25. package/dist/index.d.ts +4 -4
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/initialization/getInitBindingError.js +2 -2
  28. package/dist/manifest/types.d.ts +4 -3
  29. package/dist/manifest/types.d.ts.map +1 -1
  30. package/dist/pages/bridge/getPageForDataSource.js +1 -1
  31. package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts +4 -1
  32. package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts.map +1 -1
  33. package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.d.ts.map +1 -1
  34. package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.js +0 -2
  35. package/dist/pages/bridge/updatePage.js +1 -1
  36. package/dist/pages/properties/getPropertyByKey.js +2 -2
  37. package/dist/pages/types.d.ts +8 -10
  38. package/dist/pages/types.d.ts.map +1 -1
  39. package/dist/protocol/compatibility/protocol3To10/dataSourceBindings.d.ts +530 -0
  40. package/dist/protocol/compatibility/protocol3To10/dataSourceBindings.js +25 -0
  41. package/dist/protocol/compatibility/protocol3To5/bridgePage.d.ts +6 -7
  42. package/dist/protocol/compatibility/protocol3To5/bridgePage.js +3 -3
  43. package/dist/protocol/context/containingPage.d.ts +3 -0
  44. package/dist/protocol/context/messages/pageChanged.d.ts +3 -0
  45. package/dist/protocol/context/messages/parentChanged.d.ts +3 -0
  46. package/dist/protocol/context/parent.d.ts +3 -0
  47. package/dist/protocol/context/parent.js +6 -1
  48. package/dist/protocol/dataSources/bridgeDataSourceBinding.d.ts +3 -7
  49. package/dist/protocol/dataSources/bridgeDataSourceBinding.js +5 -5
  50. package/dist/protocol/dataSources/bridgeDataSourceBindings.d.ts +2 -6
  51. package/dist/protocol/dataSources/{collectionPointer.d.ts → dataSourcePointer.d.ts} +2 -2
  52. package/dist/protocol/dataSources/{collectionPointer.js → dataSourcePointer.js} +1 -1
  53. package/dist/protocol/dataSources/{collectionSchema.d.ts → dataSourceSchema.d.ts} +2 -6
  54. package/dist/protocol/dataSources/{collectionSchema.js → dataSourceSchema.js} +1 -1
  55. package/dist/protocol/dataSources/filters/bridgeDataSourceFilter.d.ts +1458 -12
  56. package/dist/protocol/dataSources/filters/bridgeDataSourceFilterCondition.d.ts +729 -6
  57. package/dist/protocol/dataSources/filters/bridgeDataSourceFilterCondition.js +14 -2
  58. package/dist/protocol/dataSources/filters/peopleFilterOperator.d.ts +3 -3
  59. package/dist/protocol/dataSources/filters/peopleFilterOperator.js +1 -1
  60. package/dist/protocol/dataSources/filters/timestampFilterOperator.d.ts +354 -0
  61. package/dist/protocol/dataSources/filters/timestampFilterOperator.js +4 -0
  62. package/dist/protocol/dataSources/messages/dataSourcesChanged.d.ts +2 -6
  63. package/dist/protocol/dataSources/messages/queryDataSource.d.ts +1470 -26
  64. package/dist/protocol/dataSources/notionDataSource.d.ts +3 -11
  65. package/dist/protocol/dataSources/notionDataSource.js +5 -5
  66. package/dist/protocol/dataSources/properties/propertySchema.d.ts +4 -9
  67. package/dist/protocol/dataSources/properties/propertySchema.js +2 -4
  68. package/dist/protocol/dataSources/resolveDataSourceBinding.d.ts +4 -4
  69. package/dist/protocol/dataSources/resolveDataSourceBinding.js +2 -2
  70. package/dist/protocol/files.d.ts +32 -0
  71. package/dist/protocol/files.js +17 -0
  72. package/dist/protocol/handshake/connect.d.ts +1 -1
  73. package/dist/protocol/handshake/init.d.ts +9 -7
  74. package/dist/protocol/icons.d.ts +22 -7
  75. package/dist/protocol/icons.js +19 -7
  76. package/dist/protocol/index.d.ts +16 -14
  77. package/dist/protocol/index.js +10 -7
  78. package/dist/protocol/manifest/manifest.d.ts +9 -9
  79. package/dist/protocol/manifest/manifest.js +7 -7
  80. package/dist/protocol/messages/hostToSandbox.d.ts +100 -103
  81. package/dist/protocol/messages/sandboxToHost.d.ts +1471 -37
  82. package/dist/protocol/pages/bridgePage.d.ts +6 -7
  83. package/dist/protocol/pages/bridgePage.js +3 -3
  84. package/dist/protocol/pages/messages/createPage.d.ts +547 -40
  85. package/dist/protocol/pages/messages/createPage.js +27 -15
  86. package/dist/protocol/pages/messages/getPage.d.ts +18 -21
  87. package/dist/protocol/pages/messages/updatePage.d.ts +21 -28
  88. package/dist/protocol/pages/messages/updatePage.js +3 -3
  89. package/dist/protocol/pages/pageAppearance.d.ts +5 -59
  90. package/dist/protocol/pages/pageAppearance.js +11 -40
  91. package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +4 -12
  92. package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +2 -6
  93. package/dist/protocol/pages/properties/bridgePagePropertyValue.js +2 -7
  94. package/dist/protocol/utils/ids.d.ts +2 -0
  95. package/dist/protocol/utils/ids.js +1 -0
  96. package/dist/protocol/utils/protocolVersion.d.ts +2 -1
  97. package/dist/protocol/utils/protocolVersion.js +3 -1
  98. package/dist/react/NotionCustomBlock.d.ts.map +1 -1
  99. package/dist/react/NotionCustomBlock.js +1 -15
  100. package/dist/utils/version.js +1 -1
  101. package/docs/data-sources.md +75 -76
  102. package/docs/deployment.md +4 -5
  103. package/docs/pages.md +90 -56
  104. package/package.json +1 -1
  105. package/src/bridge/SandboxBridge.ts +3 -58
  106. package/src/bridge/parseHostToSandboxMessage.ts +54 -0
  107. package/src/dataSources/bridge/resolveDataSourceQuery.ts +3 -3
  108. package/src/dataSources/bridge/resolveDataSources.ts +6 -6
  109. package/src/dataSources/filters/resolveFilter.ts +12 -3
  110. package/src/dataSources/filters/types.ts +7 -4
  111. package/src/dataSources/properties/resolvePropertyAddress.ts +1 -1
  112. package/src/dataSources/properties/resolvePropertyWriteMapForDataSource.ts +1 -1
  113. package/src/dataSources/resolvePageDataSource.ts +2 -2
  114. package/src/dataSources/subscribeToDataSource.ts +7 -19
  115. package/src/files/files.ts +5 -0
  116. package/src/files/icons.ts +9 -0
  117. package/src/index.ts +6 -11
  118. package/src/initialization/getInitBindingError.ts +2 -2
  119. package/src/manifest/types.ts +9 -3
  120. package/src/pages/bridge/getPageForDataSource.ts +1 -1
  121. package/src/pages/bridge/toNotionPagePropertyFromBridgeProperty.ts +0 -2
  122. package/src/pages/bridge/updatePage.ts +1 -1
  123. package/src/pages/properties/getPropertyByKey.ts +2 -2
  124. package/src/pages/types.ts +9 -13
  125. package/src/react/NotionCustomBlock.tsx +1 -16
  126. package/dist/protocol/dataSources/filters/createdByFilterOperator.d.ts +0 -17
  127. package/dist/protocol/dataSources/filters/createdByFilterOperator.js +0 -11
  128. package/dist/protocol/pages/properties/fileInput.d.ts +0 -16
  129. package/dist/protocol/pages/properties/fileInput.js +0 -16
  130. package/dist/react/DebugMessageLog.d.ts +0 -2
  131. package/dist/react/DebugMessageLog.d.ts.map +0 -1
  132. package/dist/react/DebugMessageLog.js +0 -23
  133. package/src/react/DebugMessageLog.tsx +0 -34
@@ -34,6 +34,9 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
34
34
  }, undefined>, v.ObjectSchema<{
35
35
  readonly type: v.LiteralSchema<"agent_id", undefined>;
36
36
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
37
+ }, undefined>, v.ObjectSchema<{
38
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
39
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
37
40
  }, undefined>, v.ObjectSchema<{
38
41
  readonly type: v.LiteralSchema<"unavailable", undefined>;
39
42
  }, undefined>], undefined>;
@@ -176,17 +179,17 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
176
179
  readonly type: v.LiteralSchema<"files", undefined>;
177
180
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
178
181
  readonly type: v.LiteralSchema<"external", undefined>;
179
- readonly name: v.StringSchema<undefined>;
180
182
  readonly external: v.ObjectSchema<{
181
183
  readonly url: v.StringSchema<undefined>;
182
184
  }, undefined>;
185
+ readonly name: v.StringSchema<undefined>;
183
186
  }, undefined>, v.ObjectSchema<{
184
187
  readonly type: v.LiteralSchema<"file", undefined>;
185
- readonly name: v.StringSchema<undefined>;
186
188
  readonly file: v.ObjectSchema<{
187
189
  readonly url: v.StringSchema<undefined>;
188
190
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
189
191
  }, undefined>;
192
+ readonly name: v.StringSchema<undefined>;
190
193
  }, undefined>], undefined>, undefined>;
191
194
  }, undefined>, v.ObjectSchema<{
192
195
  readonly id: v.StringSchema<undefined>;
@@ -235,10 +238,6 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
235
238
  readonly id: v.StringSchema<undefined>;
236
239
  readonly type: v.LiteralSchema<"formula", undefined>;
237
240
  readonly formula: v.StringSchema<undefined>;
238
- }, undefined>, v.ObjectSchema<{
239
- readonly id: v.StringSchema<undefined>;
240
- readonly type: v.LiteralSchema<"location", undefined>;
241
- readonly location: v.StringSchema<undefined>;
242
241
  }, undefined>, v.ObjectSchema<{
243
242
  readonly id: v.StringSchema<undefined>;
244
243
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -264,7 +263,7 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
264
263
  readonly type: v.LiteralSchema<"icon", undefined>;
265
264
  readonly icon: v.LooseObjectSchema<{
266
265
  readonly name: v.StringSchema<undefined>;
267
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
266
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
268
267
  }, undefined>;
269
268
  }, undefined>, v.ObjectSchema<{
270
269
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -338,6 +337,9 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
338
337
  }, undefined>, v.ObjectSchema<{
339
338
  readonly type: v.LiteralSchema<"agent_id", undefined>;
340
339
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
340
+ }, undefined>, v.ObjectSchema<{
341
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
342
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
341
343
  }, undefined>, v.ObjectSchema<{
342
344
  readonly type: v.LiteralSchema<"unavailable", undefined>;
343
345
  }, undefined>], undefined>;
@@ -480,17 +482,17 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
480
482
  readonly type: v.LiteralSchema<"files", undefined>;
481
483
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
482
484
  readonly type: v.LiteralSchema<"external", undefined>;
483
- readonly name: v.StringSchema<undefined>;
484
485
  readonly external: v.ObjectSchema<{
485
486
  readonly url: v.StringSchema<undefined>;
486
487
  }, undefined>;
488
+ readonly name: v.StringSchema<undefined>;
487
489
  }, undefined>, v.ObjectSchema<{
488
490
  readonly type: v.LiteralSchema<"file", undefined>;
489
- readonly name: v.StringSchema<undefined>;
490
491
  readonly file: v.ObjectSchema<{
491
492
  readonly url: v.StringSchema<undefined>;
492
493
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
493
494
  }, undefined>;
495
+ readonly name: v.StringSchema<undefined>;
494
496
  }, undefined>], undefined>, undefined>;
495
497
  }, undefined>, v.ObjectSchema<{
496
498
  readonly id: v.StringSchema<undefined>;
@@ -539,10 +541,6 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
539
541
  readonly id: v.StringSchema<undefined>;
540
542
  readonly type: v.LiteralSchema<"formula", undefined>;
541
543
  readonly formula: v.StringSchema<undefined>;
542
- }, undefined>, v.ObjectSchema<{
543
- readonly id: v.StringSchema<undefined>;
544
- readonly type: v.LiteralSchema<"location", undefined>;
545
- readonly location: v.StringSchema<undefined>;
546
544
  }, undefined>, v.ObjectSchema<{
547
545
  readonly id: v.StringSchema<undefined>;
548
546
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -568,7 +566,7 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
568
566
  readonly type: v.LiteralSchema<"icon", undefined>;
569
567
  readonly icon: v.LooseObjectSchema<{
570
568
  readonly name: v.StringSchema<undefined>;
571
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
569
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
572
570
  }, undefined>;
573
571
  }, undefined>, v.ObjectSchema<{
574
572
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -626,6 +624,9 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
626
624
  }, undefined>, v.ObjectSchema<{
627
625
  readonly type: v.LiteralSchema<"agent_id", undefined>;
628
626
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
627
+ }, undefined>, v.ObjectSchema<{
628
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
629
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
629
630
  }, undefined>, v.ObjectSchema<{
630
631
  readonly type: v.LiteralSchema<"unavailable", undefined>;
631
632
  }, undefined>], undefined>;
@@ -768,17 +769,17 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
768
769
  readonly type: v.LiteralSchema<"files", undefined>;
769
770
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
770
771
  readonly type: v.LiteralSchema<"external", undefined>;
771
- readonly name: v.StringSchema<undefined>;
772
772
  readonly external: v.ObjectSchema<{
773
773
  readonly url: v.StringSchema<undefined>;
774
774
  }, undefined>;
775
+ readonly name: v.StringSchema<undefined>;
775
776
  }, undefined>, v.ObjectSchema<{
776
777
  readonly type: v.LiteralSchema<"file", undefined>;
777
- readonly name: v.StringSchema<undefined>;
778
778
  readonly file: v.ObjectSchema<{
779
779
  readonly url: v.StringSchema<undefined>;
780
780
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
781
781
  }, undefined>;
782
+ readonly name: v.StringSchema<undefined>;
782
783
  }, undefined>], undefined>, undefined>;
783
784
  }, undefined>, v.ObjectSchema<{
784
785
  readonly id: v.StringSchema<undefined>;
@@ -827,10 +828,6 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
827
828
  readonly id: v.StringSchema<undefined>;
828
829
  readonly type: v.LiteralSchema<"formula", undefined>;
829
830
  readonly formula: v.StringSchema<undefined>;
830
- }, undefined>, v.ObjectSchema<{
831
- readonly id: v.StringSchema<undefined>;
832
- readonly type: v.LiteralSchema<"location", undefined>;
833
- readonly location: v.StringSchema<undefined>;
834
831
  }, undefined>, v.ObjectSchema<{
835
832
  readonly id: v.StringSchema<undefined>;
836
833
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -846,7 +843,7 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
846
843
  readonly type: v.LiteralSchema<"icon", undefined>;
847
844
  readonly icon: v.LooseObjectSchema<{
848
845
  readonly name: v.StringSchema<undefined>;
849
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
846
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
850
847
  }, undefined>;
851
848
  }, undefined>, v.ObjectSchema<{
852
849
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -936,9 +933,8 @@ export declare const createPageParentSchema: v.VariantSchema<"type", [v.ObjectSc
936
933
  readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
937
934
  }, undefined>], undefined>;
938
935
  export type CreatePageMessageParent = v.InferOutput<typeof createPageParentSchema>;
939
- export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectSchema<{
940
- readonly type: v.LiteralSchema<"createPage", undefined>;
941
- readonly requestId: v.StringSchema<undefined>;
936
+ /** Arguments for page creation, without the message envelope. */
937
+ export declare const createPageArgsSchema: v.UnionSchema<[v.ObjectSchema<{
942
938
  readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
943
939
  readonly id: v.StringSchema<undefined>;
944
940
  readonly type: v.LiteralSchema<"title", undefined>;
@@ -1078,17 +1074,17 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
1078
1074
  readonly type: v.LiteralSchema<"files", undefined>;
1079
1075
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1080
1076
  readonly type: v.LiteralSchema<"external", undefined>;
1081
- readonly name: v.StringSchema<undefined>;
1082
1077
  readonly external: v.ObjectSchema<{
1083
1078
  readonly url: v.StringSchema<undefined>;
1084
1079
  }, undefined>;
1080
+ readonly name: v.StringSchema<undefined>;
1085
1081
  }, undefined>, v.ObjectSchema<{
1086
1082
  readonly type: v.LiteralSchema<"file", undefined>;
1087
- readonly name: v.StringSchema<undefined>;
1088
1083
  readonly file: v.ObjectSchema<{
1089
1084
  readonly url: v.StringSchema<undefined>;
1090
1085
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1091
1086
  }, undefined>;
1087
+ readonly name: v.StringSchema<undefined>;
1092
1088
  }, undefined>], undefined>, undefined>;
1093
1089
  }, undefined>, v.ObjectSchema<{
1094
1090
  readonly id: v.StringSchema<undefined>;
@@ -1137,10 +1133,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
1137
1133
  readonly id: v.StringSchema<undefined>;
1138
1134
  readonly type: v.LiteralSchema<"formula", undefined>;
1139
1135
  readonly formula: v.StringSchema<undefined>;
1140
- }, undefined>, v.ObjectSchema<{
1141
- readonly id: v.StringSchema<undefined>;
1142
- readonly type: v.LiteralSchema<"location", undefined>;
1143
- readonly location: v.StringSchema<undefined>;
1144
1136
  }, undefined>, v.ObjectSchema<{
1145
1137
  readonly id: v.StringSchema<undefined>;
1146
1138
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -1154,7 +1146,7 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
1154
1146
  readonly type: v.LiteralSchema<"icon", undefined>;
1155
1147
  readonly icon: v.LooseObjectSchema<{
1156
1148
  readonly name: v.StringSchema<undefined>;
1157
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
1149
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
1158
1150
  }, undefined>;
1159
1151
  }, undefined>, v.ObjectSchema<{
1160
1152
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -1206,8 +1198,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
1206
1198
  readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
1207
1199
  }, undefined>], undefined>, undefined>;
1208
1200
  }, undefined>, v.ObjectSchema<{
1209
- readonly type: v.LiteralSchema<"createPage", undefined>;
1210
- readonly requestId: v.StringSchema<undefined>;
1211
1201
  readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
1212
1202
  readonly id: v.StringSchema<undefined>;
1213
1203
  readonly type: v.LiteralSchema<"title", undefined>;
@@ -1347,17 +1337,17 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
1347
1337
  readonly type: v.LiteralSchema<"files", undefined>;
1348
1338
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1349
1339
  readonly type: v.LiteralSchema<"external", undefined>;
1350
- readonly name: v.StringSchema<undefined>;
1351
1340
  readonly external: v.ObjectSchema<{
1352
1341
  readonly url: v.StringSchema<undefined>;
1353
1342
  }, undefined>;
1343
+ readonly name: v.StringSchema<undefined>;
1354
1344
  }, undefined>, v.ObjectSchema<{
1355
1345
  readonly type: v.LiteralSchema<"file", undefined>;
1356
- readonly name: v.StringSchema<undefined>;
1357
1346
  readonly file: v.ObjectSchema<{
1358
1347
  readonly url: v.StringSchema<undefined>;
1359
1348
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1360
1349
  }, undefined>;
1350
+ readonly name: v.StringSchema<undefined>;
1361
1351
  }, undefined>], undefined>, undefined>;
1362
1352
  }, undefined>, v.ObjectSchema<{
1363
1353
  readonly id: v.StringSchema<undefined>;
@@ -1406,10 +1396,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
1406
1396
  readonly id: v.StringSchema<undefined>;
1407
1397
  readonly type: v.LiteralSchema<"formula", undefined>;
1408
1398
  readonly formula: v.StringSchema<undefined>;
1409
- }, undefined>, v.ObjectSchema<{
1410
- readonly id: v.StringSchema<undefined>;
1411
- readonly type: v.LiteralSchema<"location", undefined>;
1412
- readonly location: v.StringSchema<undefined>;
1413
1399
  }, undefined>, v.ObjectSchema<{
1414
1400
  readonly id: v.StringSchema<undefined>;
1415
1401
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -1423,7 +1409,7 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
1423
1409
  readonly type: v.LiteralSchema<"icon", undefined>;
1424
1410
  readonly icon: v.LooseObjectSchema<{
1425
1411
  readonly name: v.StringSchema<undefined>;
1426
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
1412
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
1427
1413
  }, undefined>;
1428
1414
  }, undefined>, v.ObjectSchema<{
1429
1415
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -1465,6 +1451,527 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
1465
1451
  }, undefined>;
1466
1452
  readonly position: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
1467
1453
  }, undefined>], undefined>;
1454
+ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectSchema<{
1455
+ readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
1456
+ readonly id: v.StringSchema<undefined>;
1457
+ readonly type: v.LiteralSchema<"title", undefined>;
1458
+ readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1459
+ }, undefined>, v.ObjectSchema<{
1460
+ readonly id: v.StringSchema<undefined>;
1461
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
1462
+ readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1463
+ }, undefined>, v.ObjectSchema<{
1464
+ readonly id: v.StringSchema<undefined>;
1465
+ readonly type: v.LiteralSchema<"number", undefined>;
1466
+ readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
1467
+ }, undefined>, v.ObjectSchema<{
1468
+ readonly id: v.StringSchema<undefined>;
1469
+ readonly type: v.LiteralSchema<"url", undefined>;
1470
+ readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1471
+ }, undefined>, v.ObjectSchema<{
1472
+ readonly id: v.StringSchema<undefined>;
1473
+ readonly type: v.LiteralSchema<"email", undefined>;
1474
+ readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1475
+ }, undefined>, v.ObjectSchema<{
1476
+ readonly id: v.StringSchema<undefined>;
1477
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
1478
+ readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1479
+ }, undefined>, v.ObjectSchema<{
1480
+ readonly id: v.StringSchema<undefined>;
1481
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
1482
+ readonly checkbox: v.BooleanSchema<undefined>;
1483
+ }, undefined>, v.ObjectSchema<{
1484
+ readonly id: v.StringSchema<undefined>;
1485
+ readonly type: v.LiteralSchema<"select", undefined>;
1486
+ readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
1487
+ readonly id: v.StringSchema<undefined>;
1488
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1489
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1490
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1491
+ }, undefined>, v.ObjectSchema<{
1492
+ readonly name: v.StringSchema<undefined>;
1493
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1494
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1495
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1496
+ }, undefined>], undefined>, undefined>;
1497
+ }, undefined>, v.ObjectSchema<{
1498
+ readonly id: v.StringSchema<undefined>;
1499
+ readonly type: v.LiteralSchema<"status", undefined>;
1500
+ readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
1501
+ readonly id: v.StringSchema<undefined>;
1502
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1503
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1504
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1505
+ }, undefined>, v.ObjectSchema<{
1506
+ readonly name: v.StringSchema<undefined>;
1507
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1508
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1509
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1510
+ }, undefined>], undefined>, undefined>;
1511
+ }, undefined>, v.ObjectSchema<{
1512
+ readonly id: v.StringSchema<undefined>;
1513
+ readonly type: v.LiteralSchema<"multi_select", undefined>;
1514
+ readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1515
+ readonly id: v.StringSchema<undefined>;
1516
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1517
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1518
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1519
+ }, undefined>, v.ObjectSchema<{
1520
+ readonly name: v.StringSchema<undefined>;
1521
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1522
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1523
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1524
+ }, undefined>], undefined>, undefined>;
1525
+ }, undefined>, v.ObjectSchema<{
1526
+ readonly id: v.StringSchema<undefined>;
1527
+ readonly type: v.LiteralSchema<"date", undefined>;
1528
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
1529
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1530
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1531
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
1532
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1533
+ readonly value: v.NumberSchema<undefined>;
1534
+ readonly time: v.StringSchema<undefined>;
1535
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1536
+ }, undefined>, v.ObjectSchema<{
1537
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
1538
+ readonly value: v.NumberSchema<undefined>;
1539
+ }, undefined>], undefined>, v.ObjectSchema<{
1540
+ readonly unit: v.LiteralSchema<"none", undefined>;
1541
+ }, undefined>], undefined>, undefined>;
1542
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
1543
+ }, undefined>, v.ObjectSchema<{
1544
+ readonly start: v.StringSchema<undefined>;
1545
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1546
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
1547
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1548
+ readonly value: v.NumberSchema<undefined>;
1549
+ readonly time: v.StringSchema<undefined>;
1550
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1551
+ }, undefined>, v.ObjectSchema<{
1552
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
1553
+ readonly value: v.NumberSchema<undefined>;
1554
+ }, undefined>], undefined>, v.ObjectSchema<{
1555
+ readonly unit: v.LiteralSchema<"none", undefined>;
1556
+ }, undefined>], undefined>, undefined>;
1557
+ readonly time_zone: v.StringSchema<undefined>;
1558
+ }, undefined>, v.ObjectSchema<{
1559
+ readonly start: v.StringSchema<undefined>;
1560
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1561
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1562
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
1563
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1564
+ readonly value: v.NumberSchema<undefined>;
1565
+ readonly time: v.StringSchema<undefined>;
1566
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1567
+ }, undefined>, v.ObjectSchema<{
1568
+ readonly unit: v.LiteralSchema<"none", undefined>;
1569
+ }, undefined>], undefined>, undefined>;
1570
+ }, undefined>], undefined>, undefined>;
1571
+ }, undefined>, v.ObjectSchema<{
1572
+ readonly id: v.StringSchema<undefined>;
1573
+ readonly type: v.LiteralSchema<"people", undefined>;
1574
+ readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1575
+ readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
1576
+ readonly id: v.StringSchema<undefined>;
1577
+ }, undefined>, v.ObjectSchema<{
1578
+ readonly object: v.LiteralSchema<"group", undefined>;
1579
+ readonly id: v.StringSchema<undefined>;
1580
+ readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1581
+ }, undefined>], undefined>, undefined>;
1582
+ }, undefined>, v.ObjectSchema<{
1583
+ readonly id: v.StringSchema<undefined>;
1584
+ readonly type: v.LiteralSchema<"relation", undefined>;
1585
+ readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1586
+ readonly relation: v.ArraySchema<v.ObjectSchema<{
1587
+ readonly id: v.StringSchema<undefined>;
1588
+ }, undefined>, undefined>;
1589
+ }, undefined>, v.ObjectSchema<{
1590
+ readonly id: v.StringSchema<undefined>;
1591
+ readonly type: v.LiteralSchema<"files", undefined>;
1592
+ readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1593
+ readonly type: v.LiteralSchema<"external", undefined>;
1594
+ readonly external: v.ObjectSchema<{
1595
+ readonly url: v.StringSchema<undefined>;
1596
+ }, undefined>;
1597
+ readonly name: v.StringSchema<undefined>;
1598
+ }, undefined>, v.ObjectSchema<{
1599
+ readonly type: v.LiteralSchema<"file", undefined>;
1600
+ readonly file: v.ObjectSchema<{
1601
+ readonly url: v.StringSchema<undefined>;
1602
+ readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1603
+ }, undefined>;
1604
+ readonly name: v.StringSchema<undefined>;
1605
+ }, undefined>], undefined>, undefined>;
1606
+ }, undefined>, v.ObjectSchema<{
1607
+ readonly id: v.StringSchema<undefined>;
1608
+ readonly type: v.LiteralSchema<"place", undefined>;
1609
+ readonly place: v.NullableSchema<v.ObjectSchema<{
1610
+ readonly lat: v.NumberSchema<undefined>;
1611
+ readonly lon: v.NumberSchema<undefined>;
1612
+ readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1613
+ readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1614
+ readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1615
+ readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1616
+ }, undefined>, undefined>;
1617
+ }, undefined>, v.ObjectSchema<{
1618
+ readonly id: v.StringSchema<undefined>;
1619
+ readonly type: v.LiteralSchema<"created_time", undefined>;
1620
+ readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1621
+ }, undefined>, v.ObjectSchema<{
1622
+ readonly id: v.StringSchema<undefined>;
1623
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
1624
+ readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1625
+ }, undefined>, v.ObjectSchema<{
1626
+ readonly id: v.StringSchema<undefined>;
1627
+ readonly type: v.LiteralSchema<"created_by", undefined>;
1628
+ readonly created_by: v.NullableSchema<v.ObjectSchema<{
1629
+ readonly id: v.StringSchema<undefined>;
1630
+ readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
1631
+ readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1632
+ }, undefined>, undefined>;
1633
+ }, undefined>, v.ObjectSchema<{
1634
+ readonly id: v.StringSchema<undefined>;
1635
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
1636
+ readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
1637
+ readonly id: v.StringSchema<undefined>;
1638
+ readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
1639
+ readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1640
+ }, undefined>, undefined>;
1641
+ }, undefined>, v.ObjectSchema<{
1642
+ readonly id: v.StringSchema<undefined>;
1643
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
1644
+ readonly unique_id: v.StringSchema<undefined>;
1645
+ }, undefined>, v.ObjectSchema<{
1646
+ readonly id: v.StringSchema<undefined>;
1647
+ readonly type: v.LiteralSchema<"button", undefined>;
1648
+ readonly button: v.StringSchema<undefined>;
1649
+ }, undefined>, v.ObjectSchema<{
1650
+ readonly id: v.StringSchema<undefined>;
1651
+ readonly type: v.LiteralSchema<"formula", undefined>;
1652
+ readonly formula: v.StringSchema<undefined>;
1653
+ }, undefined>, v.ObjectSchema<{
1654
+ readonly id: v.StringSchema<undefined>;
1655
+ readonly type: v.LiteralSchema<"rollup", undefined>;
1656
+ readonly rollup: v.StringSchema<undefined>;
1657
+ }, undefined>, v.ObjectSchema<{
1658
+ readonly id: v.StringSchema<undefined>;
1659
+ readonly type: v.LiteralSchema<"verification", undefined>;
1660
+ readonly verification: v.StringSchema<undefined>;
1661
+ }, undefined>], undefined>, undefined>;
1662
+ readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
1663
+ readonly type: v.LiteralSchema<"icon", undefined>;
1664
+ readonly icon: v.LooseObjectSchema<{
1665
+ readonly name: v.StringSchema<undefined>;
1666
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
1667
+ }, undefined>;
1668
+ }, undefined>, v.ObjectSchema<{
1669
+ readonly type: v.LiteralSchema<"emoji", undefined>;
1670
+ readonly emoji: v.StringSchema<undefined>;
1671
+ }, undefined>, v.ObjectSchema<{
1672
+ readonly type: v.LiteralSchema<"custom_emoji", undefined>;
1673
+ readonly custom_emoji: v.ObjectSchema<{
1674
+ readonly id: v.StringSchema<undefined>;
1675
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1676
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1677
+ }, undefined>;
1678
+ }, undefined>, v.ObjectSchema<{
1679
+ readonly type: v.LiteralSchema<"external", undefined>;
1680
+ readonly external: v.ObjectSchema<{
1681
+ readonly url: v.StringSchema<undefined>;
1682
+ }, undefined>;
1683
+ }, undefined>, v.ObjectSchema<{
1684
+ readonly type: v.LiteralSchema<"file", undefined>;
1685
+ readonly file: v.ObjectSchema<{
1686
+ readonly url: v.StringSchema<undefined>;
1687
+ readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1688
+ }, undefined>;
1689
+ }, undefined>], undefined>, undefined>;
1690
+ readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
1691
+ readonly type: v.LiteralSchema<"external", undefined>;
1692
+ readonly external: v.ObjectSchema<{
1693
+ readonly url: v.StringSchema<undefined>;
1694
+ }, undefined>;
1695
+ }, undefined>, v.ObjectSchema<{
1696
+ readonly type: v.LiteralSchema<"file", undefined>;
1697
+ readonly file: v.ObjectSchema<{
1698
+ readonly url: v.StringSchema<undefined>;
1699
+ readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1700
+ }, undefined>;
1701
+ }, undefined>], undefined>, undefined>;
1702
+ readonly parent: v.ObjectSchema<{
1703
+ readonly type: v.LiteralSchema<"page_id", undefined>;
1704
+ readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
1705
+ }, undefined>;
1706
+ readonly position: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
1707
+ readonly type: v.LiteralSchema<"start", undefined>;
1708
+ }, undefined>, v.ObjectSchema<{
1709
+ readonly type: v.LiteralSchema<"end", undefined>;
1710
+ }, undefined>, v.ObjectSchema<{
1711
+ readonly type: v.LiteralSchema<"before", undefined>;
1712
+ readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
1713
+ }, undefined>, v.ObjectSchema<{
1714
+ readonly type: v.LiteralSchema<"after", undefined>;
1715
+ readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
1716
+ }, undefined>], undefined>, undefined>;
1717
+ readonly type: v.LiteralSchema<"createPage", undefined>;
1718
+ readonly requestId: v.StringSchema<undefined>;
1719
+ }, undefined>, v.ObjectSchema<{
1720
+ readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
1721
+ readonly id: v.StringSchema<undefined>;
1722
+ readonly type: v.LiteralSchema<"title", undefined>;
1723
+ readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1724
+ }, undefined>, v.ObjectSchema<{
1725
+ readonly id: v.StringSchema<undefined>;
1726
+ readonly type: v.LiteralSchema<"rich_text", undefined>;
1727
+ readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
1728
+ }, undefined>, v.ObjectSchema<{
1729
+ readonly id: v.StringSchema<undefined>;
1730
+ readonly type: v.LiteralSchema<"number", undefined>;
1731
+ readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
1732
+ }, undefined>, v.ObjectSchema<{
1733
+ readonly id: v.StringSchema<undefined>;
1734
+ readonly type: v.LiteralSchema<"url", undefined>;
1735
+ readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1736
+ }, undefined>, v.ObjectSchema<{
1737
+ readonly id: v.StringSchema<undefined>;
1738
+ readonly type: v.LiteralSchema<"email", undefined>;
1739
+ readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1740
+ }, undefined>, v.ObjectSchema<{
1741
+ readonly id: v.StringSchema<undefined>;
1742
+ readonly type: v.LiteralSchema<"phone_number", undefined>;
1743
+ readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1744
+ }, undefined>, v.ObjectSchema<{
1745
+ readonly id: v.StringSchema<undefined>;
1746
+ readonly type: v.LiteralSchema<"checkbox", undefined>;
1747
+ readonly checkbox: v.BooleanSchema<undefined>;
1748
+ }, undefined>, v.ObjectSchema<{
1749
+ readonly id: v.StringSchema<undefined>;
1750
+ readonly type: v.LiteralSchema<"select", undefined>;
1751
+ readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
1752
+ readonly id: v.StringSchema<undefined>;
1753
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1754
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1755
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1756
+ }, undefined>, v.ObjectSchema<{
1757
+ readonly name: v.StringSchema<undefined>;
1758
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1759
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1760
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1761
+ }, undefined>], undefined>, undefined>;
1762
+ }, undefined>, v.ObjectSchema<{
1763
+ readonly id: v.StringSchema<undefined>;
1764
+ readonly type: v.LiteralSchema<"status", undefined>;
1765
+ readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
1766
+ readonly id: v.StringSchema<undefined>;
1767
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1768
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1769
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1770
+ }, undefined>, v.ObjectSchema<{
1771
+ readonly name: v.StringSchema<undefined>;
1772
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1773
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1774
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1775
+ }, undefined>], undefined>, undefined>;
1776
+ }, undefined>, v.ObjectSchema<{
1777
+ readonly id: v.StringSchema<undefined>;
1778
+ readonly type: v.LiteralSchema<"multi_select", undefined>;
1779
+ readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1780
+ readonly id: v.StringSchema<undefined>;
1781
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1782
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1783
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1784
+ }, undefined>, v.ObjectSchema<{
1785
+ readonly name: v.StringSchema<undefined>;
1786
+ readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1787
+ readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1788
+ readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1789
+ }, undefined>], undefined>, undefined>;
1790
+ }, undefined>, v.ObjectSchema<{
1791
+ readonly id: v.StringSchema<undefined>;
1792
+ readonly type: v.LiteralSchema<"date", undefined>;
1793
+ readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
1794
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1795
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1796
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
1797
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1798
+ readonly value: v.NumberSchema<undefined>;
1799
+ readonly time: v.StringSchema<undefined>;
1800
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1801
+ }, undefined>, v.ObjectSchema<{
1802
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
1803
+ readonly value: v.NumberSchema<undefined>;
1804
+ }, undefined>], undefined>, v.ObjectSchema<{
1805
+ readonly unit: v.LiteralSchema<"none", undefined>;
1806
+ }, undefined>], undefined>, undefined>;
1807
+ readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
1808
+ }, undefined>, v.ObjectSchema<{
1809
+ readonly start: v.StringSchema<undefined>;
1810
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1811
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
1812
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1813
+ readonly value: v.NumberSchema<undefined>;
1814
+ readonly time: v.StringSchema<undefined>;
1815
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1816
+ }, undefined>, v.ObjectSchema<{
1817
+ readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
1818
+ readonly value: v.NumberSchema<undefined>;
1819
+ }, undefined>], undefined>, v.ObjectSchema<{
1820
+ readonly unit: v.LiteralSchema<"none", undefined>;
1821
+ }, undefined>], undefined>, undefined>;
1822
+ readonly time_zone: v.StringSchema<undefined>;
1823
+ }, undefined>, v.ObjectSchema<{
1824
+ readonly start: v.StringSchema<undefined>;
1825
+ readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1826
+ readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1827
+ readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
1828
+ readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
1829
+ readonly value: v.NumberSchema<undefined>;
1830
+ readonly time: v.StringSchema<undefined>;
1831
+ readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1832
+ }, undefined>, v.ObjectSchema<{
1833
+ readonly unit: v.LiteralSchema<"none", undefined>;
1834
+ }, undefined>], undefined>, undefined>;
1835
+ }, undefined>], undefined>, undefined>;
1836
+ }, undefined>, v.ObjectSchema<{
1837
+ readonly id: v.StringSchema<undefined>;
1838
+ readonly type: v.LiteralSchema<"people", undefined>;
1839
+ readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1840
+ readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
1841
+ readonly id: v.StringSchema<undefined>;
1842
+ }, undefined>, v.ObjectSchema<{
1843
+ readonly object: v.LiteralSchema<"group", undefined>;
1844
+ readonly id: v.StringSchema<undefined>;
1845
+ readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1846
+ }, undefined>], undefined>, undefined>;
1847
+ }, undefined>, v.ObjectSchema<{
1848
+ readonly id: v.StringSchema<undefined>;
1849
+ readonly type: v.LiteralSchema<"relation", undefined>;
1850
+ readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1851
+ readonly relation: v.ArraySchema<v.ObjectSchema<{
1852
+ readonly id: v.StringSchema<undefined>;
1853
+ }, undefined>, undefined>;
1854
+ }, undefined>, v.ObjectSchema<{
1855
+ readonly id: v.StringSchema<undefined>;
1856
+ readonly type: v.LiteralSchema<"files", undefined>;
1857
+ readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1858
+ readonly type: v.LiteralSchema<"external", undefined>;
1859
+ readonly external: v.ObjectSchema<{
1860
+ readonly url: v.StringSchema<undefined>;
1861
+ }, undefined>;
1862
+ readonly name: v.StringSchema<undefined>;
1863
+ }, undefined>, v.ObjectSchema<{
1864
+ readonly type: v.LiteralSchema<"file", undefined>;
1865
+ readonly file: v.ObjectSchema<{
1866
+ readonly url: v.StringSchema<undefined>;
1867
+ readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1868
+ }, undefined>;
1869
+ readonly name: v.StringSchema<undefined>;
1870
+ }, undefined>], undefined>, undefined>;
1871
+ }, undefined>, v.ObjectSchema<{
1872
+ readonly id: v.StringSchema<undefined>;
1873
+ readonly type: v.LiteralSchema<"place", undefined>;
1874
+ readonly place: v.NullableSchema<v.ObjectSchema<{
1875
+ readonly lat: v.NumberSchema<undefined>;
1876
+ readonly lon: v.NumberSchema<undefined>;
1877
+ readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1878
+ readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1879
+ readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1880
+ readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
1881
+ }, undefined>, undefined>;
1882
+ }, undefined>, v.ObjectSchema<{
1883
+ readonly id: v.StringSchema<undefined>;
1884
+ readonly type: v.LiteralSchema<"created_time", undefined>;
1885
+ readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1886
+ }, undefined>, v.ObjectSchema<{
1887
+ readonly id: v.StringSchema<undefined>;
1888
+ readonly type: v.LiteralSchema<"last_edited_time", undefined>;
1889
+ readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
1890
+ }, undefined>, v.ObjectSchema<{
1891
+ readonly id: v.StringSchema<undefined>;
1892
+ readonly type: v.LiteralSchema<"created_by", undefined>;
1893
+ readonly created_by: v.NullableSchema<v.ObjectSchema<{
1894
+ readonly id: v.StringSchema<undefined>;
1895
+ readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
1896
+ readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1897
+ }, undefined>, undefined>;
1898
+ }, undefined>, v.ObjectSchema<{
1899
+ readonly id: v.StringSchema<undefined>;
1900
+ readonly type: v.LiteralSchema<"last_edited_by", undefined>;
1901
+ readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
1902
+ readonly id: v.StringSchema<undefined>;
1903
+ readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
1904
+ readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1905
+ }, undefined>, undefined>;
1906
+ }, undefined>, v.ObjectSchema<{
1907
+ readonly id: v.StringSchema<undefined>;
1908
+ readonly type: v.LiteralSchema<"unique_id", undefined>;
1909
+ readonly unique_id: v.StringSchema<undefined>;
1910
+ }, undefined>, v.ObjectSchema<{
1911
+ readonly id: v.StringSchema<undefined>;
1912
+ readonly type: v.LiteralSchema<"button", undefined>;
1913
+ readonly button: v.StringSchema<undefined>;
1914
+ }, undefined>, v.ObjectSchema<{
1915
+ readonly id: v.StringSchema<undefined>;
1916
+ readonly type: v.LiteralSchema<"formula", undefined>;
1917
+ readonly formula: v.StringSchema<undefined>;
1918
+ }, undefined>, v.ObjectSchema<{
1919
+ readonly id: v.StringSchema<undefined>;
1920
+ readonly type: v.LiteralSchema<"rollup", undefined>;
1921
+ readonly rollup: v.StringSchema<undefined>;
1922
+ }, undefined>, v.ObjectSchema<{
1923
+ readonly id: v.StringSchema<undefined>;
1924
+ readonly type: v.LiteralSchema<"verification", undefined>;
1925
+ readonly verification: v.StringSchema<undefined>;
1926
+ }, undefined>], undefined>, undefined>;
1927
+ readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
1928
+ readonly type: v.LiteralSchema<"icon", undefined>;
1929
+ readonly icon: v.LooseObjectSchema<{
1930
+ readonly name: v.StringSchema<undefined>;
1931
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
1932
+ }, undefined>;
1933
+ }, undefined>, v.ObjectSchema<{
1934
+ readonly type: v.LiteralSchema<"emoji", undefined>;
1935
+ readonly emoji: v.StringSchema<undefined>;
1936
+ }, undefined>, v.ObjectSchema<{
1937
+ readonly type: v.LiteralSchema<"custom_emoji", undefined>;
1938
+ readonly custom_emoji: v.ObjectSchema<{
1939
+ readonly id: v.StringSchema<undefined>;
1940
+ readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1941
+ readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1942
+ }, undefined>;
1943
+ }, undefined>, v.ObjectSchema<{
1944
+ readonly type: v.LiteralSchema<"external", undefined>;
1945
+ readonly external: v.ObjectSchema<{
1946
+ readonly url: v.StringSchema<undefined>;
1947
+ }, undefined>;
1948
+ }, undefined>, v.ObjectSchema<{
1949
+ readonly type: v.LiteralSchema<"file", undefined>;
1950
+ readonly file: v.ObjectSchema<{
1951
+ readonly url: v.StringSchema<undefined>;
1952
+ readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1953
+ }, undefined>;
1954
+ }, undefined>], undefined>, undefined>;
1955
+ readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
1956
+ readonly type: v.LiteralSchema<"external", undefined>;
1957
+ readonly external: v.ObjectSchema<{
1958
+ readonly url: v.StringSchema<undefined>;
1959
+ }, undefined>;
1960
+ }, undefined>, v.ObjectSchema<{
1961
+ readonly type: v.LiteralSchema<"file", undefined>;
1962
+ readonly file: v.ObjectSchema<{
1963
+ readonly url: v.StringSchema<undefined>;
1964
+ readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1965
+ }, undefined>;
1966
+ }, undefined>], undefined>, undefined>;
1967
+ readonly parent: v.ObjectSchema<{
1968
+ readonly type: v.LiteralSchema<"data_source_id", undefined>;
1969
+ readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
1970
+ }, undefined>;
1971
+ readonly position: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
1972
+ readonly type: v.LiteralSchema<"createPage", undefined>;
1973
+ readonly requestId: v.StringSchema<undefined>;
1974
+ }, undefined>], undefined>;
1468
1975
  /**
1469
1976
  * The sandbox sends this message to create a page.
1470
1977
  */