@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
@@ -21,6 +21,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
21
21
  }, undefined>, v.ObjectSchema<{
22
22
  readonly type: v.LiteralSchema<"agent_id", undefined>;
23
23
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
24
+ }, undefined>, v.ObjectSchema<{
25
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
26
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
24
27
  }, undefined>, v.ObjectSchema<{
25
28
  readonly type: v.LiteralSchema<"unavailable", undefined>;
26
29
  }, undefined>], undefined>;
@@ -44,6 +47,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
44
47
  }, undefined>, v.ObjectSchema<{
45
48
  readonly type: v.LiteralSchema<"agent_id", undefined>;
46
49
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
50
+ }, undefined>, v.ObjectSchema<{
51
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
52
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
47
53
  }, undefined>, v.ObjectSchema<{
48
54
  readonly type: v.LiteralSchema<"unavailable", undefined>;
49
55
  }, undefined>], undefined>;
@@ -70,7 +76,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
70
76
  readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
71
77
  readonly name: v.StringSchema<undefined>;
72
78
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
73
- readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
79
+ readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
74
80
  }, undefined>, undefined>, {}>;
75
81
  }, undefined>, undefined>, {}>;
76
82
  readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
@@ -91,12 +97,12 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
91
97
  }, undefined>;
92
98
  readonly dataSources: v.ObjectSchema<{
93
99
  readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
94
- readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
100
+ readonly dataSourcePointer: v.OptionalSchema<v.ObjectSchema<{
95
101
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
96
102
  readonly table: v.StringSchema<undefined>;
97
103
  readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
98
104
  }, undefined>, undefined>;
99
- readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
105
+ readonly dataSourceSchema: v.OptionalSchema<v.ObjectSchema<{
100
106
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
101
107
  readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
102
108
  readonly name: v.StringSchema<undefined>;
@@ -207,10 +213,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
207
213
  readonly name: v.StringSchema<undefined>;
208
214
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
209
215
  readonly type: v.LiteralSchema<"verification", undefined>;
210
- }, undefined>, v.ObjectSchema<{
211
- readonly name: v.StringSchema<undefined>;
212
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
213
- readonly type: v.LiteralSchema<"location", undefined>;
214
216
  }, undefined>, v.ObjectSchema<{
215
217
  readonly name: v.StringSchema<undefined>;
216
218
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -275,6 +277,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
275
277
  }, undefined>, v.ObjectSchema<{
276
278
  readonly type: v.LiteralSchema<"agent_id", undefined>;
277
279
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
280
+ }, undefined>, v.ObjectSchema<{
281
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
282
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
278
283
  }, undefined>, v.ObjectSchema<{
279
284
  readonly type: v.LiteralSchema<"unavailable", undefined>;
280
285
  }, undefined>], undefined>;
@@ -300,6 +305,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
300
305
  }, undefined>, v.ObjectSchema<{
301
306
  readonly type: v.LiteralSchema<"agent_id", undefined>;
302
307
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
308
+ }, undefined>, v.ObjectSchema<{
309
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
310
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
303
311
  }, undefined>, v.ObjectSchema<{
304
312
  readonly type: v.LiteralSchema<"unavailable", undefined>;
305
313
  }, undefined>], undefined>;
@@ -320,12 +328,12 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
320
328
  readonly type: v.LiteralSchema<"dataSourcesChanged", undefined>;
321
329
  readonly dataSources: v.ObjectSchema<{
322
330
  readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
323
- readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
331
+ readonly dataSourcePointer: v.OptionalSchema<v.ObjectSchema<{
324
332
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
325
333
  readonly table: v.StringSchema<undefined>;
326
334
  readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
327
335
  }, undefined>, undefined>;
328
- readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
336
+ readonly dataSourceSchema: v.OptionalSchema<v.ObjectSchema<{
329
337
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
330
338
  readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
331
339
  readonly name: v.StringSchema<undefined>;
@@ -436,10 +444,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
436
444
  readonly name: v.StringSchema<undefined>;
437
445
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
438
446
  readonly type: v.LiteralSchema<"verification", undefined>;
439
- }, undefined>, v.ObjectSchema<{
440
- readonly name: v.StringSchema<undefined>;
441
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
442
- readonly type: v.LiteralSchema<"location", undefined>;
443
447
  }, undefined>, v.ObjectSchema<{
444
448
  readonly name: v.StringSchema<undefined>;
445
449
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -568,6 +572,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
568
572
  }, undefined>, v.ObjectSchema<{
569
573
  readonly type: v.LiteralSchema<"agent_id", undefined>;
570
574
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
575
+ }, undefined>, v.ObjectSchema<{
576
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
577
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
571
578
  }, undefined>, v.ObjectSchema<{
572
579
  readonly type: v.LiteralSchema<"unavailable", undefined>;
573
580
  }, undefined>], undefined>;
