@notionhq/custom-blocks 0.3.5 → 0.5.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 +2 -2
- package/dist/bridge/SandboxBridge.d.ts +4 -39
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/SandboxBridge.js +36 -142
- package/dist/bridge/requests.d.ts +35 -0
- package/dist/bridge/requests.d.ts.map +1 -0
- package/dist/bridge/requests.js +97 -0
- package/dist/dataSources/bridge/resolveDataSourceQuery.d.ts.map +1 -1
- package/dist/dataSources/bridge/resolveDataSourceQuery.js +18 -4
- package/dist/dataSources/bridge/resolveDataSources.js +4 -4
- package/dist/dataSources/createDataSourcePage.d.ts.map +1 -1
- package/dist/dataSources/createDataSourcePage.js +5 -1
- package/dist/dataSources/filters/resolveFilter.d.ts.map +1 -1
- package/dist/dataSources/filters/resolveFilter.js +13 -3
- package/dist/dataSources/filters/types.d.ts +9 -3
- package/dist/dataSources/filters/types.d.ts.map +1 -1
- package/dist/dataSources/properties/resolvePropertyAddress.js +1 -1
- package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.js +1 -1
- package/dist/dataSources/resolvePageDataSource.js +2 -2
- package/dist/dataSources/subscribeToDataSource.d.ts +1 -4
- package/dist/dataSources/subscribeToDataSource.d.ts.map +1 -1
- package/dist/dataSources/subscribeToDataSource.js +2 -3
- package/dist/dataSources/types.d.ts +2 -0
- package/dist/dataSources/types.d.ts.map +1 -1
- package/dist/files/files.d.ts +2 -0
- package/dist/files/files.d.ts.map +1 -0
- package/dist/files/files.js +1 -0
- package/dist/files/icons.d.ts +2 -0
- package/dist/files/icons.d.ts.map +1 -0
- package/dist/files/icons.js +1 -0
- package/dist/index.d.ts +5 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/initialization/getInitBindingError.js +2 -2
- package/dist/manifest/types.d.ts +5 -4
- package/dist/manifest/types.d.ts.map +1 -1
- package/dist/navigation/openExternalUrl.d.ts.map +1 -1
- package/dist/navigation/openExternalUrl.js +2 -1
- package/dist/pages/bridge/getPageForDataSource.d.ts.map +1 -1
- package/dist/pages/bridge/getPageForDataSource.js +3 -2
- package/dist/pages/bridge/sendCreatePageRequest.d.ts.map +1 -1
- package/dist/pages/bridge/sendCreatePageRequest.js +2 -1
- package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts +14 -2
- package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.d.ts.map +1 -1
- package/dist/pages/bridge/toNotionPageFieldsFromBridgePage.js +0 -1
- package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.d.ts.map +1 -1
- package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.js +0 -8
- package/dist/pages/bridge/updatePage.d.ts.map +1 -1
- package/dist/pages/bridge/updatePage.js +20 -5
- package/dist/pages/createPage.d.ts.map +1 -1
- package/dist/pages/createPage.js +5 -1
- package/dist/pages/openPage.d.ts.map +1 -1
- package/dist/pages/openPage.js +2 -1
- package/dist/pages/properties/getPropertyByKey.js +2 -2
- package/dist/pages/types.d.ts +10 -14
- package/dist/pages/types.d.ts.map +1 -1
- package/dist/protocol/compatibility/protocol3To10/dataSourceBindings.d.ts +530 -0
- package/dist/protocol/compatibility/protocol3To10/dataSourceBindings.js +25 -0
- package/dist/protocol/compatibility/protocol3To5/bridgePage.d.ts +12 -11
- package/dist/protocol/compatibility/protocol3To5/bridgePage.js +3 -3
- package/dist/protocol/context/containingPage.d.ts +3 -0
- package/dist/protocol/context/messages/pageChanged.d.ts +3 -0
- package/dist/protocol/context/messages/parentChanged.d.ts +3 -0
- package/dist/protocol/context/parent.d.ts +5 -0
- package/dist/protocol/context/parent.js +6 -1
- package/dist/protocol/dataSources/bridgeArchiveStatus.d.ts +3 -0
- package/dist/protocol/dataSources/bridgeArchiveStatus.js +6 -0
- package/dist/protocol/dataSources/bridgeDataSourceBinding.d.ts +3 -11
- package/dist/protocol/dataSources/bridgeDataSourceBinding.js +5 -5
- package/dist/protocol/dataSources/bridgeDataSourceBindings.d.ts +2 -10
- package/dist/protocol/dataSources/{collectionPointer.d.ts → dataSourcePointer.d.ts} +2 -2
- package/dist/protocol/dataSources/{collectionPointer.js → dataSourcePointer.js} +1 -1
- package/dist/protocol/dataSources/{collectionSchema.d.ts → dataSourceSchema.d.ts} +2 -10
- package/dist/protocol/dataSources/{collectionSchema.js → dataSourceSchema.js} +1 -1
- package/dist/protocol/dataSources/filters/bridgeDataSourceFilter.d.ts +1458 -12
- package/dist/protocol/dataSources/filters/bridgeDataSourceFilterCondition.d.ts +729 -6
- package/dist/protocol/dataSources/filters/bridgeDataSourceFilterCondition.js +14 -2
- package/dist/protocol/dataSources/filters/peopleFilterOperator.d.ts +3 -3
- package/dist/protocol/dataSources/filters/peopleFilterOperator.js +1 -1
- package/dist/protocol/dataSources/filters/timestampFilterOperator.d.ts +354 -0
- package/dist/protocol/dataSources/filters/timestampFilterOperator.js +4 -0
- package/dist/protocol/dataSources/messages/dataSourcesChanged.d.ts +2 -10
- package/dist/protocol/dataSources/messages/queryDataSource.d.ts +1485 -38
- package/dist/protocol/dataSources/messages/queryDataSource.js +2 -0
- package/dist/protocol/dataSources/notionDataSource.d.ts +3 -19
- package/dist/protocol/dataSources/notionDataSource.js +5 -5
- package/dist/protocol/dataSources/properties/propertySchema.d.ts +4 -13
- package/dist/protocol/dataSources/properties/propertySchema.js +2 -6
- package/dist/protocol/dataSources/resolveDataSourceBinding.d.ts +4 -4
- package/dist/protocol/dataSources/resolveDataSourceBinding.js +2 -2
- package/dist/protocol/files.d.ts +32 -0
- package/dist/protocol/files.js +17 -0
- package/dist/protocol/handshake/connect.d.ts +15 -4
- package/dist/protocol/handshake/init.d.ts +23 -14
- package/dist/protocol/icons.d.ts +32 -0
- package/dist/protocol/icons.js +39 -0
- package/dist/protocol/index.d.ts +25 -19
- package/dist/protocol/index.js +15 -9
- package/dist/protocol/manifest/grants.d.ts +48 -0
- package/dist/protocol/manifest/grants.js +19 -0
- package/dist/protocol/manifest/manifest.d.ts +39 -16
- package/dist/protocol/manifest/manifest.js +17 -11
- package/dist/protocol/messages/hostToSandbox.d.ts +196 -177
- package/dist/protocol/messages/invalidHostMessage.d.ts +2 -0
- package/dist/protocol/messages/invalidHostMessage.js +2 -0
- package/dist/protocol/messages/invalidSandboxMessage.d.ts +2 -0
- package/dist/protocol/messages/invalidSandboxMessage.js +2 -0
- package/dist/protocol/messages/sandboxToHost.d.ts +1571 -50
- package/dist/protocol/navigation/openExternalUrl.d.ts +2 -2
- package/dist/protocol/pages/bridgePage.d.ts +12 -12
- package/dist/protocol/pages/bridgePage.js +3 -4
- package/dist/protocol/pages/makeBridgePage.d.ts +3 -1
- package/dist/protocol/pages/messages/createPage.d.ts +645 -62
- package/dist/protocol/pages/messages/createPage.js +27 -13
- package/dist/protocol/pages/messages/getPage.d.ts +38 -37
- package/dist/protocol/pages/messages/openPage.d.ts +2 -2
- package/dist/protocol/pages/messages/updatePage.d.ts +47 -48
- package/dist/protocol/pages/messages/updatePage.js +3 -3
- package/dist/protocol/pages/pageAppearance.d.ts +9 -28
- package/dist/protocol/pages/pageAppearance.js +11 -31
- package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +4 -20
- package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +2 -10
- package/dist/protocol/pages/properties/bridgePagePropertyValue.js +2 -12
- package/dist/protocol/users/makeBridgeUser.d.ts +3 -1
- package/dist/protocol/users/messages/getUser.d.ts +2 -2
- package/dist/protocol/users/messages/listUsers.d.ts +2 -2
- package/dist/protocol/utils/errors.d.ts +6 -4
- package/dist/protocol/utils/errors.js +3 -3
- package/dist/protocol/utils/ids.d.ts +2 -0
- package/dist/protocol/utils/ids.js +1 -0
- package/dist/protocol/utils/protocolVersion.d.ts +3 -1
- package/dist/protocol/utils/protocolVersion.js +5 -1
- package/dist/protocol/utils/readRequestId.d.ts +2 -0
- package/dist/protocol/utils/readRequestId.js +7 -0
- package/dist/react/NotionCustomBlock.d.ts.map +1 -1
- package/dist/react/NotionCustomBlock.js +1 -15
- package/dist/users/getUser.d.ts.map +1 -1
- package/dist/users/getUser.js +2 -1
- package/dist/users/listUsers.d.ts.map +1 -1
- package/dist/users/listUsers.js +4 -2
- package/dist/utils/version.js +1 -1
- package/docs/data-sources.md +85 -83
- package/docs/deployment.md +4 -5
- package/docs/errors.md +47 -5
- package/docs/grants.md +127 -0
- package/docs/pages.md +105 -56
- package/docs/users.md +2 -2
- package/package.json +1 -1
- package/src/bridge/SandboxBridge.ts +44 -243
- package/src/bridge/requests.ts +138 -0
- package/src/dataSources/bridge/resolveDataSourceQuery.ts +24 -4
- package/src/dataSources/bridge/resolveDataSources.ts +4 -4
- package/src/dataSources/createDataSourcePage.ts +5 -1
- package/src/dataSources/filters/resolveFilter.ts +12 -3
- package/src/dataSources/filters/types.ts +7 -4
- package/src/dataSources/properties/resolvePropertyAddress.ts +1 -1
- package/src/dataSources/properties/resolvePropertyWriteMapForDataSource.ts +1 -1
- package/src/dataSources/resolvePageDataSource.ts +2 -2
- package/src/dataSources/subscribeToDataSource.ts +7 -19
- package/src/dataSources/types.ts +3 -0
- package/src/files/files.ts +5 -0
- package/src/files/icons.ts +9 -0
- package/src/index.ts +10 -11
- package/src/initialization/getInitBindingError.ts +2 -2
- package/src/manifest/types.ts +10 -4
- package/src/navigation/openExternalUrl.ts +5 -1
- package/src/pages/bridge/getPageForDataSource.ts +6 -2
- package/src/pages/bridge/sendCreatePageRequest.ts +5 -1
- package/src/pages/bridge/toNotionPageFieldsFromBridgePage.ts +0 -1
- package/src/pages/bridge/toNotionPagePropertyFromBridgeProperty.ts +0 -8
- package/src/pages/bridge/updatePage.ts +29 -9
- package/src/pages/createPage.ts +5 -1
- package/src/pages/openPage.ts +5 -1
- package/src/pages/properties/getPropertyByKey.ts +2 -2
- package/src/pages/types.ts +14 -16
- package/src/react/NotionCustomBlock.tsx +1 -16
- package/src/users/getUser.ts +5 -1
- package/src/users/listUsers.ts +9 -4
- package/dist/bridge/pendingRequests.d.ts +0 -14
- package/dist/bridge/pendingRequests.d.ts.map +0 -1
- package/dist/bridge/pendingRequests.js +0 -28
- package/dist/protocol/dataSources/filters/createdByFilterOperator.d.ts +0 -17
- package/dist/protocol/dataSources/filters/createdByFilterOperator.js +0 -11
- package/dist/protocol/manifest/capabilities.d.ts +0 -37
- package/dist/protocol/manifest/capabilities.js +0 -13
- package/dist/protocol/pages/properties/fileInput.d.ts +0 -16
- package/dist/protocol/pages/properties/fileInput.js +0 -16
- package/dist/react/DebugMessageLog.d.ts +0 -2
- package/dist/react/DebugMessageLog.d.ts.map +0 -1
- package/dist/react/DebugMessageLog.js +0 -23
- package/docs/capabilities.md +0 -111
- package/src/bridge/pendingRequests.ts +0 -28
- package/src/react/DebugMessageLog.tsx +0 -34
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import type {
|
|
2
|
+
import type { CustomBlockErrorCode, CustomBlockErrorInfo, CustomBlockGrantErrorCode, CustomBlockRequestErrorCode } from "../../utils/errors.js";
|
|
3
3
|
export declare const customBlockCreatePageErrorCodeSchema: v.StringSchema<undefined>;
|
|
4
|
-
export type CustomBlockCreatePageErrorCode = CustomBlockErrorCode<"create_page_failed" | "invalid_page_parent" | "page_unavailable" | "data_source_access_failed" | "unknown_data_source_key" | "unmapped_data_source" | "data_source_inaccessible" | "unmapped_property" | "property_id_mismatch" | "duplicate_property" | "invalid_property_value" |
|
|
4
|
+
export type CustomBlockCreatePageErrorCode = CustomBlockErrorCode<CustomBlockRequestErrorCode | "create_page_failed" | "invalid_icon_name" | "invalid_icon_color" | "invalid_page_parent" | "page_unavailable" | "data_source_access_failed" | "unknown_data_source_key" | "unmapped_data_source" | "data_source_inaccessible" | "unmapped_property" | "property_id_mismatch" | "duplicate_property" | "invalid_property_value" | CustomBlockGrantErrorCode>;
|
|
5
5
|
export type CustomBlockCreatePageErrorInfo = CustomBlockErrorInfo<CustomBlockCreatePageErrorCode>;
|
|
6
6
|
export declare const customBlockCreatePageErrorInfoSchema: v.ObjectSchema<{
|
|
7
7
|
readonly code: v.StringSchema<undefined>;
|
|
@@ -34,6 +34,9 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
34
34
|
}, undefined>, v.ObjectSchema<{
|
|
35
35
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
36
36
|
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
37
|
+
}, undefined>, v.ObjectSchema<{
|
|
38
|
+
readonly type: v.LiteralSchema<"app_installation_id", undefined>;
|
|
39
|
+
readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
|
|
37
40
|
}, undefined>, v.ObjectSchema<{
|
|
38
41
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
39
42
|
}, undefined>], undefined>;
|
|
@@ -176,17 +179,17 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
176
179
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
177
180
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
178
181
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
179
|
-
readonly name: v.StringSchema<undefined>;
|
|
180
182
|
readonly external: v.ObjectSchema<{
|
|
181
183
|
readonly url: v.StringSchema<undefined>;
|
|
182
184
|
}, undefined>;
|
|
185
|
+
readonly name: v.StringSchema<undefined>;
|
|
183
186
|
}, undefined>, v.ObjectSchema<{
|
|
184
187
|
readonly type: v.LiteralSchema<"file", undefined>;
|
|
185
|
-
readonly name: v.StringSchema<undefined>;
|
|
186
188
|
readonly file: v.ObjectSchema<{
|
|
187
189
|
readonly url: v.StringSchema<undefined>;
|
|
188
190
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
189
191
|
}, undefined>;
|
|
192
|
+
readonly name: v.StringSchema<undefined>;
|
|
190
193
|
}, undefined>], undefined>, undefined>;
|
|
191
194
|
}, undefined>, v.ObjectSchema<{
|
|
192
195
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -223,10 +226,6 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
223
226
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
224
227
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
225
228
|
}, undefined>, undefined>;
|
|
226
|
-
}, undefined>, v.ObjectSchema<{
|
|
227
|
-
readonly id: v.StringSchema<undefined>;
|
|
228
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
229
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
230
229
|
}, undefined>, v.ObjectSchema<{
|
|
231
230
|
readonly id: v.StringSchema<undefined>;
|
|
232
231
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -239,10 +238,6 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
239
238
|
readonly id: v.StringSchema<undefined>;
|
|
240
239
|
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
241
240
|
readonly formula: v.StringSchema<undefined>;
|
|
242
|
-
}, undefined>, v.ObjectSchema<{
|
|
243
|
-
readonly id: v.StringSchema<undefined>;
|
|
244
|
-
readonly type: v.LiteralSchema<"location", undefined>;
|
|
245
|
-
readonly location: v.StringSchema<undefined>;
|
|
246
241
|
}, undefined>, v.ObjectSchema<{
|
|
247
242
|
readonly id: v.StringSchema<undefined>;
|
|
248
243
|
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
@@ -262,10 +257,15 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
262
257
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
263
258
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
264
259
|
}, undefined>, undefined>, null>;
|
|
265
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
266
260
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
267
261
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
268
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
262
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
263
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
264
|
+
readonly icon: v.LooseObjectSchema<{
|
|
265
|
+
readonly name: v.StringSchema<undefined>;
|
|
266
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
|
|
267
|
+
}, undefined>;
|
|
268
|
+
}, undefined>, v.ObjectSchema<{
|
|
269
269
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
270
270
|
readonly emoji: v.StringSchema<undefined>;
|
|
271
271
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -337,6 +337,9 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
337
337
|
}, undefined>, v.ObjectSchema<{
|
|
338
338
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
339
339
|
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
340
|
+
}, undefined>, v.ObjectSchema<{
|
|
341
|
+
readonly type: v.LiteralSchema<"app_installation_id", undefined>;
|
|
342
|
+
readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
|
|
340
343
|
}, undefined>, v.ObjectSchema<{
|
|
341
344
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
342
345
|
}, undefined>], undefined>;
|
|
@@ -479,17 +482,17 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
479
482
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
480
483
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
481
484
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
482
|
-
readonly name: v.StringSchema<undefined>;
|
|
483
485
|
readonly external: v.ObjectSchema<{
|
|
484
486
|
readonly url: v.StringSchema<undefined>;
|
|
485
487
|
}, undefined>;
|
|
488
|
+
readonly name: v.StringSchema<undefined>;
|
|
486
489
|
}, undefined>, v.ObjectSchema<{
|
|
487
490
|
readonly type: v.LiteralSchema<"file", undefined>;
|
|
488
|
-
readonly name: v.StringSchema<undefined>;
|
|
489
491
|
readonly file: v.ObjectSchema<{
|
|
490
492
|
readonly url: v.StringSchema<undefined>;
|
|
491
493
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
492
494
|
}, undefined>;
|
|
495
|
+
readonly name: v.StringSchema<undefined>;
|
|
493
496
|
}, undefined>], undefined>, undefined>;
|
|
494
497
|
}, undefined>, v.ObjectSchema<{
|
|
495
498
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -526,10 +529,6 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
526
529
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
527
530
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
528
531
|
}, undefined>, undefined>;
|
|
529
|
-
}, undefined>, v.ObjectSchema<{
|
|
530
|
-
readonly id: v.StringSchema<undefined>;
|
|
531
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
532
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
533
532
|
}, undefined>, v.ObjectSchema<{
|
|
534
533
|
readonly id: v.StringSchema<undefined>;
|
|
535
534
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -542,10 +541,6 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
542
541
|
readonly id: v.StringSchema<undefined>;
|
|
543
542
|
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
544
543
|
readonly formula: v.StringSchema<undefined>;
|
|
545
|
-
}, undefined>, v.ObjectSchema<{
|
|
546
|
-
readonly id: v.StringSchema<undefined>;
|
|
547
|
-
readonly type: v.LiteralSchema<"location", undefined>;
|
|
548
|
-
readonly location: v.StringSchema<undefined>;
|
|
549
544
|
}, undefined>, v.ObjectSchema<{
|
|
550
545
|
readonly id: v.StringSchema<undefined>;
|
|
551
546
|
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
@@ -565,10 +560,15 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
565
560
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
566
561
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
567
562
|
}, undefined>, undefined>, null>;
|
|
568
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
569
563
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
570
564
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
571
|
-
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.
|
|
565
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
566
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
567
|
+
readonly icon: v.LooseObjectSchema<{
|
|
568
|
+
readonly name: v.StringSchema<undefined>;
|
|
569
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
|
|
570
|
+
}, undefined>;
|
|
571
|
+
}, undefined>, v.ObjectSchema<{
|
|
572
572
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
573
573
|
readonly emoji: v.StringSchema<undefined>;
|
|
574
574
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -624,6 +624,9 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
624
624
|
}, undefined>, v.ObjectSchema<{
|
|
625
625
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
626
626
|
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
627
|
+
}, undefined>, v.ObjectSchema<{
|
|
628
|
+
readonly type: v.LiteralSchema<"app_installation_id", undefined>;
|
|
629
|
+
readonly app_installation_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAppInstallationId">]>;
|
|
627
630
|
}, undefined>, v.ObjectSchema<{
|
|
628
631
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
629
632
|
}, undefined>], undefined>;
|
|
@@ -766,17 +769,17 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
766
769
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
767
770
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
768
771
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
769
|
-
readonly name: v.StringSchema<undefined>;
|
|
770
772
|
readonly external: v.ObjectSchema<{
|
|
771
773
|
readonly url: v.StringSchema<undefined>;
|
|
772
774
|
}, undefined>;
|
|
775
|
+
readonly name: v.StringSchema<undefined>;
|
|
773
776
|
}, undefined>, v.ObjectSchema<{
|
|
774
777
|
readonly type: v.LiteralSchema<"file", undefined>;
|
|
775
|
-
readonly name: v.StringSchema<undefined>;
|
|
776
778
|
readonly file: v.ObjectSchema<{
|
|
777
779
|
readonly url: v.StringSchema<undefined>;
|
|
778
780
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
779
781
|
}, undefined>;
|
|
782
|
+
readonly name: v.StringSchema<undefined>;
|
|
780
783
|
}, undefined>], undefined>, undefined>;
|
|
781
784
|
}, undefined>, v.ObjectSchema<{
|
|
782
785
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -813,10 +816,6 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
813
816
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
814
817
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
815
818
|
}, undefined>, undefined>;
|
|
816
|
-
}, undefined>, v.ObjectSchema<{
|
|
817
|
-
readonly id: v.StringSchema<undefined>;
|
|
818
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
819
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
820
819
|
}, undefined>, v.ObjectSchema<{
|
|
821
820
|
readonly id: v.StringSchema<undefined>;
|
|
822
821
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -829,10 +828,6 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
829
828
|
readonly id: v.StringSchema<undefined>;
|
|
830
829
|
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
831
830
|
readonly formula: v.StringSchema<undefined>;
|
|
832
|
-
}, undefined>, v.ObjectSchema<{
|
|
833
|
-
readonly id: v.StringSchema<undefined>;
|
|
834
|
-
readonly type: v.LiteralSchema<"location", undefined>;
|
|
835
|
-
readonly location: v.StringSchema<undefined>;
|
|
836
831
|
}, undefined>, v.ObjectSchema<{
|
|
837
832
|
readonly id: v.StringSchema<undefined>;
|
|
838
833
|
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
@@ -844,7 +839,13 @@ export declare const createPageResultMessageWithProtocol3To5CompatibilitySchema:
|
|
|
844
839
|
}, undefined>], undefined>, undefined>;
|
|
845
840
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
846
841
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
847
|
-
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.
|
|
842
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
843
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
844
|
+
readonly icon: v.LooseObjectSchema<{
|
|
845
|
+
readonly name: v.StringSchema<undefined>;
|
|
846
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
|
|
847
|
+
}, undefined>;
|
|
848
|
+
}, undefined>, v.ObjectSchema<{
|
|
848
849
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
849
850
|
readonly emoji: v.StringSchema<undefined>;
|
|
850
851
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -932,9 +933,8 @@ export declare const createPageParentSchema: v.VariantSchema<"type", [v.ObjectSc
|
|
|
932
933
|
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
933
934
|
}, undefined>], undefined>;
|
|
934
935
|
export type CreatePageMessageParent = v.InferOutput<typeof createPageParentSchema>;
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
936
|
+
/** Arguments for page creation, without the message envelope. */
|
|
937
|
+
export declare const createPageArgsSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
938
938
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
939
939
|
readonly id: v.StringSchema<undefined>;
|
|
940
940
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
@@ -1074,17 +1074,17 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1074
1074
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1075
1075
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1076
1076
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1077
|
-
readonly name: v.StringSchema<undefined>;
|
|
1078
1077
|
readonly external: v.ObjectSchema<{
|
|
1079
1078
|
readonly url: v.StringSchema<undefined>;
|
|
1080
1079
|
}, undefined>;
|
|
1080
|
+
readonly name: v.StringSchema<undefined>;
|
|
1081
1081
|
}, undefined>, v.ObjectSchema<{
|
|
1082
1082
|
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1083
|
-
readonly name: v.StringSchema<undefined>;
|
|
1084
1083
|
readonly file: v.ObjectSchema<{
|
|
1085
1084
|
readonly url: v.StringSchema<undefined>;
|
|
1086
1085
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1087
1086
|
}, undefined>;
|
|
1087
|
+
readonly name: v.StringSchema<undefined>;
|
|
1088
1088
|
}, undefined>], undefined>, undefined>;
|
|
1089
1089
|
}, undefined>, v.ObjectSchema<{
|
|
1090
1090
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -1121,10 +1121,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1121
1121
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1122
1122
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1123
1123
|
}, undefined>, undefined>;
|
|
1124
|
-
}, undefined>, v.ObjectSchema<{
|
|
1125
|
-
readonly id: v.StringSchema<undefined>;
|
|
1126
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1127
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1128
1124
|
}, undefined>, v.ObjectSchema<{
|
|
1129
1125
|
readonly id: v.StringSchema<undefined>;
|
|
1130
1126
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1137,10 +1133,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1137
1133
|
readonly id: v.StringSchema<undefined>;
|
|
1138
1134
|
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
1139
1135
|
readonly formula: v.StringSchema<undefined>;
|
|
1140
|
-
}, undefined>, v.ObjectSchema<{
|
|
1141
|
-
readonly id: v.StringSchema<undefined>;
|
|
1142
|
-
readonly type: v.LiteralSchema<"location", undefined>;
|
|
1143
|
-
readonly location: v.StringSchema<undefined>;
|
|
1144
1136
|
}, undefined>, v.ObjectSchema<{
|
|
1145
1137
|
readonly id: v.StringSchema<undefined>;
|
|
1146
1138
|
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
@@ -1150,6 +1142,46 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1150
1142
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1151
1143
|
readonly verification: v.StringSchema<undefined>;
|
|
1152
1144
|
}, undefined>], undefined>, undefined>;
|
|
1145
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1146
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1147
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1148
|
+
readonly name: v.StringSchema<undefined>;
|
|
1149
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
|
|
1150
|
+
}, undefined>;
|
|
1151
|
+
}, undefined>, v.ObjectSchema<{
|
|
1152
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1153
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1154
|
+
}, undefined>, v.ObjectSchema<{
|
|
1155
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
1156
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
1157
|
+
readonly id: v.StringSchema<undefined>;
|
|
1158
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1159
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1160
|
+
}, undefined>;
|
|
1161
|
+
}, undefined>, v.ObjectSchema<{
|
|
1162
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1163
|
+
readonly external: v.ObjectSchema<{
|
|
1164
|
+
readonly url: v.StringSchema<undefined>;
|
|
1165
|
+
}, undefined>;
|
|
1166
|
+
}, undefined>, v.ObjectSchema<{
|
|
1167
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1168
|
+
readonly file: v.ObjectSchema<{
|
|
1169
|
+
readonly url: v.StringSchema<undefined>;
|
|
1170
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1171
|
+
}, undefined>;
|
|
1172
|
+
}, undefined>], undefined>, undefined>;
|
|
1173
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1174
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1175
|
+
readonly external: v.ObjectSchema<{
|
|
1176
|
+
readonly url: v.StringSchema<undefined>;
|
|
1177
|
+
}, undefined>;
|
|
1178
|
+
}, undefined>, v.ObjectSchema<{
|
|
1179
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1180
|
+
readonly file: v.ObjectSchema<{
|
|
1181
|
+
readonly url: v.StringSchema<undefined>;
|
|
1182
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1183
|
+
}, undefined>;
|
|
1184
|
+
}, undefined>], undefined>, undefined>;
|
|
1153
1185
|
readonly parent: v.ObjectSchema<{
|
|
1154
1186
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1155
1187
|
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
@@ -1166,8 +1198,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1166
1198
|
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1167
1199
|
}, undefined>], undefined>, undefined>;
|
|
1168
1200
|
}, undefined>, v.ObjectSchema<{
|
|
1169
|
-
readonly type: v.LiteralSchema<"createPage", undefined>;
|
|
1170
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
1171
1201
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1172
1202
|
readonly id: v.StringSchema<undefined>;
|
|
1173
1203
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
@@ -1307,17 +1337,17 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1307
1337
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1308
1338
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1309
1339
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1310
|
-
readonly name: v.StringSchema<undefined>;
|
|
1311
1340
|
readonly external: v.ObjectSchema<{
|
|
1312
1341
|
readonly url: v.StringSchema<undefined>;
|
|
1313
1342
|
}, undefined>;
|
|
1343
|
+
readonly name: v.StringSchema<undefined>;
|
|
1314
1344
|
}, undefined>, v.ObjectSchema<{
|
|
1315
1345
|
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1316
|
-
readonly name: v.StringSchema<undefined>;
|
|
1317
1346
|
readonly file: v.ObjectSchema<{
|
|
1318
1347
|
readonly url: v.StringSchema<undefined>;
|
|
1319
1348
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1320
1349
|
}, undefined>;
|
|
1350
|
+
readonly name: v.StringSchema<undefined>;
|
|
1321
1351
|
}, undefined>], undefined>, undefined>;
|
|
1322
1352
|
}, undefined>, v.ObjectSchema<{
|
|
1323
1353
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -1354,10 +1384,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1354
1384
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1355
1385
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1356
1386
|
}, undefined>, undefined>;
|
|
1357
|
-
}, undefined>, v.ObjectSchema<{
|
|
1358
|
-
readonly id: v.StringSchema<undefined>;
|
|
1359
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1360
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1361
1387
|
}, undefined>, v.ObjectSchema<{
|
|
1362
1388
|
readonly id: v.StringSchema<undefined>;
|
|
1363
1389
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1370,10 +1396,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1370
1396
|
readonly id: v.StringSchema<undefined>;
|
|
1371
1397
|
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
1372
1398
|
readonly formula: v.StringSchema<undefined>;
|
|
1373
|
-
}, undefined>, v.ObjectSchema<{
|
|
1374
|
-
readonly id: v.StringSchema<undefined>;
|
|
1375
|
-
readonly type: v.LiteralSchema<"location", undefined>;
|
|
1376
|
-
readonly location: v.StringSchema<undefined>;
|
|
1377
1399
|
}, undefined>, v.ObjectSchema<{
|
|
1378
1400
|
readonly id: v.StringSchema<undefined>;
|
|
1379
1401
|
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
@@ -1383,12 +1405,573 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1383
1405
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1384
1406
|
readonly verification: v.StringSchema<undefined>;
|
|
1385
1407
|
}, undefined>], undefined>, undefined>;
|
|
1408
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1409
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1410
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1411
|
+
readonly name: v.StringSchema<undefined>;
|
|
1412
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
|
|
1413
|
+
}, undefined>;
|
|
1414
|
+
}, undefined>, v.ObjectSchema<{
|
|
1415
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1416
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1417
|
+
}, undefined>, v.ObjectSchema<{
|
|
1418
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
1419
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
1420
|
+
readonly id: v.StringSchema<undefined>;
|
|
1421
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1422
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1423
|
+
}, undefined>;
|
|
1424
|
+
}, undefined>, v.ObjectSchema<{
|
|
1425
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1426
|
+
readonly external: v.ObjectSchema<{
|
|
1427
|
+
readonly url: v.StringSchema<undefined>;
|
|
1428
|
+
}, undefined>;
|
|
1429
|
+
}, undefined>, v.ObjectSchema<{
|
|
1430
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1431
|
+
readonly file: v.ObjectSchema<{
|
|
1432
|
+
readonly url: v.StringSchema<undefined>;
|
|
1433
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1434
|
+
}, undefined>;
|
|
1435
|
+
}, undefined>], undefined>, undefined>;
|
|
1436
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1437
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1438
|
+
readonly external: v.ObjectSchema<{
|
|
1439
|
+
readonly url: v.StringSchema<undefined>;
|
|
1440
|
+
}, undefined>;
|
|
1441
|
+
}, undefined>, v.ObjectSchema<{
|
|
1442
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1443
|
+
readonly file: v.ObjectSchema<{
|
|
1444
|
+
readonly url: v.StringSchema<undefined>;
|
|
1445
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1446
|
+
}, undefined>;
|
|
1447
|
+
}, undefined>], undefined>, undefined>;
|
|
1386
1448
|
readonly parent: v.ObjectSchema<{
|
|
1387
1449
|
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1388
1450
|
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1389
1451
|
}, undefined>;
|
|
1390
1452
|
readonly position: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1391
1453
|
}, undefined>], undefined>;
|
|
1454
|
+
export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1455
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1456
|
+
readonly id: v.StringSchema<undefined>;
|
|
1457
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1458
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1459
|
+
}, undefined>, v.ObjectSchema<{
|
|
1460
|
+
readonly id: v.StringSchema<undefined>;
|
|
1461
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
1462
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1463
|
+
}, undefined>, v.ObjectSchema<{
|
|
1464
|
+
readonly id: v.StringSchema<undefined>;
|
|
1465
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
1466
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1467
|
+
}, undefined>, v.ObjectSchema<{
|
|
1468
|
+
readonly id: v.StringSchema<undefined>;
|
|
1469
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
1470
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1471
|
+
}, undefined>, v.ObjectSchema<{
|
|
1472
|
+
readonly id: v.StringSchema<undefined>;
|
|
1473
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
1474
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1475
|
+
}, undefined>, v.ObjectSchema<{
|
|
1476
|
+
readonly id: v.StringSchema<undefined>;
|
|
1477
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
1478
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1479
|
+
}, undefined>, v.ObjectSchema<{
|
|
1480
|
+
readonly id: v.StringSchema<undefined>;
|
|
1481
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
1482
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
1483
|
+
}, undefined>, v.ObjectSchema<{
|
|
1484
|
+
readonly id: v.StringSchema<undefined>;
|
|
1485
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
1486
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1487
|
+
readonly id: v.StringSchema<undefined>;
|
|
1488
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1489
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1490
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1491
|
+
}, undefined>, v.ObjectSchema<{
|
|
1492
|
+
readonly name: v.StringSchema<undefined>;
|
|
1493
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1494
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1495
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1496
|
+
}, undefined>], undefined>, undefined>;
|
|
1497
|
+
}, undefined>, v.ObjectSchema<{
|
|
1498
|
+
readonly id: v.StringSchema<undefined>;
|
|
1499
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
1500
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1501
|
+
readonly id: v.StringSchema<undefined>;
|
|
1502
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1503
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1504
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1505
|
+
}, undefined>, v.ObjectSchema<{
|
|
1506
|
+
readonly name: v.StringSchema<undefined>;
|
|
1507
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1508
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1509
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1510
|
+
}, undefined>], undefined>, undefined>;
|
|
1511
|
+
}, undefined>, v.ObjectSchema<{
|
|
1512
|
+
readonly id: v.StringSchema<undefined>;
|
|
1513
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
1514
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1515
|
+
readonly id: v.StringSchema<undefined>;
|
|
1516
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1517
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1518
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1519
|
+
}, undefined>, v.ObjectSchema<{
|
|
1520
|
+
readonly name: v.StringSchema<undefined>;
|
|
1521
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1522
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1523
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1524
|
+
}, undefined>], undefined>, undefined>;
|
|
1525
|
+
}, undefined>, v.ObjectSchema<{
|
|
1526
|
+
readonly id: v.StringSchema<undefined>;
|
|
1527
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
1528
|
+
readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1529
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1530
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1531
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
1532
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1533
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1534
|
+
readonly time: v.StringSchema<undefined>;
|
|
1535
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1536
|
+
}, undefined>, v.ObjectSchema<{
|
|
1537
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
1538
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1539
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
1540
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1541
|
+
}, undefined>], undefined>, undefined>;
|
|
1542
|
+
readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
|
|
1543
|
+
}, undefined>, v.ObjectSchema<{
|
|
1544
|
+
readonly start: v.StringSchema<undefined>;
|
|
1545
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1546
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
1547
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1548
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1549
|
+
readonly time: v.StringSchema<undefined>;
|
|
1550
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1551
|
+
}, undefined>, v.ObjectSchema<{
|
|
1552
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
1553
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1554
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
1555
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1556
|
+
}, undefined>], undefined>, undefined>;
|
|
1557
|
+
readonly time_zone: v.StringSchema<undefined>;
|
|
1558
|
+
}, undefined>, v.ObjectSchema<{
|
|
1559
|
+
readonly start: v.StringSchema<undefined>;
|
|
1560
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1561
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1562
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1563
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1564
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1565
|
+
readonly time: v.StringSchema<undefined>;
|
|
1566
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1567
|
+
}, undefined>, v.ObjectSchema<{
|
|
1568
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1569
|
+
}, undefined>], undefined>, undefined>;
|
|
1570
|
+
}, undefined>], undefined>, undefined>;
|
|
1571
|
+
}, undefined>, v.ObjectSchema<{
|
|
1572
|
+
readonly id: v.StringSchema<undefined>;
|
|
1573
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
1574
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1575
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
1576
|
+
readonly id: v.StringSchema<undefined>;
|
|
1577
|
+
}, undefined>, v.ObjectSchema<{
|
|
1578
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
1579
|
+
readonly id: v.StringSchema<undefined>;
|
|
1580
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1581
|
+
}, undefined>], undefined>, undefined>;
|
|
1582
|
+
}, undefined>, v.ObjectSchema<{
|
|
1583
|
+
readonly id: v.StringSchema<undefined>;
|
|
1584
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
1585
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1586
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
1587
|
+
readonly id: v.StringSchema<undefined>;
|
|
1588
|
+
}, undefined>, undefined>;
|
|
1589
|
+
}, undefined>, v.ObjectSchema<{
|
|
1590
|
+
readonly id: v.StringSchema<undefined>;
|
|
1591
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1592
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1593
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1594
|
+
readonly external: v.ObjectSchema<{
|
|
1595
|
+
readonly url: v.StringSchema<undefined>;
|
|
1596
|
+
}, undefined>;
|
|
1597
|
+
readonly name: v.StringSchema<undefined>;
|
|
1598
|
+
}, undefined>, v.ObjectSchema<{
|
|
1599
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1600
|
+
readonly file: v.ObjectSchema<{
|
|
1601
|
+
readonly url: v.StringSchema<undefined>;
|
|
1602
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1603
|
+
}, undefined>;
|
|
1604
|
+
readonly name: v.StringSchema<undefined>;
|
|
1605
|
+
}, undefined>], undefined>, undefined>;
|
|
1606
|
+
}, undefined>, v.ObjectSchema<{
|
|
1607
|
+
readonly id: v.StringSchema<undefined>;
|
|
1608
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
1609
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
1610
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
1611
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
1612
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1613
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1614
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1615
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1616
|
+
}, undefined>, undefined>;
|
|
1617
|
+
}, undefined>, v.ObjectSchema<{
|
|
1618
|
+
readonly id: v.StringSchema<undefined>;
|
|
1619
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
1620
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1621
|
+
}, undefined>, v.ObjectSchema<{
|
|
1622
|
+
readonly id: v.StringSchema<undefined>;
|
|
1623
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
1624
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1625
|
+
}, undefined>, v.ObjectSchema<{
|
|
1626
|
+
readonly id: v.StringSchema<undefined>;
|
|
1627
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
1628
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
1629
|
+
readonly id: v.StringSchema<undefined>;
|
|
1630
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1631
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1632
|
+
}, undefined>, undefined>;
|
|
1633
|
+
}, undefined>, v.ObjectSchema<{
|
|
1634
|
+
readonly id: v.StringSchema<undefined>;
|
|
1635
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
1636
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
1637
|
+
readonly id: v.StringSchema<undefined>;
|
|
1638
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1639
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1640
|
+
}, undefined>, undefined>;
|
|
1641
|
+
}, undefined>, v.ObjectSchema<{
|
|
1642
|
+
readonly id: v.StringSchema<undefined>;
|
|
1643
|
+
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
1644
|
+
readonly unique_id: v.StringSchema<undefined>;
|
|
1645
|
+
}, undefined>, v.ObjectSchema<{
|
|
1646
|
+
readonly id: v.StringSchema<undefined>;
|
|
1647
|
+
readonly type: v.LiteralSchema<"button", undefined>;
|
|
1648
|
+
readonly button: v.StringSchema<undefined>;
|
|
1649
|
+
}, undefined>, v.ObjectSchema<{
|
|
1650
|
+
readonly id: v.StringSchema<undefined>;
|
|
1651
|
+
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
1652
|
+
readonly formula: v.StringSchema<undefined>;
|
|
1653
|
+
}, undefined>, v.ObjectSchema<{
|
|
1654
|
+
readonly id: v.StringSchema<undefined>;
|
|
1655
|
+
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
1656
|
+
readonly rollup: v.StringSchema<undefined>;
|
|
1657
|
+
}, undefined>, v.ObjectSchema<{
|
|
1658
|
+
readonly id: v.StringSchema<undefined>;
|
|
1659
|
+
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1660
|
+
readonly verification: v.StringSchema<undefined>;
|
|
1661
|
+
}, undefined>], undefined>, undefined>;
|
|
1662
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1663
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1664
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1665
|
+
readonly name: v.StringSchema<undefined>;
|
|
1666
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
|
|
1667
|
+
}, undefined>;
|
|
1668
|
+
}, undefined>, v.ObjectSchema<{
|
|
1669
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1670
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1671
|
+
}, undefined>, v.ObjectSchema<{
|
|
1672
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
1673
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
1674
|
+
readonly id: v.StringSchema<undefined>;
|
|
1675
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1676
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1677
|
+
}, undefined>;
|
|
1678
|
+
}, undefined>, v.ObjectSchema<{
|
|
1679
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1680
|
+
readonly external: v.ObjectSchema<{
|
|
1681
|
+
readonly url: v.StringSchema<undefined>;
|
|
1682
|
+
}, undefined>;
|
|
1683
|
+
}, undefined>, v.ObjectSchema<{
|
|
1684
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1685
|
+
readonly file: v.ObjectSchema<{
|
|
1686
|
+
readonly url: v.StringSchema<undefined>;
|
|
1687
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1688
|
+
}, undefined>;
|
|
1689
|
+
}, undefined>], undefined>, undefined>;
|
|
1690
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1691
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1692
|
+
readonly external: v.ObjectSchema<{
|
|
1693
|
+
readonly url: v.StringSchema<undefined>;
|
|
1694
|
+
}, undefined>;
|
|
1695
|
+
}, undefined>, v.ObjectSchema<{
|
|
1696
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1697
|
+
readonly file: v.ObjectSchema<{
|
|
1698
|
+
readonly url: v.StringSchema<undefined>;
|
|
1699
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1700
|
+
}, undefined>;
|
|
1701
|
+
}, undefined>], undefined>, undefined>;
|
|
1702
|
+
readonly parent: v.ObjectSchema<{
|
|
1703
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1704
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1705
|
+
}, undefined>;
|
|
1706
|
+
readonly position: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1707
|
+
readonly type: v.LiteralSchema<"start", undefined>;
|
|
1708
|
+
}, undefined>, v.ObjectSchema<{
|
|
1709
|
+
readonly type: v.LiteralSchema<"end", undefined>;
|
|
1710
|
+
}, undefined>, v.ObjectSchema<{
|
|
1711
|
+
readonly type: v.LiteralSchema<"before", undefined>;
|
|
1712
|
+
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1713
|
+
}, undefined>, v.ObjectSchema<{
|
|
1714
|
+
readonly type: v.LiteralSchema<"after", undefined>;
|
|
1715
|
+
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1716
|
+
}, undefined>], undefined>, undefined>;
|
|
1717
|
+
readonly type: v.LiteralSchema<"createPage", undefined>;
|
|
1718
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
1719
|
+
}, undefined>, v.ObjectSchema<{
|
|
1720
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1721
|
+
readonly id: v.StringSchema<undefined>;
|
|
1722
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1723
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1724
|
+
}, undefined>, v.ObjectSchema<{
|
|
1725
|
+
readonly id: v.StringSchema<undefined>;
|
|
1726
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
1727
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1728
|
+
}, undefined>, v.ObjectSchema<{
|
|
1729
|
+
readonly id: v.StringSchema<undefined>;
|
|
1730
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
1731
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1732
|
+
}, undefined>, v.ObjectSchema<{
|
|
1733
|
+
readonly id: v.StringSchema<undefined>;
|
|
1734
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
1735
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1736
|
+
}, undefined>, v.ObjectSchema<{
|
|
1737
|
+
readonly id: v.StringSchema<undefined>;
|
|
1738
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
1739
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1740
|
+
}, undefined>, v.ObjectSchema<{
|
|
1741
|
+
readonly id: v.StringSchema<undefined>;
|
|
1742
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
1743
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1744
|
+
}, undefined>, v.ObjectSchema<{
|
|
1745
|
+
readonly id: v.StringSchema<undefined>;
|
|
1746
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
1747
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
1748
|
+
}, undefined>, v.ObjectSchema<{
|
|
1749
|
+
readonly id: v.StringSchema<undefined>;
|
|
1750
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
1751
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1752
|
+
readonly id: v.StringSchema<undefined>;
|
|
1753
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1754
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1755
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1756
|
+
}, undefined>, v.ObjectSchema<{
|
|
1757
|
+
readonly name: v.StringSchema<undefined>;
|
|
1758
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1759
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1760
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1761
|
+
}, undefined>], undefined>, undefined>;
|
|
1762
|
+
}, undefined>, v.ObjectSchema<{
|
|
1763
|
+
readonly id: v.StringSchema<undefined>;
|
|
1764
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
1765
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1766
|
+
readonly id: v.StringSchema<undefined>;
|
|
1767
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1768
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1769
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1770
|
+
}, undefined>, v.ObjectSchema<{
|
|
1771
|
+
readonly name: v.StringSchema<undefined>;
|
|
1772
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1773
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1774
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1775
|
+
}, undefined>], undefined>, undefined>;
|
|
1776
|
+
}, undefined>, v.ObjectSchema<{
|
|
1777
|
+
readonly id: v.StringSchema<undefined>;
|
|
1778
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
1779
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1780
|
+
readonly id: v.StringSchema<undefined>;
|
|
1781
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1782
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1783
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1784
|
+
}, undefined>, v.ObjectSchema<{
|
|
1785
|
+
readonly name: v.StringSchema<undefined>;
|
|
1786
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1787
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1788
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1789
|
+
}, undefined>], undefined>, undefined>;
|
|
1790
|
+
}, undefined>, v.ObjectSchema<{
|
|
1791
|
+
readonly id: v.StringSchema<undefined>;
|
|
1792
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
1793
|
+
readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1794
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1795
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1796
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
1797
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1798
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1799
|
+
readonly time: v.StringSchema<undefined>;
|
|
1800
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1801
|
+
}, undefined>, v.ObjectSchema<{
|
|
1802
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
1803
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1804
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
1805
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1806
|
+
}, undefined>], undefined>, undefined>;
|
|
1807
|
+
readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
|
|
1808
|
+
}, undefined>, v.ObjectSchema<{
|
|
1809
|
+
readonly start: v.StringSchema<undefined>;
|
|
1810
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1811
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
1812
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1813
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1814
|
+
readonly time: v.StringSchema<undefined>;
|
|
1815
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1816
|
+
}, undefined>, v.ObjectSchema<{
|
|
1817
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
1818
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1819
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
1820
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1821
|
+
}, undefined>], undefined>, undefined>;
|
|
1822
|
+
readonly time_zone: v.StringSchema<undefined>;
|
|
1823
|
+
}, undefined>, v.ObjectSchema<{
|
|
1824
|
+
readonly start: v.StringSchema<undefined>;
|
|
1825
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1826
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1827
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1828
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
1829
|
+
readonly value: v.NumberSchema<undefined>;
|
|
1830
|
+
readonly time: v.StringSchema<undefined>;
|
|
1831
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1832
|
+
}, undefined>, v.ObjectSchema<{
|
|
1833
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
1834
|
+
}, undefined>], undefined>, undefined>;
|
|
1835
|
+
}, undefined>], undefined>, undefined>;
|
|
1836
|
+
}, undefined>, v.ObjectSchema<{
|
|
1837
|
+
readonly id: v.StringSchema<undefined>;
|
|
1838
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
1839
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1840
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
1841
|
+
readonly id: v.StringSchema<undefined>;
|
|
1842
|
+
}, undefined>, v.ObjectSchema<{
|
|
1843
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
1844
|
+
readonly id: v.StringSchema<undefined>;
|
|
1845
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1846
|
+
}, undefined>], undefined>, undefined>;
|
|
1847
|
+
}, undefined>, v.ObjectSchema<{
|
|
1848
|
+
readonly id: v.StringSchema<undefined>;
|
|
1849
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
1850
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1851
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
1852
|
+
readonly id: v.StringSchema<undefined>;
|
|
1853
|
+
}, undefined>, undefined>;
|
|
1854
|
+
}, undefined>, v.ObjectSchema<{
|
|
1855
|
+
readonly id: v.StringSchema<undefined>;
|
|
1856
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1857
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1858
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1859
|
+
readonly external: v.ObjectSchema<{
|
|
1860
|
+
readonly url: v.StringSchema<undefined>;
|
|
1861
|
+
}, undefined>;
|
|
1862
|
+
readonly name: v.StringSchema<undefined>;
|
|
1863
|
+
}, undefined>, v.ObjectSchema<{
|
|
1864
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1865
|
+
readonly file: v.ObjectSchema<{
|
|
1866
|
+
readonly url: v.StringSchema<undefined>;
|
|
1867
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1868
|
+
}, undefined>;
|
|
1869
|
+
readonly name: v.StringSchema<undefined>;
|
|
1870
|
+
}, undefined>], undefined>, undefined>;
|
|
1871
|
+
}, undefined>, v.ObjectSchema<{
|
|
1872
|
+
readonly id: v.StringSchema<undefined>;
|
|
1873
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
1874
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
1875
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
1876
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
1877
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1878
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1879
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1880
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1881
|
+
}, undefined>, undefined>;
|
|
1882
|
+
}, undefined>, v.ObjectSchema<{
|
|
1883
|
+
readonly id: v.StringSchema<undefined>;
|
|
1884
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
1885
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1886
|
+
}, undefined>, v.ObjectSchema<{
|
|
1887
|
+
readonly id: v.StringSchema<undefined>;
|
|
1888
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
1889
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1890
|
+
}, undefined>, v.ObjectSchema<{
|
|
1891
|
+
readonly id: v.StringSchema<undefined>;
|
|
1892
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
1893
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
1894
|
+
readonly id: v.StringSchema<undefined>;
|
|
1895
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1896
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1897
|
+
}, undefined>, undefined>;
|
|
1898
|
+
}, undefined>, v.ObjectSchema<{
|
|
1899
|
+
readonly id: v.StringSchema<undefined>;
|
|
1900
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
1901
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
1902
|
+
readonly id: v.StringSchema<undefined>;
|
|
1903
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1904
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1905
|
+
}, undefined>, undefined>;
|
|
1906
|
+
}, undefined>, v.ObjectSchema<{
|
|
1907
|
+
readonly id: v.StringSchema<undefined>;
|
|
1908
|
+
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
1909
|
+
readonly unique_id: v.StringSchema<undefined>;
|
|
1910
|
+
}, undefined>, v.ObjectSchema<{
|
|
1911
|
+
readonly id: v.StringSchema<undefined>;
|
|
1912
|
+
readonly type: v.LiteralSchema<"button", undefined>;
|
|
1913
|
+
readonly button: v.StringSchema<undefined>;
|
|
1914
|
+
}, undefined>, v.ObjectSchema<{
|
|
1915
|
+
readonly id: v.StringSchema<undefined>;
|
|
1916
|
+
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
1917
|
+
readonly formula: v.StringSchema<undefined>;
|
|
1918
|
+
}, undefined>, v.ObjectSchema<{
|
|
1919
|
+
readonly id: v.StringSchema<undefined>;
|
|
1920
|
+
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
1921
|
+
readonly rollup: v.StringSchema<undefined>;
|
|
1922
|
+
}, undefined>, v.ObjectSchema<{
|
|
1923
|
+
readonly id: v.StringSchema<undefined>;
|
|
1924
|
+
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1925
|
+
readonly verification: v.StringSchema<undefined>;
|
|
1926
|
+
}, undefined>], undefined>, undefined>;
|
|
1927
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1928
|
+
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
1929
|
+
readonly icon: v.LooseObjectSchema<{
|
|
1930
|
+
readonly name: v.StringSchema<undefined>;
|
|
1931
|
+
readonly color: v.OptionalSchema<v.GenericSchema<import("../../icons.js").BridgeIconColor>, undefined>;
|
|
1932
|
+
}, undefined>;
|
|
1933
|
+
}, undefined>, v.ObjectSchema<{
|
|
1934
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1935
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1936
|
+
}, undefined>, v.ObjectSchema<{
|
|
1937
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
1938
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
1939
|
+
readonly id: v.StringSchema<undefined>;
|
|
1940
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1941
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1942
|
+
}, undefined>;
|
|
1943
|
+
}, undefined>, v.ObjectSchema<{
|
|
1944
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1945
|
+
readonly external: v.ObjectSchema<{
|
|
1946
|
+
readonly url: v.StringSchema<undefined>;
|
|
1947
|
+
}, undefined>;
|
|
1948
|
+
}, undefined>, v.ObjectSchema<{
|
|
1949
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1950
|
+
readonly file: v.ObjectSchema<{
|
|
1951
|
+
readonly url: v.StringSchema<undefined>;
|
|
1952
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1953
|
+
}, undefined>;
|
|
1954
|
+
}, undefined>], undefined>, undefined>;
|
|
1955
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1956
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1957
|
+
readonly external: v.ObjectSchema<{
|
|
1958
|
+
readonly url: v.StringSchema<undefined>;
|
|
1959
|
+
}, undefined>;
|
|
1960
|
+
}, undefined>, v.ObjectSchema<{
|
|
1961
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1962
|
+
readonly file: v.ObjectSchema<{
|
|
1963
|
+
readonly url: v.StringSchema<undefined>;
|
|
1964
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1965
|
+
}, undefined>;
|
|
1966
|
+
}, undefined>], undefined>, undefined>;
|
|
1967
|
+
readonly parent: v.ObjectSchema<{
|
|
1968
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1969
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1970
|
+
}, undefined>;
|
|
1971
|
+
readonly position: v.OptionalSchema<v.NeverSchema<undefined>, undefined>;
|
|
1972
|
+
readonly type: v.LiteralSchema<"createPage", undefined>;
|
|
1973
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
1974
|
+
}, undefined>], undefined>;
|
|
1392
1975
|
/**
|
|
1393
1976
|
* The sandbox sends this message to create a page.
|
|
1394
1977
|
*/
|