@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
@@ -3,7 +3,7 @@ import { bridgePageForProtocol3To5Schema } from "../../compatibility/protocol3To
3
3
  import { dataSourceParentSchema, pageParentSchema, } from "../../context/parent.js";
4
4
  import { notionBlockIdSchema } from "../../utils/ids.js";
5
5
  import { bridgePageSchema } from "../bridgePage.js";
6
- import { notionCreatePageIconSchema, notionPageCoverSchema, } from "../pageAppearance.js";
6
+ import { bridgePageCoverSchema, bridgePageIconSchema, } from "../pageAppearance.js";
7
7
  import { bridgePagePropertyWriteMapSchema } from "../properties/bridgePagePropertyMaps.js";
8
8
  // The schema accepts any string code. The type lists known codes for
9
9
  // autocomplete, with an open string fallback for newer senders.
@@ -73,12 +73,7 @@ export const createPageParentSchema = v.variant("type", [
73
73
  pageParentSchema,
74
74
  dataSourceParentSchema,
75
75
  ]);
76
- /**
77
- * The sandbox sends this message to ask the host to create a page.
78
- */
79
- const createPageMessageBaseSchema = {
80
- type: v.literal("createPage"),
81
- requestId: v.string(),
76
+ const createPageBaseEntries = {
82
77
  /**
83
78
  * Property values, keyed by raw property IDs from Notion.
84
79
  *
@@ -87,20 +82,37 @@ const createPageMessageBaseSchema = {
87
82
  * those keys before it sends this message.
88
83
  */
89
84
  properties: bridgePagePropertyWriteMapSchema,
90
- icon: v.optional(notionCreatePageIconSchema),
91
- cover: v.optional(notionPageCoverSchema),
85
+ icon: v.optional(bridgePageIconSchema),
86
+ cover: v.optional(bridgePageCoverSchema),
87
+ };
88
+ const createPageUnderPageArgsSchema = v.object({
89
+ ...createPageBaseEntries,
90
+ parent: pageParentSchema,
91
+ position: v.optional(notionCreatePagePositionSchema),
92
+ });
93
+ const createPageUnderDataSourceArgsSchema = v.object({
94
+ ...createPageBaseEntries,
95
+ parent: dataSourceParentSchema,
96
+ position: v.optional(v.never()),
97
+ });
98
+ /** Arguments for page creation, without the message envelope. */
99
+ export const createPageArgsSchema = v.union([
100
+ createPageUnderPageArgsSchema,
101
+ createPageUnderDataSourceArgsSchema,
102
+ ]);
103
+ const createPageMessageEntries = {
104
+ type: v.literal("createPage"),
105
+ requestId: v.string(),
92
106
  };
93
107
  // Use a variant so this parent-dependent union can be nested in
94
108
  // sandboxToHostMessageSchema's type discriminator.
95
109
  export const createPageMessageSchema = v.variant("type", [
96
110
  v.object({
97
- ...createPageMessageBaseSchema,
98
- parent: pageParentSchema,
99
- position: v.optional(notionCreatePagePositionSchema),
111
+ ...createPageMessageEntries,
112
+ ...createPageUnderPageArgsSchema.entries,
100
113
  }),
101
114
  v.object({
102
- ...createPageMessageBaseSchema,
103
- parent: dataSourceParentSchema,
104
- position: v.optional(v.never()),
115
+ ...createPageMessageEntries,
116
+ ...createPageUnderDataSourceArgsSchema.entries,
105
117
  }),
106
118
  ]);
@@ -40,6 +40,9 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
40
40
  }, undefined>, v.ObjectSchema<{
41
41
  readonly type: v.LiteralSchema<"agent_id", undefined>;
42
42
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
43
+ }, undefined>, v.ObjectSchema<{
44
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
45
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
43
46
  }, undefined>, v.ObjectSchema<{
44
47
  readonly type: v.LiteralSchema<"unavailable", undefined>;
45
48
  }, undefined>], undefined>;
@@ -182,17 +185,17 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
182
185
  readonly type: v.LiteralSchema<"files", undefined>;
183
186
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
184
187
  readonly type: v.LiteralSchema<"external", undefined>;
185
- readonly name: v.StringSchema<undefined>;
186
188
  readonly external: v.ObjectSchema<{
187
189
  readonly url: v.StringSchema<undefined>;
188
190
  }, undefined>;