@@ -710,17 +717,17 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
710
717
  readonly type: v.LiteralSchema<"files", undefined>;
711
718
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
712
719
  readonly type: v.LiteralSchema<"external", undefined>;
713
- readonly name: v.StringSchema<undefined>;
714
720
  readonly external: v.ObjectSchema<{
715
721
  readonly url: v.StringSchema<undefined>;
716
722
  }, undefined>;
723
+ readonly name: v.StringSchema<undefined>;
717
724
  }, undefined>, v.ObjectSchema<{
718
725
  readonly type: v.LiteralSchema<"file", undefined>;
719
- readonly name: v.StringSchema<undefined>;
720
726
  readonly file: v.ObjectSchema<{
721
727
  readonly url: v.StringSchema<undefined>;
722
728
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
723
729
  }, undefined>;
730
+ readonly name: v.StringSchema<undefined>;
724
731
  }, undefined>], undefined>, undefined>;
725
732
  }, undefined>, v.ObjectSchema<{
726
733
  readonly id: v.StringSchema<undefined>;
@@ -769,10 +776,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
769
776
  readonly id: v.StringSchema<undefined>;
770
777
  readonly type: v.LiteralSchema<"formula", undefined>;
771
778
  readonly formula: v.StringSchema<undefined>;
772
- }, undefined>, v.ObjectSchema<{
773
- readonly id: v.StringSchema<undefined>;
774
- readonly type: v.LiteralSchema<"location", undefined>;
775
- readonly location: v.StringSchema<undefined>;
776
779
  }, undefined>, v.ObjectSchema<{
777
780
  readonly id: v.StringSchema<undefined>;
778
781
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -798,7 +801,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
798
801
  readonly type: v.LiteralSchema<"icon", undefined>;
799
802
  readonly icon: v.LooseObjectSchema<{
800
803
  readonly name: v.StringSchema<undefined>;
801
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
804
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
802
805
  }, undefined>;
803
806
  }, undefined>, v.ObjectSchema<{
804
807
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -871,6 +874,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
871
874
  }, undefined>, v.ObjectSchema<{
872
875
  readonly type: v.LiteralSchema<"agent_id", undefined>;
873
876
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
877
+ }, undefined>, v.ObjectSchema<{
878
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
879
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
874
880
  }, undefined>, v.ObjectSchema<{
875
881
  readonly type: v.LiteralSchema<"unavailable", undefined>;
876
882
  }, undefined>], undefined>;
@@ -1013,17 +1019,17 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1013
1019
  readonly type: v.LiteralSchema<"files", undefined>;
1014
1020
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1015
1021
  readonly type: v.LiteralSchema<"external", undefined>;
1016
- readonly name: v.StringSchema<undefined>;
1017
1022
  readonly external: v.ObjectSchema<{
1018
1023
  readonly url: v.StringSchema<undefined>;
1019
1024
  }, undefined>;
1025
+ readonly name: v.StringSchema<undefined>;
1020
1026
  }, undefined>, v.ObjectSchema<{
1021
1027
  readonly type: v.LiteralSchema<"file", undefined>;
1022
- readonly name: v.StringSchema<undefined>;
1023
1028
  readonly file: v.ObjectSchema<{
1024
1029
  readonly url: v.StringSchema<undefined>;
1025
1030
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1026
1031
  }, undefined>;
1032
+ readonly name: v.StringSchema<undefined>;
1027
1033
  }, undefined>], undefined>, undefined>;
1028
1034
  }, undefined>, v.ObjectSchema<{
1029
1035
  readonly id: v.StringSchema<undefined>;
@@ -1072,10 +1078,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1072
1078
  readonly id: v.StringSchema<undefined>;
1073
1079
  readonly type: v.LiteralSchema<"formula", undefined>;
1074
1080
  readonly formula: v.StringSchema<undefined>;
1075
- }, undefined>, v.ObjectSchema<{
1076
- readonly id: v.StringSchema<undefined>;
1077
- readonly type: v.LiteralSchema<"location", undefined>;
1078
- readonly location: v.StringSchema<undefined>;
1079
1081
  }, undefined>, v.ObjectSchema<{
1080
1082
  readonly id: v.StringSchema<undefined>;
1081
1083
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -1101,7 +1103,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1101
1103
  readonly type: v.LiteralSchema<"icon", undefined>;
1102
1104
  readonly icon: v.LooseObjectSchema<{
1103
1105
  readonly name: v.StringSchema<undefined>;
1104
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
1106
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
1105
1107
  }, undefined>;
1106
1108
  }, undefined>, v.ObjectSchema<{
1107
1109
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -1173,6 +1175,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1173
1175
  }, undefined>, v.ObjectSchema<{
1174
1176
  readonly type: v.LiteralSchema<"agent_id", undefined>;
1175
1177
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
1178
+ }, undefined>, v.ObjectSchema<{
1179
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
1180
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
1176
1181
  }, undefined>, v.ObjectSchema<{
1177
1182
  readonly type: v.LiteralSchema<"unavailable", undefined>;
1178
1183
  }, undefined>], undefined>;
