@notionhq/custom-blocks-host 0.5.2 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -0
- package/dist/browser.js +1 -1
- package/dist/compatibility/normalizeHostToSandboxMessage.d.ts.map +1 -1
- package/dist/compatibility/normalizeHostToSandboxMessage.js +5 -1
- package/dist/compatibility/normalizeSandboxToHostMessage.d.ts +100 -15
- package/dist/compatibility/normalizeSandboxToHostMessage.d.ts.map +1 -1
- package/dist/compatibility/pages/toIconForProtocol3To8.d.ts +4 -0
- package/dist/compatibility/pages/toIconForProtocol3To8.d.ts.map +1 -0
- package/dist/compatibility/pages/toIconForProtocol3To8.js +13 -0
- package/dist/compatibility/pages/toPageWithNullTextFallbackProperties.d.ts.map +1 -1
- package/dist/compatibility/pages/toPageWithNullTextFallbackProperties.js +0 -1
- package/dist/compatibility/protocol3To4/addMetadataReadSchemasForProtocol3To4.d.ts +15 -34
- package/dist/compatibility/protocol3To4/addMetadataReadSchemasForProtocol3To4.d.ts.map +1 -1
- package/dist/compatibility/protocol3To5/toPageForProtocol3To5.d.ts.map +1 -1
- package/dist/compatibility/protocol3To5/toPageForProtocol3To5.js +2 -1
- package/dist/compatibility/protocol3To5/toPropertyValueForProtocol3To5.d.ts.map +1 -1
- package/dist/compatibility/protocol3To5/toPropertyValueForProtocol3To5.js +0 -2
- package/dist/compatibility/protocol3To5/toQueryPageForProtocol3To5.d.ts +8 -8
- package/dist/compatibility/protocol6/normalizePageResultsForProtocol6.d.ts.map +1 -1
- package/dist/compatibility/protocol6/normalizePageResultsForProtocol6.js +9 -2
- package/dist/compatibility/protocol7To8/normalizePageResultsForProtocol7To8.d.ts +4 -0
- package/dist/compatibility/protocol7To8/normalizePageResultsForProtocol7To8.d.ts.map +1 -0
- package/dist/compatibility/protocol7To8/normalizePageResultsForProtocol7To8.js +16 -0
- package/dist/context/initialState.d.ts +39 -38
- package/dist/context/initialState.d.ts.map +1 -1
- package/dist/createCustomBlockHost.d.ts.map +1 -1
- package/dist/createCustomBlockHost.js +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/manifest/types.d.ts +13 -2
- package/dist/manifest/types.d.ts.map +1 -1
- package/dist/messages/createSandboxMessageRouter.d.ts +3 -2
- package/dist/messages/createSandboxMessageRouter.d.ts.map +1 -1
- package/dist/messages/createSandboxMessageRouter.js +7 -1
- package/dist/messages/invalidNativeIconColor.d.ts +5 -0
- package/dist/messages/invalidNativeIconColor.d.ts.map +1 -0
- package/dist/messages/invalidNativeIconColor.js +34 -0
- package/dist/pages/types.d.ts +2 -0
- package/dist/pages/types.d.ts.map +1 -1
- package/dist/protocol/compatibility/protocol3To5/bridgePage.d.ts +7 -5
- package/dist/protocol/dataSources/bridgeDataSourceBinding.d.ts +0 -4
- package/dist/protocol/dataSources/bridgeDataSourceBindings.d.ts +0 -4
- package/dist/protocol/dataSources/collectionSchema.d.ts +0 -4
- package/dist/protocol/dataSources/messages/dataSourcesChanged.d.ts +0 -4
- package/dist/protocol/dataSources/messages/queryDataSource.d.ts +14 -12
- package/dist/protocol/dataSources/notionDataSource.d.ts +0 -8
- package/dist/protocol/dataSources/properties/propertySchema.d.ts +3 -7
- package/dist/protocol/dataSources/properties/propertySchema.js +1 -3
- package/dist/protocol/handshake/connect.d.ts +13 -2
- package/dist/protocol/handshake/init.d.ts +13 -6
- package/dist/protocol/icons.d.ts +17 -0
- package/dist/protocol/icons.js +27 -0
- package/dist/protocol/index.d.ts +6 -5
- package/dist/protocol/index.js +4 -3
- package/dist/protocol/manifest/capabilities.d.ts +19 -8
- package/dist/protocol/manifest/capabilities.js +9 -3
- package/dist/protocol/manifest/manifest.d.ts +27 -4
- package/dist/protocol/manifest/manifest.js +6 -0
- package/dist/protocol/messages/hostToSandbox.d.ts +103 -83
- package/dist/protocol/messages/sandboxToHost.d.ts +100 -15
- package/dist/protocol/pages/bridgePage.d.ts +7 -6
- package/dist/protocol/pages/bridgePage.js +0 -1
- package/dist/protocol/pages/messages/createPage.d.ts +102 -26
- package/dist/protocol/pages/messages/createPage.js +3 -1
- package/dist/protocol/pages/messages/getPage.d.ts +21 -17
- package/dist/protocol/pages/messages/updatePage.d.ts +29 -23
- package/dist/protocol/pages/pageAppearance.d.ts +36 -1
- package/dist/protocol/pages/pageAppearance.js +9 -0
- package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +0 -8
- package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +0 -4
- package/dist/protocol/pages/properties/bridgePagePropertyValue.js +0 -5
- package/dist/protocol/utils/protocolVersion.d.ts +2 -1
- package/dist/protocol/utils/protocolVersion.js +3 -1
- package/docs/bridge/changelog.md +21 -1
- package/docs/bridge/protocol.md +20 -3
- package/docs/bridge/versioning.md +1 -0
- package/docs/compatibility.md +15 -7
- package/package.json +1 -1
- package/src/compatibility/normalizeHostToSandboxMessage.ts +5 -0
- package/src/compatibility/pages/toIconForProtocol3To8.ts +17 -0
- package/src/compatibility/pages/toPageWithNullTextFallbackProperties.ts +0 -1
- package/src/compatibility/protocol3To5/toPageForProtocol3To5.ts +2 -1
- package/src/compatibility/protocol3To5/toPropertyValueForProtocol3To5.ts +0 -2
- package/src/compatibility/protocol6/normalizePageResultsForProtocol6.ts +11 -2
- package/src/compatibility/protocol7To8/normalizePageResultsForProtocol7To8.ts +22 -0
- package/src/createCustomBlockHost.ts +1 -0
- package/src/index.ts +1 -0
- package/src/messages/createSandboxMessageRouter.ts +18 -2
- package/src/messages/invalidNativeIconColor.ts +43 -0
- package/src/pages/types.ts +3 -0
|
@@ -70,12 +70,23 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
70
70
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
71
71
|
readonly name: v.StringSchema<undefined>;
|
|
72
72
|
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", "
|
|
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>;
|
|
74
74
|
}, undefined>, undefined>, {}>;
|
|
75
75
|
}, undefined>, undefined>, {}>;
|
|
76
|
+
readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
77
|
+
readonly name: v.StringSchema<undefined>;
|
|
78
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
80
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
81
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
82
|
+
}, undefined>, v.ObjectSchema<{
|
|
83
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
84
|
+
readonly url: v.StringSchema<undefined>;
|
|
85
|
+
}, undefined>], undefined>, undefined>;
|
|
86
|
+
}, undefined>, undefined>, undefined>;
|
|
76
87
|
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
77
88
|
readonly capability: v.StringSchema<undefined>;
|
|
78
|
-
readonly resource: v.StringSchema<undefined>;
|
|
89
|
+
readonly resource: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>], undefined>;
|
|
79
90
|
}, undefined>, undefined>, undefined>;
|
|
80
91
|
}, undefined>;
|
|
81
92
|
readonly dataSources: v.ObjectSchema<{
|
|
@@ -196,10 +207,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
196
207
|
readonly name: v.StringSchema<undefined>;
|
|
197
208
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
198
209
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
199
|
-
}, undefined>, v.ObjectSchema<{
|
|
200
|
-
readonly name: v.StringSchema<undefined>;
|
|
201
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
202
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
203
210
|
}, undefined>, v.ObjectSchema<{
|
|
204
211
|
readonly name: v.StringSchema<undefined>;
|
|
205
212
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -429,10 +436,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
429
436
|
readonly name: v.StringSchema<undefined>;
|
|
430
437
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
431
438
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
432
|
-
}, undefined>, v.ObjectSchema<{
|
|
433
|
-
readonly name: v.StringSchema<undefined>;
|
|
434
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
435
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
436
439
|
}, undefined>, v.ObjectSchema<{
|
|
437
440
|
readonly name: v.StringSchema<undefined>;
|
|
438
441
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -754,10 +757,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
754
757
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
755
758
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
756
759
|
}, undefined>, undefined>;
|
|
757
|
-
}, undefined>, v.ObjectSchema<{
|
|
758
|
-
readonly id: v.StringSchema<undefined>;
|
|
759
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
760
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
761
760
|
}, undefined>, v.ObjectSchema<{
|
|
762
761
|
readonly id: v.StringSchema<undefined>;
|
|
763
762
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -793,10 +792,15 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
793
792
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
794
793
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
795
794
|
}, undefined>, undefined>, null>;
|
|
796
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
797
795
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
798
796
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
799
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
797
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
798
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
799
|
+
readonly icon: v.LooseObjectSchema<{
|
|
800
|
+
readonly name: v.StringSchema<undefined>;
|
|
801
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
802
|
+
}, undefined>;
|
|
803
|
+
}, undefined>, v.ObjectSchema<{
|
|
800
804
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
801
805
|
readonly emoji: v.StringSchema<undefined>;
|
|
802
806
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -1056,10 +1060,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1056
1060
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1057
1061
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1058
1062
|
}, undefined>, undefined>;
|
|
1059
|
-
}, undefined>, v.ObjectSchema<{
|
|
1060
|
-
readonly id: v.StringSchema<undefined>;
|
|
1061
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1062
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1063
1063
|
}, undefined>, v.ObjectSchema<{
|
|
1064
1064
|
readonly id: v.StringSchema<undefined>;
|
|
1065
1065
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1095,10 +1095,15 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1095
1095
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1096
1096
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1097
1097
|
}, undefined>, undefined>, null>;
|
|
1098
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1099
1098
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1100
1099
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1101
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
1100
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1101
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1102
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1103
|
+
readonly name: v.StringSchema<undefined>;
|
|
1104
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
1105
|
+
}, undefined>;
|
|
1106
|
+
}, undefined>, v.ObjectSchema<{
|
|
1102
1107
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1103
1108
|
readonly emoji: v.StringSchema<undefined>;
|
|
1104
1109
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -1357,10 +1362,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1357
1362
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1358
1363
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1359
1364
|
}, undefined>, undefined>;
|
|
1360
|
-
}, undefined>, v.ObjectSchema<{
|
|
1361
|
-
readonly id: v.StringSchema<undefined>;
|
|
1362
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1363
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1364
1365
|
}, undefined>, v.ObjectSchema<{
|
|
1365
1366
|
readonly id: v.StringSchema<undefined>;
|
|
1366
1367
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1396,10 +1397,15 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1396
1397
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1397
1398
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1398
1399
|
}, undefined>, undefined>, null>;
|
|
1399
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1400
1400
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1401
1401
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1402
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
1402
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1403
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1404
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1405
|
+
readonly name: v.StringSchema<undefined>;
|
|
1406
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
1407
|
+
}, undefined>;
|
|
1408
|
+
}, undefined>, v.ObjectSchema<{
|
|
1403
1409
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1404
1410
|
readonly emoji: v.StringSchema<undefined>;
|
|
1405
1411
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -1658,10 +1664,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1658
1664
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1659
1665
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1660
1666
|
}, undefined>, undefined>;
|
|
1661
|
-
}, undefined>, v.ObjectSchema<{
|
|
1662
|
-
readonly id: v.StringSchema<undefined>;
|
|
1663
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1664
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1665
1667
|
}, undefined>, v.ObjectSchema<{
|
|
1666
1668
|
readonly id: v.StringSchema<undefined>;
|
|
1667
1669
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1697,10 +1699,15 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1697
1699
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1698
1700
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1699
1701
|
}, undefined>, undefined>, null>;
|
|
1700
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1701
1702
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1702
1703
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1703
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
1704
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1705
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1706
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1707
|
+
readonly name: v.StringSchema<undefined>;
|
|
1708
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
1709
|
+
}, undefined>;
|
|
1710
|
+
}, undefined>, v.ObjectSchema<{
|
|
1704
1711
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1705
1712
|
readonly emoji: v.StringSchema<undefined>;
|
|
1706
1713
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -1823,12 +1830,23 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
1823
1830
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1824
1831
|
readonly name: v.StringSchema<undefined>;
|
|
1825
1832
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1826
|
-
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", "
|
|
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>;
|
|
1827
1834
|
}, undefined>, undefined>, {}>;
|
|
1828
1835
|
}, undefined>, undefined>, {}>;
|
|
1836
|
+
readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1837
|
+
readonly name: v.StringSchema<undefined>;
|
|
1838
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1839
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1840
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1841
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1842
|
+
}, undefined>, v.ObjectSchema<{
|
|
1843
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1844
|
+
readonly url: v.StringSchema<undefined>;
|
|
1845
|
+
}, undefined>], undefined>, undefined>;
|
|
1846
|
+
}, undefined>, undefined>, undefined>;
|
|
1829
1847
|
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1830
1848
|
readonly capability: v.StringSchema<undefined>;
|
|
1831
|
-
readonly resource: v.StringSchema<undefined>;
|
|
1849
|
+
readonly resource: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>], undefined>;
|
|
1832
1850
|
}, undefined>, undefined>, undefined>;
|
|
1833
1851
|
}, undefined>;
|
|
1834
1852
|
readonly dataSources: v.ObjectSchema<{
|
|
@@ -1949,10 +1967,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
1949
1967
|
readonly name: v.StringSchema<undefined>;
|
|
1950
1968
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1951
1969
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1952
|
-
}, undefined>, v.ObjectSchema<{
|
|
1953
|
-
readonly name: v.StringSchema<undefined>;
|
|
1954
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1955
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1956
1970
|
}, undefined>, v.ObjectSchema<{
|
|
1957
1971
|
readonly name: v.StringSchema<undefined>;
|
|
1958
1972
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2182,10 +2196,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2182
2196
|
readonly name: v.StringSchema<undefined>;
|
|
2183
2197
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2184
2198
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
2185
|
-
}, undefined>, v.ObjectSchema<{
|
|
2186
|
-
readonly name: v.StringSchema<undefined>;
|
|
2187
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2188
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2189
2199
|
}, undefined>, v.ObjectSchema<{
|
|
2190
2200
|
readonly name: v.StringSchema<undefined>;
|
|
2191
2201
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2507,10 +2517,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2507
2517
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2508
2518
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2509
2519
|
}, undefined>, undefined>;
|
|
2510
|
-
}, undefined>, v.ObjectSchema<{
|
|
2511
|
-
readonly id: v.StringSchema<undefined>;
|
|
2512
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2513
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2514
2520
|
}, undefined>, v.ObjectSchema<{
|
|
2515
2521
|
readonly id: v.StringSchema<undefined>;
|
|
2516
2522
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -2546,10 +2552,15 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2546
2552
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2547
2553
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2548
2554
|
}, undefined>, undefined>, null>;
|
|
2549
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2550
2555
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2551
2556
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2552
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
2557
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
2558
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
2559
|
+
readonly icon: v.LooseObjectSchema<{
|
|
2560
|
+
readonly name: v.StringSchema<undefined>;
|
|
2561
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
2562
|
+
}, undefined>;
|
|
2563
|
+
}, undefined>, v.ObjectSchema<{
|
|
2553
2564
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
2554
2565
|
readonly emoji: v.StringSchema<undefined>;
|
|
2555
2566
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -2874,10 +2885,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2874
2885
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2875
2886
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2876
2887
|
}, undefined>, undefined>;
|
|
2877
|
-
}, undefined>, v.ObjectSchema<{
|
|
2878
|
-
readonly id: v.StringSchema<undefined>;
|
|
2879
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2880
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2881
2888
|
}, undefined>, v.ObjectSchema<{
|
|
2882
2889
|
readonly id: v.StringSchema<undefined>;
|
|
2883
2890
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -2913,10 +2920,15 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2913
2920
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2914
2921
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2915
2922
|
}, undefined>, undefined>, null>;
|
|
2916
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2917
2923
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2918
2924
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2919
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
2925
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
2926
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
2927
|
+
readonly icon: v.LooseObjectSchema<{
|
|
2928
|
+
readonly name: v.StringSchema<undefined>;
|
|
2929
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
2930
|
+
}, undefined>;
|
|
2931
|
+
}, undefined>, v.ObjectSchema<{
|
|
2920
2932
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
2921
2933
|
readonly emoji: v.StringSchema<undefined>;
|
|
2922
2934
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -3161,10 +3173,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3161
3173
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3162
3174
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3163
3175
|
}, undefined>, undefined>;
|
|
3164
|
-
}, undefined>, v.ObjectSchema<{
|
|
3165
|
-
readonly id: v.StringSchema<undefined>;
|
|
3166
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3167
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3168
3176
|
}, undefined>, v.ObjectSchema<{
|
|
3169
3177
|
readonly id: v.StringSchema<undefined>;
|
|
3170
3178
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -3192,7 +3200,13 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3192
3200
|
}, undefined>], undefined>, undefined>;
|
|
3193
3201
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3194
3202
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3195
|
-
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.
|
|
3203
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
3204
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
3205
|
+
readonly icon: v.LooseObjectSchema<{
|
|
3206
|
+
readonly name: v.StringSchema<undefined>;
|
|
3207
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
3208
|
+
}, undefined>;
|
|
3209
|
+
}, undefined>, v.ObjectSchema<{
|
|
3196
3210
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
3197
3211
|
readonly emoji: v.StringSchema<undefined>;
|
|
3198
3212
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -3451,10 +3465,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3451
3465
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3452
3466
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3453
3467
|
}, undefined>, undefined>;
|
|
3454
|
-
}, undefined>, v.ObjectSchema<{
|
|
3455
|
-
readonly id: v.StringSchema<undefined>;
|
|
3456
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3457
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3458
3468
|
}, undefined>, v.ObjectSchema<{
|
|
3459
3469
|
readonly id: v.StringSchema<undefined>;
|
|
3460
3470
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -3490,10 +3500,15 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3490
3500
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3491
3501
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3492
3502
|
}, undefined>, undefined>, null>;
|
|
3493
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3494
3503
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3495
3504
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3496
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
3505
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
3506
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
3507
|
+
readonly icon: v.LooseObjectSchema<{
|
|
3508
|
+
readonly name: v.StringSchema<undefined>;
|
|
3509
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
3510
|
+
}, undefined>;
|
|
3511
|
+
}, undefined>, v.ObjectSchema<{
|
|
3497
3512
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
3498
3513
|
readonly emoji: v.StringSchema<undefined>;
|
|
3499
3514
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -3738,10 +3753,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3738
3753
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3739
3754
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3740
3755
|
}, undefined>, undefined>;
|
|
3741
|
-
}, undefined>, v.ObjectSchema<{
|
|
3742
|
-
readonly id: v.StringSchema<undefined>;
|
|
3743
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3744
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3745
3756
|
}, undefined>, v.ObjectSchema<{
|
|
3746
3757
|
readonly id: v.StringSchema<undefined>;
|
|
3747
3758
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -3769,7 +3780,13 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3769
3780
|
}, undefined>], undefined>, undefined>;
|
|
3770
3781
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3771
3782
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3772
|
-
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.
|
|
3783
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
3784
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
3785
|
+
readonly icon: v.LooseObjectSchema<{
|
|
3786
|
+
readonly name: v.StringSchema<undefined>;
|
|
3787
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
3788
|
+
}, undefined>;
|
|
3789
|
+
}, undefined>, v.ObjectSchema<{
|
|
3773
3790
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
3774
3791
|
readonly emoji: v.StringSchema<undefined>;
|
|
3775
3792
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -4028,10 +4045,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
4028
4045
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
4029
4046
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4030
4047
|
}, undefined>, undefined>;
|
|
4031
|
-
}, undefined>, v.ObjectSchema<{
|
|
4032
|
-
readonly id: v.StringSchema<undefined>;
|
|
4033
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
4034
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4035
4048
|
}, undefined>, v.ObjectSchema<{
|
|
4036
4049
|
readonly id: v.StringSchema<undefined>;
|
|
4037
4050
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -4067,10 +4080,15 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
4067
4080
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
4068
4081
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4069
4082
|
}, undefined>, undefined>, null>;
|
|
4070
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
4071
4083
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
4072
4084
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
4073
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
4085
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
4086
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
4087
|
+
readonly icon: v.LooseObjectSchema<{
|
|
4088
|
+
readonly name: v.StringSchema<undefined>;
|
|
4089
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
4090
|
+
}, undefined>;
|
|
4091
|
+
}, undefined>, v.ObjectSchema<{
|
|
4074
4092
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
4075
4093
|
readonly emoji: v.StringSchema<undefined>;
|
|
4076
4094
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -4315,10 +4333,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
4315
4333
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
4316
4334
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4317
4335
|
}, undefined>, undefined>;
|
|
4318
|
-
}, undefined>, v.ObjectSchema<{
|
|
4319
|
-
readonly id: v.StringSchema<undefined>;
|
|
4320
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
4321
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4322
4336
|
}, undefined>, v.ObjectSchema<{
|
|
4323
4337
|
readonly id: v.StringSchema<undefined>;
|
|
4324
4338
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -4346,7 +4360,13 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
4346
4360
|
}, undefined>], undefined>, undefined>;
|
|
4347
4361
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4348
4362
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4349
|
-
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.
|
|
4363
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
4364
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
4365
|
+
readonly icon: v.LooseObjectSchema<{
|
|
4366
|
+
readonly name: v.StringSchema<undefined>;
|
|
4367
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
4368
|
+
}, undefined>;
|
|
4369
|
+
}, undefined>, v.ObjectSchema<{
|
|
4350
4370
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
4351
4371
|
readonly emoji: v.StringSchema<undefined>;
|
|
4352
4372
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -31,12 +31,23 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
31
31
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
32
32
|
readonly name: v.StringSchema<undefined>;
|
|
33
33
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
-
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", "
|
|
34
|
+
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>;
|
|
35
35
|
}, undefined>, undefined>, {}>;
|
|
36
36
|
}, undefined>, undefined>, {}>;
|
|
37
|
+
readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
38
|
+
readonly name: v.StringSchema<undefined>;
|
|
39
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
41
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
42
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
43
|
+
}, undefined>, v.ObjectSchema<{
|
|
44
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
45
|
+
readonly url: v.StringSchema<undefined>;
|
|
46
|
+
}, undefined>], undefined>, undefined>;
|
|
47
|
+
}, undefined>, undefined>, undefined>;
|
|
37
48
|
readonly capabilities: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
38
49
|
readonly capability: v.StringSchema<undefined>;
|
|
39
|
-
readonly resource: v.StringSchema<undefined>;
|
|
50
|
+
readonly resource: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>], undefined>;
|
|
40
51
|
}, undefined>, undefined>, undefined>;
|
|
41
52
|
}, undefined>, undefined>;
|
|
42
53
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -768,10 +779,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
768
779
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
769
780
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
770
781
|
}, undefined>, undefined>;
|
|
771
|
-
}, undefined>, v.ObjectSchema<{
|
|
772
|
-
readonly id: v.StringSchema<undefined>;
|
|
773
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
774
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
775
782
|
}, undefined>, v.ObjectSchema<{
|
|
776
783
|
readonly id: v.StringSchema<undefined>;
|
|
777
784
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -797,6 +804,46 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
797
804
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
798
805
|
readonly verification: v.StringSchema<undefined>;
|
|
799
806
|
}, undefined>], undefined>, undefined>;
|
|
807
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
808
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
809
|
+
readonly icon: v.LooseObjectSchema<{
|
|
810
|
+
readonly name: v.StringSchema<undefined>;
|
|
811
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
812
|
+
}, undefined>;
|
|
813
|
+
}, undefined>, v.ObjectSchema<{
|
|
814
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
815
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
816
|
+
}, undefined>, v.ObjectSchema<{
|
|
817
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
818
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
819
|
+
readonly id: v.StringSchema<undefined>;
|
|
820
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
821
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
822
|
+
}, undefined>;
|
|
823
|
+
}, undefined>, v.ObjectSchema<{
|
|
824
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
825
|
+
readonly external: v.ObjectSchema<{
|
|
826
|
+
readonly url: v.StringSchema<undefined>;
|
|
827
|
+
}, undefined>;
|
|
828
|
+
}, undefined>, v.ObjectSchema<{
|
|
829
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
830
|
+
readonly file: v.ObjectSchema<{
|
|
831
|
+
readonly url: v.StringSchema<undefined>;
|
|
832
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
833
|
+
}, undefined>;
|
|
834
|
+
}, undefined>], undefined>, undefined>;
|
|
835
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
836
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
837
|
+
readonly external: v.ObjectSchema<{
|
|
838
|
+
readonly url: v.StringSchema<undefined>;
|
|
839
|
+
}, undefined>;
|
|
840
|
+
}, undefined>, v.ObjectSchema<{
|
|
841
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
842
|
+
readonly file: v.ObjectSchema<{
|
|
843
|
+
readonly url: v.StringSchema<undefined>;
|
|
844
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
845
|
+
}, undefined>;
|
|
846
|
+
}, undefined>], undefined>, undefined>;
|
|
800
847
|
readonly parent: v.ObjectSchema<{
|
|
801
848
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
802
849
|
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
@@ -1001,10 +1048,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1001
1048
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1002
1049
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1003
1050
|
}, undefined>, undefined>;
|
|
1004
|
-
}, undefined>, v.ObjectSchema<{
|
|
1005
|
-
readonly id: v.StringSchema<undefined>;
|
|
1006
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1007
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1008
1051
|
}, undefined>, v.ObjectSchema<{
|
|
1009
1052
|
readonly id: v.StringSchema<undefined>;
|
|
1010
1053
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1030,6 +1073,46 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1030
1073
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1031
1074
|
readonly verification: v.StringSchema<undefined>;
|
|
1032
1075
|
}, undefined>], undefined>, undefined>;
|
|
1076
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1077
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1078
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1079
|
+
readonly name: v.StringSchema<undefined>;
|
|
1080
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
1081
|
+
}, undefined>;
|
|
1082
|
+
}, undefined>, v.ObjectSchema<{
|
|
1083
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1084
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1085
|
+
}, undefined>, v.ObjectSchema<{
|
|
1086
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
1087
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
1088
|
+
readonly id: v.StringSchema<undefined>;
|
|
1089
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1090
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1091
|
+
}, undefined>;
|
|
1092
|
+
}, undefined>, v.ObjectSchema<{
|
|
1093
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1094
|
+
readonly external: v.ObjectSchema<{
|
|
1095
|
+
readonly url: v.StringSchema<undefined>;
|
|
1096
|
+
}, undefined>;
|
|
1097
|
+
}, undefined>, v.ObjectSchema<{
|
|
1098
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1099
|
+
readonly file: v.ObjectSchema<{
|
|
1100
|
+
readonly url: v.StringSchema<undefined>;
|
|
1101
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1102
|
+
}, undefined>;
|
|
1103
|
+
}, undefined>], undefined>, undefined>;
|
|
1104
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1105
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1106
|
+
readonly external: v.ObjectSchema<{
|
|
1107
|
+
readonly url: v.StringSchema<undefined>;
|
|
1108
|
+
}, undefined>;
|
|
1109
|
+
}, undefined>, v.ObjectSchema<{
|
|
1110
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1111
|
+
readonly file: v.ObjectSchema<{
|
|
1112
|
+
readonly url: v.StringSchema<undefined>;
|
|
1113
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1114
|
+
}, undefined>;
|
|
1115
|
+
}, undefined>], undefined>, undefined>;
|
|
1033
1116
|
readonly parent: v.ObjectSchema<{
|
|
1034
1117
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1035
1118
|
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
@@ -1249,10 +1332,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1249
1332
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1250
1333
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1251
1334
|
}, undefined>, undefined>;
|
|
1252
|
-
}, undefined>, v.ObjectSchema<{
|
|
1253
|
-
readonly id: v.StringSchema<undefined>;
|
|
1254
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1255
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1256
1335
|
}, undefined>, v.ObjectSchema<{
|
|
1257
1336
|
readonly id: v.StringSchema<undefined>;
|
|
1258
1337
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1278,7 +1357,13 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1278
1357
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1279
1358
|
readonly verification: v.StringSchema<undefined>;
|
|
1280
1359
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
1281
|
-
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.
|
|
1360
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1361
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1362
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1363
|
+
readonly name: v.StringSchema<undefined>;
|
|
1364
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
1365
|
+
}, undefined>;
|
|
1366
|
+
}, undefined>, v.ObjectSchema<{
|
|
1282
1367
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1283
1368
|
readonly emoji: v.StringSchema<undefined>;
|
|
1284
1369
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -206,10 +206,6 @@ export declare const bridgePageSchema: v.ObjectSchema<{
|
|
|
206
206
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
207
207
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
208
208
|
}, undefined>, undefined>;
|
|
209
|
-
}, undefined>, v.ObjectSchema<{
|
|
210
|
-
readonly id: v.StringSchema<undefined>;
|
|
211
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
212
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
213
209
|
}, undefined>, v.ObjectSchema<{
|
|
214
210
|
readonly id: v.StringSchema<undefined>;
|
|
215
211
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -245,10 +241,15 @@ export declare const bridgePageSchema: v.ObjectSchema<{
|
|
|
245
241
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
246
242
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
247
243
|
}, undefined>, undefined>, null>;
|
|
248
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
249
244
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
250
245
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
251
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
246
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
247
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
248
|
+
readonly icon: v.LooseObjectSchema<{
|
|
249
|
+
readonly name: v.StringSchema<undefined>;
|
|
250
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../icons.js").NotionIconColor>, undefined>;
|
|
251
|
+
}, undefined>;
|
|
252
|
+
}, undefined>, v.ObjectSchema<{
|
|
252
253
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
253
254
|
readonly emoji: v.StringSchema<undefined>;
|
|
254
255
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -11,7 +11,6 @@ export const bridgePageSchema = v.object({
|
|
|
11
11
|
properties: bridgePagePropertyReadMapSchema,
|
|
12
12
|
created_by: v.optional(metadataActorSchema, null),
|
|
13
13
|
last_edited_by: v.optional(metadataActorSchema, null),
|
|
14
|
-
last_visited_time: v.optional(v.nullable(v.string()), null),
|
|
15
14
|
created_time: v.optional(v.nullable(v.string()), null),
|
|
16
15
|
last_edited_time: v.optional(v.nullable(v.string()), null),
|
|
17
16
|
icon: v.optional(v.nullable(notionPageIconSchema), null),
|