191
+ readonly name: v.StringSchema<undefined>;
189
192
  }, undefined>, v.ObjectSchema<{
190
193
  readonly type: v.LiteralSchema<"file", undefined>;
191
- readonly name: v.StringSchema<undefined>;
192
194
  readonly file: v.ObjectSchema<{
193
195
  readonly url: v.StringSchema<undefined>;
194
196
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
195
197
  }, undefined>;
198
+ readonly name: v.StringSchema<undefined>;
196
199
  }, undefined>], undefined>, undefined>;
197
200
  }, undefined>, v.ObjectSchema<{
198
201
  readonly id: v.StringSchema<undefined>;
@@ -241,10 +244,6 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
241
244
  readonly id: v.StringSchema<undefined>;
242
245
  readonly type: v.LiteralSchema<"formula", undefined>;
243
246
  readonly formula: v.StringSchema<undefined>;
244
- }, undefined>, v.ObjectSchema<{
245
- readonly id: v.StringSchema<undefined>;
246
- readonly type: v.LiteralSchema<"location", undefined>;
247
- readonly location: v.StringSchema<undefined>;
248
247
  }, undefined>, v.ObjectSchema<{
249
248
  readonly id: v.StringSchema<undefined>;
250
249
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -270,7 +269,7 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
270
269
  readonly type: v.LiteralSchema<"icon", undefined>;
271
270
  readonly icon: v.LooseObjectSchema<{
272
271
  readonly name: v.StringSchema<undefined>;
273
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
272
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
274
273
  }, undefined>;
275
274
  }, undefined>, v.ObjectSchema<{
276
275
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -343,6 +342,9 @@ export declare const getPageResultMessageWithProtocol3To5CompatibilitySchema: v.
343
342
  }, undefined>, v.ObjectSchema<{
344
343
  readonly type: v.LiteralSchema<"agent_id", undefined>;
345
344
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
345
+ }, undefined>, v.ObjectSchema<{
346
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
347
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
346
348
  }, undefined>, v.ObjectSchema<{
347
349
  readonly type: v.LiteralSchema<"unavailable", undefined>;
348
350
  }, undefined>], undefined>;
@@ -485,17 +487,17 @@ export declare const getPageResultMessageWithProtocol3To5CompatibilitySchema: v.
485
487
  readonly type: v.LiteralSchema<"files", undefined>;
486
488
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
487
489
  readonly type: v.LiteralSchema<"external", undefined>;
488
- readonly name: v.StringSchema<undefined>;
489
490
  readonly external: v.ObjectSchema<{
490
491
  readonly url: v.StringSchema<undefined>;
491
492
  }, undefined>;
493
+ readonly name: v.StringSchema<undefined>;
492
494
  }, undefined>, v.ObjectSchema<{
493
495
  readonly type: v.LiteralSchema<"file", undefined>;
494
- readonly name: v.StringSchema<undefined>;
495
496
  readonly file: v.ObjectSchema<{
496
497
  readonly url: v.StringSchema<undefined>;
497
498
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
498
499
  }, undefined>;
500
+ readonly name: v.StringSchema<undefined>;
499
501
  }, undefined>], undefined>, undefined>;
500
502
  }, undefined>, v.ObjectSchema<{
501
503
  readonly id: v.StringSchema<undefined>;
@@ -544,10 +546,6 @@ export declare const getPageResultMessageWithProtocol3To5CompatibilitySchema: v.
544
546
  readonly id: v.StringSchema<undefined>;
545
547
  readonly type: v.LiteralSchema<"formula", undefined>;
546
548
  readonly formula: v.StringSchema<undefined>;
547
- }, undefined>, v.ObjectSchema<{
548
- readonly id: v.StringSchema<undefined>;
549
- readonly type: v.LiteralSchema<"location", undefined>;
550
- readonly location: v.StringSchema<undefined>;
551
549
  }, undefined>, v.ObjectSchema<{
552
550
  readonly id: v.StringSchema<undefined>;
553
551
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -573,7 +571,7 @@ export declare const getPageResultMessageWithProtocol3To5CompatibilitySchema: v.
573
571
  readonly type: v.LiteralSchema<"icon", undefined>;
574
572
  readonly icon: v.LooseObjectSchema<{
575
573
  readonly name: v.StringSchema<undefined>;
576
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
574
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
577
575
  }, undefined>;
578
576
  }, undefined>, v.ObjectSchema<{
579
577
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -631,6 +629,9 @@ export declare const getPageResultMessageWithProtocol3To5CompatibilitySchema: v.
631
629
  }, undefined>, v.ObjectSchema<{
632
630
  readonly type: v.LiteralSchema<"agent_id", undefined>;
633
631
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
632
+ }, undefined>, v.ObjectSchema<{
633
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
634
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
634
635
  }, undefined>, v.ObjectSchema<{
635
636
  readonly type: v.LiteralSchema<"unavailable", undefined>;
636
637
  }, undefined>], undefined>;