@@ -1315,17 +1320,17 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1315
1320
  readonly type: v.LiteralSchema<"files", undefined>;
1316
1321
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1317
1322
  readonly type: v.LiteralSchema<"external", undefined>;
1318
- readonly name: v.StringSchema<undefined>;
1319
1323
  readonly external: v.ObjectSchema<{
1320
1324
  readonly url: v.StringSchema<undefined>;
1321
1325
  }, undefined>;
1326
+ readonly name: v.StringSchema<undefined>;
1322
1327
  }, undefined>, v.ObjectSchema<{
1323
1328
  readonly type: v.LiteralSchema<"file", undefined>;
1324
- readonly name: v.StringSchema<undefined>;
1325
1329
  readonly file: v.ObjectSchema<{
1326
1330
  readonly url: v.StringSchema<undefined>;
1327
1331
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1328
1332
  }, undefined>;
1333
+ readonly name: v.StringSchema<undefined>;
1329
1334
  }, undefined>], undefined>, undefined>;
1330
1335
  }, undefined>, v.ObjectSchema<{
1331
1336
  readonly id: v.StringSchema<undefined>;
@@ -1374,10 +1379,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1374
1379
  readonly id: v.StringSchema<undefined>;
1375
1380
  readonly type: v.LiteralSchema<"formula", undefined>;
1376
1381
  readonly formula: v.StringSchema<undefined>;
1377
- }, undefined>, v.ObjectSchema<{
1378
- readonly id: v.StringSchema<undefined>;
1379
- readonly type: v.LiteralSchema<"location", undefined>;
1380
- readonly location: v.StringSchema<undefined>;
1381
1382
  }, undefined>, v.ObjectSchema<{
1382
1383
  readonly id: v.StringSchema<undefined>;
1383
1384
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -1403,7 +1404,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1403
1404
  readonly type: v.LiteralSchema<"icon", undefined>;
1404
1405
  readonly icon: v.LooseObjectSchema<{
1405
1406
  readonly name: v.StringSchema<undefined>;
1406
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
1407
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
1407
1408
  }, undefined>;
1408
1409
  }, undefined>, v.ObjectSchema<{
1409
1410
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -1475,6 +1476,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1475
1476
  }, undefined>, v.ObjectSchema<{
1476
1477
  readonly type: v.LiteralSchema<"agent_id", undefined>;
1477
1478
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
1479
+ }, undefined>, v.ObjectSchema<{
1480
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
1481
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
1478
1482
  }, undefined>, v.ObjectSchema<{
1479
1483
  readonly type: v.LiteralSchema<"unavailable", undefined>;
1480
1484
  }, undefined>], undefined>;
@@ -1617,17 +1621,17 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1617
1621
  readonly type: v.LiteralSchema<"files", undefined>;
1618
1622
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1619
1623
  readonly type: v.LiteralSchema<"external", undefined>;
1620
- readonly name: v.StringSchema<undefined>;
1621
1624
  readonly external: v.ObjectSchema<{
1622
1625
  readonly url: v.StringSchema<undefined>;
1623
1626
  }, undefined>;
1627
+ readonly name: v.StringSchema<undefined>;
1624
1628
  }, undefined>, v.ObjectSchema<{
1625
1629
  readonly type: v.LiteralSchema<"file", undefined>;
1626
- readonly name: v.StringSchema<undefined>;
1627
1630
  readonly file: v.ObjectSchema<{
1628
1631
  readonly url: v.StringSchema<undefined>;
1629
1632
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1630
1633
  }, undefined>;
1634
+ readonly name: v.StringSchema<undefined>;
1631
1635
  }, undefined>], undefined>, undefined>;
1632
1636
  }, undefined>, v.ObjectSchema<{
1633
1637
  readonly id: v.StringSchema<undefined>;
@@ -1676,10 +1680,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1676
1680
  readonly id: v.StringSchema<undefined>;
1677
1681
  readonly type: v.LiteralSchema<"formula", undefined>;
1678
1682
  readonly formula: v.StringSchema<undefined>;
1679
- }, undefined>, v.ObjectSchema<{
1680
- readonly id: v.StringSchema<undefined>;
1681
- readonly type: v.LiteralSchema<"location", undefined>;
1682
- readonly location: v.StringSchema<undefined>;
1683
1683
  }, undefined>, v.ObjectSchema<{
1684
1684
  readonly id: v.StringSchema<undefined>;
1685
1685
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -1705,7 +1705,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
1705
1705
  readonly type: v.LiteralSchema<"icon", undefined>;
1706
1706
  readonly icon: v.LooseObjectSchema<{
1707
1707
  readonly name: v.StringSchema<undefined>;
1708
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
1708
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
1709
1709
  }, undefined>;
1710
1710
  }, undefined>, v.ObjectSchema<{
1711
1711
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -1781,6 +1781,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
1781
1781
  }, undefined>, v.ObjectSchema<{
1782
1782
  readonly type: v.LiteralSchema<"agent_id", undefined>;
1783
1783
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
1784
+ }, undefined>, v.ObjectSchema<{
1785
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
1786
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
1784
1787
  }, undefined>, v.ObjectSchema<{
1785
1788
  readonly type: v.LiteralSchema<"unavailable", undefined>;
1786
1789
  }, undefined>], undefined>;
@@ -1804,6 +1807,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
1804
1807
  }, undefined>, v.ObjectSchema<{
1805
1808
  readonly type: v.LiteralSchema<"agent_id", undefined>;
1806
1809
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
1810
+ }, undefined>, v.ObjectSchema<{
1811
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
1812
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
1807
1813
  }, undefined>, v.ObjectSchema<{
1808
1814
  readonly type: v.LiteralSchema<"unavailable", undefined>;
1809
1815
  }, undefined>], undefined>;
@@ -1830,7 +1836,7 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
1830
1836
  readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
1831
1837
  readonly name: v.StringSchema<undefined>;
1832
1838
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1833
- readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
1839
+ readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
1834
1840
  }, undefined>, undefined>, {}>;
1835
1841
  }, undefined>, undefined>, {}>;
1836
1842
  readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
@@ -1851,12 +1857,12 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
1851
1857
  }, undefined>;
1852
1858
  readonly dataSources: v.ObjectSchema<{
1853
1859
  readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
1854
- readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
1860
+ readonly dataSourcePointer: v.OptionalSchema<v.ObjectSchema<{
1855
1861
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
1856
1862
  readonly table: v.StringSchema<undefined>;
1857
1863
  readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
1858
1864
  }, undefined>, undefined>;
1859
- readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
1865
+ readonly dataSourceSchema: v.OptionalSchema<v.ObjectSchema<{
1860
1866
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
1861
1867
  readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
1862
1868
  readonly name: v.StringSchema<undefined>;
@@ -1967,10 +1973,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
1967
1973
  readonly name: v.StringSchema<undefined>;
1968
1974
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1969
1975
  readonly type: v.LiteralSchema<"verification", undefined>;
1970
- }, undefined>, v.ObjectSchema<{
1971
- readonly name: v.StringSchema<undefined>;
1972
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1973
- readonly type: v.LiteralSchema<"location", undefined>;
1974
1976
  }, undefined>, v.ObjectSchema<{
1975
1977
  readonly name: v.StringSchema<undefined>;
1976
1978
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -2035,6 +2037,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2035
2037
  }, undefined>, v.ObjectSchema<{
2036
2038
  readonly type: v.LiteralSchema<"agent_id", undefined>;
2037
2039
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
2040
+ }, undefined>, v.ObjectSchema<{
2041
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
2042
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
2038
2043
  }, undefined>, v.ObjectSchema<{
2039
2044
  readonly type: v.LiteralSchema<"unavailable", undefined>;
2040
2045
  }, undefined>], undefined>;
@@ -2060,6 +2065,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2060
2065
  }, undefined>, v.ObjectSchema<{
2061
2066
  readonly type: v.LiteralSchema<"agent_id", undefined>;
2062
2067
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
2068
+ }, undefined>, v.ObjectSchema<{
2069
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
2070
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
2063
2071
  }, undefined>, v.ObjectSchema<{
2064
2072
  readonly type: v.LiteralSchema<"unavailable", undefined>;
2065
2073
  }, undefined>], undefined>;
@@ -2080,12 +2088,12 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2080
2088
  readonly type: v.LiteralSchema<"dataSourcesChanged", undefined>;