@@ -773,17 +774,17 @@ export declare const getPageResultMessageWithProtocol3To5CompatibilitySchema: v.
773
774
  readonly type: v.LiteralSchema<"files", undefined>;
774
775
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
775
776
  readonly type: v.LiteralSchema<"external", undefined>;
776
- readonly name: v.StringSchema<undefined>;
777
777
  readonly external: v.ObjectSchema<{
778
778
  readonly url: v.StringSchema<undefined>;
779
779
  }, undefined>;
780
+ readonly name: v.StringSchema<undefined>;
780
781
  }, undefined>, v.ObjectSchema<{
781
782
  readonly type: v.LiteralSchema<"file", undefined>;
782
- readonly name: v.StringSchema<undefined>;
783
783
  readonly file: v.ObjectSchema<{
784
784
  readonly url: v.StringSchema<undefined>;
785
785
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
786
786
  }, undefined>;
787
+ readonly name: v.StringSchema<undefined>;
787
788
  }, undefined>], undefined>, undefined>;
788
789
  }, undefined>, v.ObjectSchema<{
789
790
  readonly id: v.StringSchema<undefined>;
@@ -832,10 +833,6 @@ export declare const getPageResultMessageWithProtocol3To5CompatibilitySchema: v.
832
833
  readonly id: v.StringSchema<undefined>;
833
834
  readonly type: v.LiteralSchema<"formula", undefined>;
834
835
  readonly formula: v.StringSchema<undefined>;
835
- }, undefined>, v.ObjectSchema<{
836
- readonly id: v.StringSchema<undefined>;
837
- readonly type: v.LiteralSchema<"location", undefined>;
838
- readonly location: v.StringSchema<undefined>;
839
836
  }, undefined>, v.ObjectSchema<{
840
837
  readonly id: v.StringSchema<undefined>;
841
838
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -851,7 +848,7 @@ export declare const getPageResultMessageWithProtocol3To5CompatibilitySchema: v.
851
848
  readonly type: v.LiteralSchema<"icon", undefined>;
852
849
  readonly icon: v.LooseObjectSchema<{
853
850
  readonly name: v.StringSchema<undefined>;
854
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
851
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
855
852
  }, undefined>;
856
853
  }, undefined>, v.ObjectSchema<{
857
854
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -33,6 +33,9 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
33
33
  }, undefined>, v.ObjectSchema<{
34
34
  readonly type: v.LiteralSchema<"agent_id", undefined>;
35
35
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
36
+ }, undefined>, v.ObjectSchema<{
37
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
38
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
36
39
  }, undefined>, v.ObjectSchema<{
37
40
  readonly type: v.LiteralSchema<"unavailable", undefined>;
38
41
  }, undefined>], undefined>;
@@ -175,17 +178,17 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
175
178
  readonly type: v.LiteralSchema<"files", undefined>;
176
179
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
177
180
  readonly type: v.LiteralSchema<"external", undefined>;
178
- readonly name: v.StringSchema<undefined>;
179
181
  readonly external: v.ObjectSchema<{
180
182
  readonly url: v.StringSchema<undefined>;
181
183
  }, undefined>;
184
+ readonly name: v.StringSchema<undefined>;
182
185
  }, undefined>, v.ObjectSchema<{
183
186
  readonly type: v.LiteralSchema<"file", undefined>;
184
- readonly name: v.StringSchema<undefined>;
185
187
  readonly file: v.ObjectSchema<{
186
188
  readonly url: v.StringSchema<undefined>;
187
189
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
188
190
  }, undefined>;
191
+ readonly name: v.StringSchema<undefined>;
189
192
  }, undefined>], undefined>, undefined>;