2081
2089
  readonly dataSources: v.ObjectSchema<{
2082
2090
  readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
2083
- readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
2091
+ readonly dataSourcePointer: v.OptionalSchema<v.ObjectSchema<{
2084
2092
  readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
2085
2093
  readonly table: v.StringSchema<undefined>;
2086
2094
  readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
2087
2095
  }, undefined>, undefined>;
2088
- readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
2096
+ readonly dataSourceSchema: v.OptionalSchema<v.ObjectSchema<{
2089
2097
  readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
2090
2098
  readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
2091
2099
  readonly name: v.StringSchema<undefined>;
@@ -2196,10 +2204,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2196
2204
  readonly name: v.StringSchema<undefined>;
2197
2205
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2198
2206
  readonly type: v.LiteralSchema<"verification", undefined>;
2199
- }, undefined>, v.ObjectSchema<{
2200
- readonly name: v.StringSchema<undefined>;
2201
- readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2202
- readonly type: v.LiteralSchema<"location", undefined>;
2203
2207
  }, undefined>, v.ObjectSchema<{
2204
2208
  readonly name: v.StringSchema<undefined>;
2205
2209
  readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
@@ -2328,6 +2332,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2328
2332
  }, undefined>, v.ObjectSchema<{
2329
2333
  readonly type: v.LiteralSchema<"agent_id", undefined>;
2330
2334
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
2335
+ }, undefined>, v.ObjectSchema<{
2336
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
2337
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
2331
2338
  }, undefined>, v.ObjectSchema<{
2332
2339
  readonly type: v.LiteralSchema<"unavailable", undefined>;
2333
2340
  }, undefined>], undefined>;
@@ -2470,17 +2477,17 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2470
2477
  readonly type: v.LiteralSchema<"files", undefined>;
2471
2478
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
2472
2479
  readonly type: v.LiteralSchema<"external", undefined>;
2473
- readonly name: v.StringSchema<undefined>;
2474
2480
  readonly external: v.ObjectSchema<{
2475
2481
  readonly url: v.StringSchema<undefined>;
2476
2482
  }, undefined>;
2483
+ readonly name: v.StringSchema<undefined>;
2477
2484
  }, undefined>, v.ObjectSchema<{
2478
2485
  readonly type: v.LiteralSchema<"file", undefined>;
2479
- readonly name: v.StringSchema<undefined>;
2480
2486
  readonly file: v.ObjectSchema<{
2481
2487
  readonly url: v.StringSchema<undefined>;
2482
2488
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2483
2489
  }, undefined>;
2490
+ readonly name: v.StringSchema<undefined>;
2484
2491
  }, undefined>], undefined>, undefined>;
2485
2492
  }, undefined>, v.ObjectSchema<{
2486
2493
  readonly id: v.StringSchema<undefined>;
@@ -2529,10 +2536,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2529
2536
  readonly id: v.StringSchema<undefined>;
2530
2537
  readonly type: v.LiteralSchema<"formula", undefined>;
2531
2538
  readonly formula: v.StringSchema<undefined>;
2532
- }, undefined>, v.ObjectSchema<{
2533
- readonly id: v.StringSchema<undefined>;
2534
- readonly type: v.LiteralSchema<"location", undefined>;
2535
- readonly location: v.StringSchema<undefined>;
2536
2539
  }, undefined>, v.ObjectSchema<{
2537
2540
  readonly id: v.StringSchema<undefined>;
2538
2541
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -2558,7 +2561,7 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2558
2561
  readonly type: v.LiteralSchema<"icon", undefined>;
2559
2562
  readonly icon: v.LooseObjectSchema<{
2560
2563
  readonly name: v.StringSchema<undefined>;
2561
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
2564
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
2562
2565
  }, undefined>;
2563
2566
  }, undefined>, v.ObjectSchema<{
2564
2567
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -2696,6 +2699,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2696
2699
  }, undefined>, v.ObjectSchema<{
2697
2700
  readonly type: v.LiteralSchema<"agent_id", undefined>;
2698
2701
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
2702
+ }, undefined>, v.ObjectSchema<{
2703
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
2704
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
2699
2705
  }, undefined>, v.ObjectSchema<{
2700
2706
  readonly type: v.LiteralSchema<"unavailable", undefined>;
2701
2707
  }, undefined>], undefined>;
@@ -2838,17 +2844,17 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2838
2844
  readonly type: v.LiteralSchema<"files", undefined>;
2839
2845
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
2840
2846
  readonly type: v.LiteralSchema<"external", undefined>;
2841
- readonly name: v.StringSchema<undefined>;
2842
2847
  readonly external: v.ObjectSchema<{
2843
2848
  readonly url: v.StringSchema<undefined>;
2844
2849
  }, undefined>;
2850
+ readonly name: v.StringSchema<undefined>;
2845
2851
  }, undefined>, v.ObjectSchema<{
2846
2852
  readonly type: v.LiteralSchema<"file", undefined>;
2847
- readonly name: v.StringSchema<undefined>;
2848
2853
  readonly file: v.ObjectSchema<{
2849
2854
  readonly url: v.StringSchema<undefined>;
2850
2855
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
2851
2856
  }, undefined>;
2857
+ readonly name: v.StringSchema<undefined>;
2852
2858
  }, undefined>], undefined>, undefined>;