190
193
  }, undefined>, v.ObjectSchema<{
191
194
  readonly id: v.StringSchema<undefined>;
@@ -234,10 +237,6 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
234
237
  readonly id: v.StringSchema<undefined>;
235
238
  readonly type: v.LiteralSchema<"formula", undefined>;
236
239
  readonly formula: v.StringSchema<undefined>;
237
- }, undefined>, v.ObjectSchema<{
238
- readonly id: v.StringSchema<undefined>;
239
- readonly type: v.LiteralSchema<"location", undefined>;
240
- readonly location: v.StringSchema<undefined>;
241
240
  }, undefined>, v.ObjectSchema<{
242
241
  readonly id: v.StringSchema<undefined>;
243
242
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -263,7 +262,7 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
263
262
  readonly type: v.LiteralSchema<"icon", undefined>;
264
263
  readonly icon: v.LooseObjectSchema<{
265
264
  readonly name: v.StringSchema<undefined>;
266
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
265
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
267
266
  }, undefined>;
268
267
  }, undefined>, v.ObjectSchema<{
269
268
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -336,6 +335,9 @@ export declare const updatePageResultMessageWithProtocol3To5CompatibilitySchema:
336
335
  }, undefined>, v.ObjectSchema<{
337
336
  readonly type: v.LiteralSchema<"agent_id", undefined>;
338
337
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
338
+ }, undefined>, v.ObjectSchema<{
339
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
340
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
339
341
  }, undefined>, v.ObjectSchema<{
340
342
  readonly type: v.LiteralSchema<"unavailable", undefined>;
341
343
  }, undefined>], undefined>;
@@ -478,17 +480,17 @@ export declare const updatePageResultMessageWithProtocol3To5CompatibilitySchema:
478
480
  readonly type: v.LiteralSchema<"files", undefined>;
479
481
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
480
482
  readonly type: v.LiteralSchema<"external", undefined>;
481
- readonly name: v.StringSchema<undefined>;
482
483
  readonly external: v.ObjectSchema<{
483
484
  readonly url: v.StringSchema<undefined>;
484
485
  }, undefined>;
486
+ readonly name: v.StringSchema<undefined>;
485
487
  }, undefined>, v.ObjectSchema<{
486
488
  readonly type: v.LiteralSchema<"file", undefined>;
487
- readonly name: v.StringSchema<undefined>;
488
489
  readonly file: v.ObjectSchema<{
489
490
  readonly url: v.StringSchema<undefined>;
490
491
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
491
492
  }, undefined>;
493
+ readonly name: v.StringSchema<undefined>;
492
494
  }, undefined>], undefined>, undefined>;
493
495
  }, undefined>, v.ObjectSchema<{
494
496
  readonly id: v.StringSchema<undefined>;
@@ -537,10 +539,6 @@ export declare const updatePageResultMessageWithProtocol3To5CompatibilitySchema:
537
539
  readonly id: v.StringSchema<undefined>;
538
540
  readonly type: v.LiteralSchema<"formula", undefined>;
539
541
  readonly formula: v.StringSchema<undefined>;
540
- }, undefined>, v.ObjectSchema<{
541
- readonly id: v.StringSchema<undefined>;
542
- readonly type: v.LiteralSchema<"location", undefined>;
543
- readonly location: v.StringSchema<undefined>;
544
542
  }, undefined>, v.ObjectSchema<{
545
543
  readonly id: v.StringSchema<undefined>;
546
544
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -566,7 +564,7 @@ export declare const updatePageResultMessageWithProtocol3To5CompatibilitySchema:
566
564
  readonly type: v.LiteralSchema<"icon", undefined>;
567
565
  readonly icon: v.LooseObjectSchema<{
568
566
  readonly name: v.StringSchema<undefined>;
569
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
567
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
570
568
  }, undefined>;
571
569
  }, undefined>, v.ObjectSchema<{
572
570
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -624,6 +622,9 @@ export declare const updatePageResultMessageWithProtocol3To5CompatibilitySchema:
624
622
  }, undefined>, v.ObjectSchema<{
625
623
  readonly type: v.LiteralSchema<"agent_id", undefined>;
626
624
  readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
625
+ }, undefined>, v.ObjectSchema<{
626
+ readonly type: v.LiteralSchema<"app_installation_id", undefined>;
627
+ readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
627
628
  }, undefined>, v.ObjectSchema<{
628
629
  readonly type: v.LiteralSchema<"unavailable", undefined>;
629
630
  }, undefined>], undefined>;