2853
2859
  }, undefined>, v.ObjectSchema<{
2854
2860
  readonly id: v.StringSchema<undefined>;
@@ -2897,10 +2903,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2897
2903
  readonly id: v.StringSchema<undefined>;
2898
2904
  readonly type: v.LiteralSchema<"formula", undefined>;
2899
2905
  readonly formula: v.StringSchema<undefined>;
2900
- }, undefined>, v.ObjectSchema<{
2901
- readonly id: v.StringSchema<undefined>;
2902
- readonly type: v.LiteralSchema<"location", undefined>;
2903
- readonly location: v.StringSchema<undefined>;
2904
2906
  }, undefined>, v.ObjectSchema<{
2905
2907
  readonly id: v.StringSchema<undefined>;
2906
2908
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -2926,7 +2928,7 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2926
2928
  readonly type: v.LiteralSchema<"icon", undefined>;
2927
2929
  readonly icon: v.LooseObjectSchema<{
2928
2930
  readonly name: v.StringSchema<undefined>;
2929
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
2931
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
2930
2932
  }, undefined>;
2931
2933
  }, undefined>, v.ObjectSchema<{
2932
2934
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -2984,6 +2986,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
2984
2986
  }, undefined>, v.ObjectSchema<{
2985
2987
  readonly type: v.LiteralSchema<"agent_id", undefined>;
2986
2988
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
2989
+ }, undefined>, v.ObjectSchema<{
2990
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
2991
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
2987
2992
  }, undefined>, v.ObjectSchema<{
2988
2993
  readonly type: v.LiteralSchema<"unavailable", undefined>;
2989
2994
  }, undefined>], undefined>;
@@ -3126,17 +3131,17 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3126
3131
  readonly type: v.LiteralSchema<"files", undefined>;
3127
3132
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
3128
3133
  readonly type: v.LiteralSchema<"external", undefined>;
3129
- readonly name: v.StringSchema<undefined>;
3130
3134
  readonly external: v.ObjectSchema<{
3131
3135
  readonly url: v.StringSchema<undefined>;
3132
3136
  }, undefined>;
3137
+ readonly name: v.StringSchema<undefined>;
3133
3138
  }, undefined>, v.ObjectSchema<{
3134
3139
  readonly type: v.LiteralSchema<"file", undefined>;
3135
- readonly name: v.StringSchema<undefined>;
3136
3140
  readonly file: v.ObjectSchema<{
3137
3141
  readonly url: v.StringSchema<undefined>;
3138
3142
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3139
3143
  }, undefined>;
3144
+ readonly name: v.StringSchema<undefined>;
3140
3145
  }, undefined>], undefined>, undefined>;
3141
3146
  }, undefined>, v.ObjectSchema<{
3142
3147
  readonly id: v.StringSchema<undefined>;
@@ -3185,10 +3190,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3185
3190
  readonly id: v.StringSchema<undefined>;
3186
3191
  readonly type: v.LiteralSchema<"formula", undefined>;
3187
3192
  readonly formula: v.StringSchema<undefined>;
3188
- }, undefined>, v.ObjectSchema<{
3189
- readonly id: v.StringSchema<undefined>;
3190
- readonly type: v.LiteralSchema<"location", undefined>;
3191
- readonly location: v.StringSchema<undefined>;
3192
3193
  }, undefined>, v.ObjectSchema<{
3193
3194
  readonly id: v.StringSchema<undefined>;
3194
3195
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -3204,7 +3205,7 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3204
3205
  readonly type: v.LiteralSchema<"icon", undefined>;
3205
3206
  readonly icon: v.LooseObjectSchema<{
3206
3207
  readonly name: v.StringSchema<undefined>;
3207
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
3208
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
3208
3209
  }, undefined>;
3209
3210
  }, undefined>, v.ObjectSchema<{
3210
3211
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -3276,6 +3277,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3276
3277
  }, undefined>, v.ObjectSchema<{
3277
3278
  readonly type: v.LiteralSchema<"agent_id", undefined>;
3278
3279
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
3280
+ }, undefined>, v.ObjectSchema<{
3281
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
3282
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
3279
3283
  }, undefined>, v.ObjectSchema<{
3280
3284
  readonly type: v.LiteralSchema<"unavailable", undefined>;
3281
3285
  }, undefined>], undefined>;
@@ -3418,17 +3422,17 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3418
3422
  readonly type: v.LiteralSchema<"files", undefined>;
3419
3423
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
3420
3424
  readonly type: v.LiteralSchema<"external", undefined>;
3421
- readonly name: v.StringSchema<undefined>;
3422
3425
  readonly external: v.ObjectSchema<{
3423
3426
  readonly url: v.StringSchema<undefined>;
3424
3427
  }, undefined>;