@@ -766,17 +767,17 @@ export declare const updatePageResultMessageWithProtocol3To5CompatibilitySchema:
766
767
  readonly type: v.LiteralSchema<"files", undefined>;
767
768
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
768
769
  readonly type: v.LiteralSchema<"external", undefined>;
769
- readonly name: v.StringSchema<undefined>;
770
770
  readonly external: v.ObjectSchema<{
771
771
  readonly url: v.StringSchema<undefined>;
772
772
  }, undefined>;
773
+ readonly name: v.StringSchema<undefined>;
773
774
  }, undefined>, v.ObjectSchema<{
774
775
  readonly type: v.LiteralSchema<"file", undefined>;
775
- readonly name: v.StringSchema<undefined>;
776
776
  readonly file: v.ObjectSchema<{
777
777
  readonly url: v.StringSchema<undefined>;
778
778
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
779
779
  }, undefined>;
780
+ readonly name: v.StringSchema<undefined>;
780
781
  }, undefined>], undefined>, undefined>;
781
782
  }, undefined>, v.ObjectSchema<{
782
783
  readonly id: v.StringSchema<undefined>;
@@ -825,10 +826,6 @@ export declare const updatePageResultMessageWithProtocol3To5CompatibilitySchema:
825
826
  readonly id: v.StringSchema<undefined>;
826
827
  readonly type: v.LiteralSchema<"formula", undefined>;
827
828
  readonly formula: v.StringSchema<undefined>;
828
- }, undefined>, v.ObjectSchema<{
829
- readonly id: v.StringSchema<undefined>;
830
- readonly type: v.LiteralSchema<"location", undefined>;
831
- readonly location: v.StringSchema<undefined>;
832
829
  }, undefined>, v.ObjectSchema<{
833
830
  readonly id: v.StringSchema<undefined>;
834
831
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -844,7 +841,7 @@ export declare const updatePageResultMessageWithProtocol3To5CompatibilitySchema:
844
841
  readonly type: v.LiteralSchema<"icon", undefined>;
845
842
  readonly icon: v.LooseObjectSchema<{
846
843
  readonly name: v.StringSchema<undefined>;
847
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
844
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
848
845
  }, undefined>;
849
846
  }, undefined>, v.ObjectSchema<{
850
847
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -1051,17 +1048,17 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
1051
1048
  readonly type: v.LiteralSchema<"files", undefined>;
1052
1049
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
1053
1050
  readonly type: v.LiteralSchema<"external", undefined>;
1054
- readonly name: v.StringSchema<undefined>;
1055
1051
  readonly external: v.ObjectSchema<{
1056
1052
  readonly url: v.StringSchema<undefined>;
1057
1053
  }, undefined>;
1054
+ readonly name: v.StringSchema<undefined>;
1058
1055
  }, undefined>, v.ObjectSchema<{
1059
1056
  readonly type: v.LiteralSchema<"file", undefined>;
1060
- readonly name: v.StringSchema<undefined>;
1061
1057
  readonly file: v.ObjectSchema<{
1062
1058
  readonly url: v.StringSchema<undefined>;
1063
1059
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
1064
1060
  }, undefined>;
1061
+ readonly name: v.StringSchema<undefined>;
1065
1062
  }, undefined>], undefined>, undefined>;