3428
+ readonly name: v.StringSchema<undefined>;
3425
3429
  }, undefined>, v.ObjectSchema<{
3426
3430
  readonly type: v.LiteralSchema<"file", undefined>;
3427
- readonly name: v.StringSchema<undefined>;
3428
3431
  readonly file: v.ObjectSchema<{
3429
3432
  readonly url: v.StringSchema<undefined>;
3430
3433
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3431
3434
  }, undefined>;
3435
+ readonly name: v.StringSchema<undefined>;
3432
3436
  }, undefined>], undefined>, undefined>;
3433
3437
  }, undefined>, v.ObjectSchema<{
3434
3438
  readonly id: v.StringSchema<undefined>;
@@ -3477,10 +3481,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3477
3481
  readonly id: v.StringSchema<undefined>;
3478
3482
  readonly type: v.LiteralSchema<"formula", undefined>;
3479
3483
  readonly formula: v.StringSchema<undefined>;
3480
- }, undefined>, v.ObjectSchema<{
3481
- readonly id: v.StringSchema<undefined>;
3482
- readonly type: v.LiteralSchema<"location", undefined>;
3483
- readonly location: v.StringSchema<undefined>;
3484
3484
  }, undefined>, v.ObjectSchema<{
3485
3485
  readonly id: v.StringSchema<undefined>;
3486
3486
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -3506,7 +3506,7 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3506
3506
  readonly type: v.LiteralSchema<"icon", undefined>;
3507
3507
  readonly icon: v.LooseObjectSchema<{
3508
3508
  readonly name: v.StringSchema<undefined>;
3509
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
3509
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
3510
3510
  }, undefined>;
3511
3511
  }, undefined>, v.ObjectSchema<{
3512
3512
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -3564,6 +3564,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3564
3564
  }, undefined>, v.ObjectSchema<{
3565
3565
  readonly type: v.LiteralSchema<"agent_id", undefined>;
3566
3566
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
3567
+ }, undefined>, v.ObjectSchema<{
3568
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
3569
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
3567
3570
  }, undefined>, v.ObjectSchema<{
3568
3571
  readonly type: v.LiteralSchema<"unavailable", undefined>;
3569
3572
  }, undefined>], undefined>;
@@ -3706,17 +3709,17 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3706
3709
  readonly type: v.LiteralSchema<"files", undefined>;
3707
3710
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
3708
3711
  readonly type: v.LiteralSchema<"external", undefined>;
3709
- readonly name: v.StringSchema<undefined>;
3710
3712
  readonly external: v.ObjectSchema<{
3711
3713
  readonly url: v.StringSchema<undefined>;
3712
3714
  }, undefined>;
3715
+ readonly name: v.StringSchema<undefined>;
3713
3716
  }, undefined>, v.ObjectSchema<{
3714
3717
  readonly type: v.LiteralSchema<"file", undefined>;
3715
- readonly name: v.StringSchema<undefined>;
3716
3718
  readonly file: v.ObjectSchema<{
3717
3719
  readonly url: v.StringSchema<undefined>;
3718
3720
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
3719
3721
  }, undefined>;
3722
+ readonly name: v.StringSchema<undefined>;
3720
3723
  }, undefined>], undefined>, undefined>;
3721
3724
  }, undefined>, v.ObjectSchema<{
3722
3725
  readonly id: v.StringSchema<undefined>;
@@ -3765,10 +3768,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3765
3768
  readonly id: v.StringSchema<undefined>;
3766
3769
  readonly type: v.LiteralSchema<"formula", undefined>;
3767
3770
  readonly formula: v.StringSchema<undefined>;
3768
- }, undefined>, v.ObjectSchema<{
3769
- readonly id: v.StringSchema<undefined>;
3770
- readonly type: v.LiteralSchema<"location", undefined>;
3771
- readonly location: v.StringSchema<undefined>;
3772
3771
  }, undefined>, v.ObjectSchema<{
3773
3772
  readonly id: v.StringSchema<undefined>;
3774
3773
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -3784,7 +3783,7 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3784
3783
  readonly type: v.LiteralSchema<"icon", undefined>;
3785
3784
  readonly icon: v.LooseObjectSchema<{
3786
3785
  readonly name: v.StringSchema<undefined>;
3787
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
3786
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
3788
3787
  }, undefined>;
3789
3788
  }, undefined>, v.ObjectSchema<{
3790
3789
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -3856,6 +3855,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3856
3855
  }, undefined>, v.ObjectSchema<{
3857
3856
  readonly type: v.LiteralSchema<"agent_id", undefined>;
3858
3857
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
3858
+ }, undefined>, v.ObjectSchema<{
3859
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
3860
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
3859
3861
  }, undefined>, v.ObjectSchema<{
3860
3862
  readonly type: v.LiteralSchema<"unavailable", undefined>;
3861
3863
  }, undefined>], undefined>;
@@ -3998,17 +4000,17 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
3998
4000
  readonly type: v.LiteralSchema<"files", undefined>;