1066
1063
  }, undefined>, v.ObjectSchema<{
1067
1064
  readonly id: v.StringSchema<undefined>;
@@ -1110,10 +1107,6 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
1110
1107
  readonly id: v.StringSchema<undefined>;
1111
1108
  readonly type: v.LiteralSchema<"formula", undefined>;
1112
1109
  readonly formula: v.StringSchema<undefined>;
1113
- }, undefined>, v.ObjectSchema<{
1114
- readonly id: v.StringSchema<undefined>;
1115
- readonly type: v.LiteralSchema<"location", undefined>;
1116
- readonly location: v.StringSchema<undefined>;
1117
1110
  }, undefined>, v.ObjectSchema<{
1118
1111
  readonly id: v.StringSchema<undefined>;
1119
1112
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -1127,7 +1120,7 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
1127
1120
  readonly type: v.LiteralSchema<"icon", undefined>;
1128
1121
  readonly icon: v.LooseObjectSchema<{
1129
1122
  readonly name: v.StringSchema<undefined>;
1130
- readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").NotionIconColor>, undefined>;
1123
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
1131
1124
  }, undefined>;
1132
1125
  }, undefined>, v.ObjectSchema<{
1133
1126
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -2,7 +2,7 @@ import * as v from "valibot";
2
2
  import { bridgePageForProtocol3To5Schema } from "../../compatibility/protocol3To5/bridgePage.js";
3
3
  import { notionDataSourceIdSchema, notionPageIdSchema, } from "../../utils/ids.js";
4
4
  import { bridgePageSchema } from "../bridgePage.js";
5
- import { notionPageCoverSchema, notionPageIconSchema, } from "../pageAppearance.js";
5
+ import { bridgePageCoverSchema, bridgePageIconSchema, } from "../pageAppearance.js";
6
6
  import { bridgePagePropertyWriteMapSchema } from "../properties/bridgePagePropertyMaps.js";
7
7
  // The schema accepts any string code. The type lists known codes for
8
8
  // autocomplete, with an open string fallback for newer senders.
@@ -59,7 +59,7 @@ export const updatePageMessageSchema = v.object({
59
59
  * by `useDataSource()`. The SDK resolves those keys before it sends this message.
60
60
  */
61
61
  properties: v.optional(bridgePagePropertyWriteMapSchema),
62
- icon: v.optional(notionPageIconSchema),
63
- cover: v.optional(notionPageCoverSchema),
62
+ icon: v.optional(bridgePageIconSchema),
63
+ cover: v.optional(bridgePageCoverSchema),
64
64
  archived: v.optional(v.boolean()),
65
65
  });
@@ -1,34 +1,9 @@
1
1
  import * as v from "valibot";
2
- export declare const notionEmojiIconSchema: v.ObjectSchema<{
3
- readonly type: v.LiteralSchema<"emoji", undefined>;
4
- readonly emoji: v.StringSchema<undefined>;
5
- }, undefined>;
6
- export declare const notionCustomEmojiIconSchema: v.ObjectSchema<{
7
- readonly type: v.LiteralSchema<"custom_emoji", undefined>;
8
- readonly custom_emoji: v.ObjectSchema<{
9
- readonly id: v.StringSchema<undefined>;
10
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
11
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
12
- }, undefined>;
13
- }, undefined>;
14
- export declare const notionExternalFileSchema: v.ObjectSchema<{
15
- readonly type: v.LiteralSchema<"external", undefined>;
16
- readonly external: v.ObjectSchema<{
17
- readonly url: v.StringSchema<undefined>;
18
- }, undefined>;
19
- }, undefined>;
20
- export declare const notionHostedFileSchema: v.ObjectSchema<{
21
- readonly type: v.LiteralSchema<"file", undefined>;
22
- readonly file: v.ObjectSchema<{
23
- readonly url: v.StringSchema<undefined>;
24
- readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
25
- }, undefined>;
26
- }, undefined>;
27
- export declare const notionPageIconSchema: v.VariantSchema<"type", [v.LooseObjectSchema<{
2
+ export declare const bridgePageIconSchema: v.VariantSchema<"type", [v.LooseObjectSchema<{
28
3
  readonly type: v.LiteralSchema<"icon", undefined>;
29
4
  readonly icon: v.LooseObjectSchema<{
30
5
  readonly name: v.StringSchema<undefined>;
31
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
6
+ readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").BridgeIconColor>, undefined>;
32
7
  }, undefined>;
33
8
  }, undefined>, v.ObjectSchema<{
34
9
  readonly type: v.LiteralSchema<"emoji", undefined>;
@@ -52,37 +27,8 @@ export declare const notionPageIconSchema: v.VariantSchema<"type", [v.LooseObjec
52
27
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
53
28
  }, undefined>;
54
29
  }, undefined>], undefined>;
55
- export type NotionPageIcon = v.InferOutput<typeof notionPageIconSchema>;
56
- export declare const notionPageCoverSchema: v.VariantSchema<"type", [v.ObjectSchema<{
57
- readonly type: v.LiteralSchema<"external", undefined>;
58
- readonly external: v.ObjectSchema<{
59
- readonly url: v.StringSchema<undefined>;
60
- }, undefined>;
61
- }, undefined>, v.ObjectSchema<{
62
- readonly type: v.LiteralSchema<"file", undefined>;
63
- readonly file: v.ObjectSchema<{
64
- readonly url: v.StringSchema<undefined>;
65
- readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
66
- }, undefined>;
67
- }, undefined>], undefined>;
68
- export type NotionPageCover = v.InferOutput<typeof notionPageCoverSchema>;
69
- export declare const notionCreatePageIconSchema: v.VariantSchema<"type", [v.LooseObjectSchema<{
70
- readonly type: v.LiteralSchema<"icon", undefined>;
71
- readonly icon: v.LooseObjectSchema<{
72
- readonly name: v.StringSchema<undefined>;
73
- readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
74
- }, undefined>;
75
- }, undefined>, v.ObjectSchema<{
76
- readonly type: v.LiteralSchema<"emoji", undefined>;
77
- readonly emoji: v.StringSchema<undefined>;
78
- }, undefined>, v.ObjectSchema<{
79
- readonly type: v.LiteralSchema<"custom_emoji", undefined>;
80
- readonly custom_emoji: v.ObjectSchema<{
81
- readonly id: v.StringSchema<undefined>;
82
- readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
83
- readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
84
- }, undefined>;
85
- }, undefined>, v.ObjectSchema<{
30
+ export type BridgePageIcon = v.InferOutput<typeof bridgePageIconSchema>;
31
+ export declare const bridgePageCoverSchema: v.VariantSchema<"type", [v.ObjectSchema<{
86
32
  readonly type: v.LiteralSchema<"external", undefined>;
87
33
  readonly external: v.ObjectSchema<{
88
34
  readonly url: v.StringSchema<undefined>;
@@ -94,4 +40,4 @@ export declare const notionCreatePageIconSchema: v.VariantSchema<"type", [v.Loos
94
40
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
95
41
  }, undefined>;
96
42
  }, undefined>], undefined>;
97
- export type NotionCreatePageIcon = v.InferOutput<typeof notionCreatePageIconSchema>;
43
+ export type BridgePageCover = v.InferOutput<typeof bridgePageCoverSchema>;
@@ -1,43 +1,14 @@
1
1
  import * as v from "valibot";
2
- import { notionNativeIconSchema } from "../icons.js";
3
- export const notionEmojiIconSchema = v.object({
4
- type: v.literal("emoji"),
5
- emoji: v.string(),
6
- });
7
- export const notionCustomEmojiIconSchema = v.object({
8
- type: v.literal("custom_emoji"),
9
- custom_emoji: v.object({
10
- id: v.string(),
11
- name: v.optional(v.string()),
12
- url: v.optional(v.string()),
13
- }),
14
- });
15
- export const notionExternalFileSchema = v.object({
16
- type: v.literal("external"),
17
- external: v.object({ url: v.string() }),
18
- });
19
- export const notionHostedFileSchema = v.object({
20
- type: v.literal("file"),
21
- file: v.object({
22
- url: v.string(),
23
- expiry_time: v.optional(v.string()),
24
- }),
25
- });
26
- export const notionPageIconSchema = v.variant("type", [
27
- notionNativeIconSchema,
28
- notionEmojiIconSchema,
29
- notionCustomEmojiIconSchema,
30
- notionExternalFileSchema,
31
- notionHostedFileSchema,
2
+ import { bridgeExternalFileSchema, bridgeNotionHostedFileSchema, } from "../files.js";
3
+ import { bridgeCustomEmojiSchema, bridgeEmojiSchema, bridgeIconSchema, } from "../icons.js";
4
+ export const bridgePageIconSchema = v.variant("type", [
5
+ bridgeIconSchema,
6
+ bridgeEmojiSchema,
7
+ bridgeCustomEmojiSchema,
8
+ bridgeExternalFileSchema,
9
+ bridgeNotionHostedFileSchema,
32
10
  ]);
33
- export const notionPageCoverSchema = v.variant("type", [
34
- notionExternalFileSchema,
35
- notionHostedFileSchema,
36
- ]);
37
- export const notionCreatePageIconSchema = v.variant("type", [
38
- notionNativeIconSchema,
39
- notionEmojiIconSchema,
40
- notionCustomEmojiIconSchema,
41
- notionExternalFileSchema,
42
- notionHostedFileSchema,
11
+ export const bridgePageCoverSchema = v.variant("type", [
12
+ bridgeExternalFileSchema,
13
+ bridgeNotionHostedFileSchema,
43
14
  ]);
@@ -138,17 +138,17 @@ export declare const bridgePagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
138
138
  readonly type: v.LiteralSchema<"files", undefined>;
139
139
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
140
140
  readonly type: v.LiteralSchema<"external", undefined>;
141
- readonly name: v.StringSchema<undefined>;
142
141
  readonly external: v.ObjectSchema<{
143
142
  readonly url: v.StringSchema<undefined>;
144
143
  }, undefined>;
144
+ readonly name: v.StringSchema<undefined>;
145
145
  }, undefined>, v.ObjectSchema<{
146
146
  readonly type: v.LiteralSchema<"file", undefined>;
147
- readonly name: v.StringSchema<undefined>;
148
147
  readonly file: v.ObjectSchema<{
149
148
  readonly url: v.StringSchema<undefined>;
150
149
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
151
150
  }, undefined>;
151
+ readonly name: v.StringSchema<undefined>;
152
152
  }, undefined>], undefined>, undefined>;
153
153
  }, undefined>, v.ObjectSchema<{
154
154
  readonly id: v.StringSchema<undefined>;
@@ -197,10 +197,6 @@ export declare const bridgePagePropertyWriteMapSchema: v.RecordSchema<v.StringSc
197
197
  readonly id: v.StringSchema<undefined>;
198
198
  readonly type: v.LiteralSchema<"formula", undefined>;
199
199
  readonly formula: v.StringSchema<undefined>;
200
- }, undefined>, v.ObjectSchema<{
201
- readonly id: v.StringSchema<undefined>;
202
- readonly type: v.LiteralSchema<"location", undefined>;
203
- readonly location: v.StringSchema<undefined>;
204
200
  }, undefined>, v.ObjectSchema<{
205
201
  readonly id: v.StringSchema<undefined>;
206
202
  readonly type: v.LiteralSchema<"rollup", undefined>;
@@ -349,17 +345,17 @@ export declare const bridgePagePropertyReadMapSchema: v.RecordSchema<v.StringSch
349
345
  readonly type: v.LiteralSchema<"files", undefined>;
350
346
  readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
351
347
  readonly type: v.LiteralSchema<"external", undefined>;
352
- readonly name: v.StringSchema<undefined>;
353
348
  readonly external: v.ObjectSchema<{
354
349
  readonly url: v.StringSchema<undefined>;
355
350
  }, undefined>;
351
+ readonly name: v.StringSchema<undefined>;
356
352
  }, undefined>, v.ObjectSchema<{
357
353
  readonly type: v.LiteralSchema<"file", undefined>;
358
- readonly name: v.StringSchema<undefined>;
359
354
  readonly file: v.ObjectSchema<{
360
355
  readonly url: v.StringSchema<undefined>;
361
356
  readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
362
357
  }, undefined>;
358
+ readonly name: v.StringSchema<undefined>;
363
359
  }, undefined>], undefined>, undefined>;
364
360
  }, undefined>, v.ObjectSchema<{
365
361
  readonly id: v.StringSchema<undefined>;
@@ -408,10 +404,6 @@ export declare const bridgePagePropertyReadMapSchema: v.RecordSchema<v.StringSch
408
404
  readonly id: v.StringSchema<undefined>;
409
405
  readonly type: v.LiteralSchema<"formula", undefined>;
410
406
  readonly formula: v.StringSchema<undefined>;
411
- }, undefined>, v.ObjectSchema<{
412
- readonly id: v.StringSchema<undefined>;
413
- readonly type: v.LiteralSchema<"location", undefined>;
414
- readonly location: v.StringSchema<undefined>;
415
407
  }, undefined>, v.ObjectSchema<{
416
408
  readonly id: v.StringSchema<undefined>;
417
409
  readonly type: v.LiteralSchema<"rollup", undefined>;