3999
4001
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
4000
4002
  readonly type: v.LiteralSchema<"external", undefined>;
4001
- readonly name: v.StringSchema<undefined>;
4002
4003
  readonly external: v.ObjectSchema<{
4003
4004
  readonly url: v.StringSchema<undefined>;
4004
4005
  }, undefined>;
4006
+ readonly name: v.StringSchema<undefined>;
4005
4007
  }, undefined>, v.ObjectSchema<{
4006
4008
  readonly type: v.LiteralSchema<"file", undefined>;
4007
- readonly name: v.StringSchema<undefined>;
4008
4009
  readonly file: v.ObjectSchema<{
4009
4010
  readonly url: v.StringSchema<undefined>;
4010
4011
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4011
4012
  }, undefined>;
4013
+ readonly name: v.StringSchema<undefined>;
4012
4014
  }, undefined>], undefined>, undefined>;
4013
4015
  }, undefined>, v.ObjectSchema<{
4014
4016
  readonly id: v.StringSchema<undefined>;
@@ -4057,10 +4059,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
4057
4059
  readonly id: v.StringSchema<undefined>;
4058
4060
  readonly type: v.LiteralSchema<"formula", undefined>;
4059
4061
  readonly formula: v.StringSchema<undefined>;
4060
- }, undefined>, v.ObjectSchema<{
4061
- readonly id: v.StringSchema<undefined>;
4062
- readonly type: v.LiteralSchema<"location", undefined>;
4063
- readonly location: v.StringSchema<undefined>;
4064
4062
  }, undefined>, v.ObjectSchema<{
4065
4063
  readonly id: v.StringSchema<undefined>;
4066
4064
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -4086,7 +4084,7 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
4086
4084
  readonly type: v.LiteralSchema<"icon", undefined>;
4087
4085
  readonly icon: v.LooseObjectSchema<{
4088
4086
  readonly name: v.StringSchema<undefined>;
4089
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
4087
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
4090
4088
  }, undefined>;
4091
4089
  }, undefined>, v.ObjectSchema<{
4092
4090
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -4144,6 +4142,9 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
4144
4142
  }, undefined>, v.ObjectSchema<{
4145
4143
  readonly type: v.LiteralSchema<"agent_id", undefined>;
4146
4144
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
4145
+ }, undefined>, v.ObjectSchema<{
4146
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
4147
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
4147
4148
  }, undefined>, v.ObjectSchema<{
4148
4149
  readonly type: v.LiteralSchema<"unavailable", undefined>;
4149
4150
  }, undefined>], undefined>;
@@ -4286,17 +4287,17 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
4286
4287
  readonly type: v.LiteralSchema<"files", undefined>;
4287
4288
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
4288
4289
  readonly type: v.LiteralSchema<"external", undefined>;
4289
- readonly name: v.StringSchema<undefined>;
4290
4290
  readonly external: v.ObjectSchema<{
4291
4291
  readonly url: v.StringSchema<undefined>;
4292
4292
  }, undefined>;
4293
+ readonly name: v.StringSchema<undefined>;
4293
4294
  }, undefined>, v.ObjectSchema<{
4294
4295
  readonly type: v.LiteralSchema<"file", undefined>;
4295
- readonly name: v.StringSchema<undefined>;
4296
4296
  readonly file: v.ObjectSchema<{
4297
4297
  readonly url: v.StringSchema<undefined>;
4298
4298
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
4299
4299
  }, undefined>;
4300
+ readonly name: v.StringSchema<undefined>;
4300
4301
  }, undefined>], undefined>, undefined>;
4301
4302
  }, undefined>, v.ObjectSchema<{
4302
4303
  readonly id: v.StringSchema<undefined>;
@@ -4345,10 +4346,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
4345
4346
  readonly id: v.StringSchema<undefined>;
4346
4347
  readonly type: v.LiteralSchema<"formula", undefined>;
4347
4348
  readonly formula: v.StringSchema<undefined>;
4348
- }, undefined>, v.ObjectSchema<{
4349
- readonly id: v.StringSchema<undefined>;
4350
- readonly type: v.LiteralSchema<"location", undefined>;
4351
- readonly location: v.StringSchema<undefined>;
4352
4349
  }, undefined>, v.ObjectSchema<{
4353
4350
  readonly id: v.StringSchema<undefined>;
4354
4351
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -4364,7 +4361,7 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
4364
4361
  readonly type: v.LiteralSchema<"icon", undefined>;
4365
4362
  readonly icon: v.LooseObjectSchema<{
4366
4363
  readonly name: v.StringSchema<undefined>;
4367
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
4364
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
4368
4365
  }, undefined>;
4369
4366
  }, undefined>, v.ObjectSchema<{
4370
4367
  readonly type: v.LiteralSchema<"emoji", undefined>;