@notionhq/custom-blocks 0.6.0 → 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 +32 -18
- package/dist/bridge/SandboxBridge.d.ts +7 -8
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/SandboxBridge.js +39 -114
- package/dist/bridge/applyHostStateMessage.d.ts.map +1 -1
- package/dist/bridge/createBrowserSandboxBridge.d.ts +3 -0
- package/dist/bridge/createBrowserSandboxBridge.d.ts.map +1 -0
- package/dist/bridge/createBrowserSandboxBridge.js +54 -0
- package/dist/bridge/getBridge.d.ts +1 -1
- package/dist/bridge/getBridge.d.ts.map +1 -1
- package/dist/bridge/getBridge.js +2 -2
- package/dist/bridge/getInitializedHostState.d.ts.map +1 -1
- package/dist/bridge/hostState.d.ts +2 -2
- package/dist/bridge/hostState.d.ts.map +1 -1
- package/dist/bridge/initialization/SandboxInitialization.d.ts +6 -0
- package/dist/bridge/initialization/SandboxInitialization.d.ts.map +1 -1
- package/dist/bridge/initialization/SandboxInitialization.js +13 -10
- package/dist/bridge/messageInterceptor.d.ts.map +1 -1
- package/dist/bridge/requests.d.ts.map +1 -1
- package/dist/bridge/sandboxEnvironment.d.ts +30 -0
- package/dist/bridge/sandboxEnvironment.d.ts.map +1 -0
- package/dist/bridge/sandboxEnvironment.js +1 -0
- package/dist/bridge/subscribeToHostStateField.d.ts.map +1 -1
- package/dist/bridge.d.ts.map +1 -1
- package/dist/data-sources.d.ts.map +1 -1
- package/dist/dataSources/NotionDataSource.d.ts.map +1 -1
- package/dist/dataSources/bridge/DataSourceCache.d.ts +18 -0
- package/dist/dataSources/bridge/DataSourceCache.d.ts.map +1 -0
- package/dist/dataSources/bridge/DataSourceCache.js +75 -0
- package/dist/dataSources/bridge/applyDataSourceBindings.d.ts.map +1 -1
- package/dist/dataSources/bridge/makeDataSourceReadResponseSchema.d.ts.map +1 -1
- package/dist/dataSources/bridge/resolveDataSourceQuery.d.ts.map +1 -1
- package/dist/dataSources/bridge/resolveDataSources.d.ts.map +1 -1
- package/dist/dataSources/bridge/resolveSorts.d.ts.map +1 -1
- package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.d.ts +0 -3
- package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.d.ts.map +1 -1
- package/dist/dataSources/bridge/reuseDataSourcesForUnchangedBindings.js +2 -5
- package/dist/dataSources/dataSourceInaccessibleError.d.ts.map +1 -1
- package/dist/dataSources/dataSourceState.d.ts.map +1 -1
- package/dist/dataSources/ensureDataSource.d.ts.map +1 -1
- package/dist/dataSources/filters/resolveFilter.d.ts.map +1 -1
- package/dist/dataSources/filters/types.d.ts.map +1 -1
- package/dist/dataSources/getDataSourcePage.d.ts.map +1 -1
- package/dist/dataSources/observeDataSource.d.ts.map +1 -1
- package/dist/dataSources/properties/resolvePropertyAddress.d.ts.map +1 -1
- package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.d.ts.map +1 -1
- package/dist/dataSources/properties/resolvePropertyWriteMapForDataSource.js +2 -2
- package/dist/dataSources/resolvePageDataSource.d.ts.map +1 -1
- package/dist/dataSources/subscribeToDataSource.d.ts.map +1 -1
- package/dist/dataSources/types.d.ts.map +1 -1
- package/dist/files/files.d.ts +1 -1
- package/dist/files/files.d.ts.map +1 -1
- package/dist/files/icons.d.ts.map +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/initialization/NotInIframeError.d.ts.map +1 -1
- package/dist/initialization/initCustomBlock.d.ts.map +1 -1
- package/dist/initialization/notifyReady.d.ts.map +1 -1
- package/dist/initialization/react/useCustomBlockInit.d.ts.map +1 -1
- package/dist/initialization/resolveInitialState.d.ts.map +1 -1
- package/dist/initialization/types.d.ts.map +1 -1
- package/dist/layout/autoResize.d.ts.map +1 -1
- package/dist/layout/getInitialContentHeight.d.ts.map +1 -1
- package/dist/location/getContainingPage.d.ts.map +1 -1
- package/dist/location/getInstance.d.ts.map +1 -1
- package/dist/location/getParent.d.ts.map +1 -1
- package/dist/location/mapContainingPage.d.ts +2 -2
- package/dist/location/mapContainingPage.d.ts.map +1 -1
- package/dist/location/mapParent.d.ts.map +1 -1
- package/dist/location/subscribeToContainingPage.d.ts.map +1 -1
- package/dist/location/subscribeToParent.d.ts.map +1 -1
- package/dist/location/types.d.ts.map +1 -1
- package/dist/manifest/getManifest.d.ts.map +1 -1
- package/dist/manifest/readLocalManifest.d.ts.map +1 -1
- package/dist/manifest/types.d.ts.map +1 -1
- package/dist/navigation/openExternalUrl.d.ts.map +1 -1
- package/dist/navigation/types.d.ts.map +1 -1
- package/dist/navigation.d.ts.map +1 -1
- package/dist/pages/NotionPage.d.ts.map +1 -1
- package/dist/pages/bridge/buildCreatePageRequest.d.ts.map +1 -1
- package/dist/pages/bridge/getPageForDataSource.d.ts.map +1 -1
- package/dist/pages/bridge/resolveCreatePageDestination.d.ts.map +1 -1
- package/dist/pages/bridge/sendCreatePageRequest.d.ts.map +1 -1
- package/dist/pages/bridge/toNotionPageFromBridgePage.d.ts.map +1 -1
- package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.d.ts +2 -2
- package/dist/pages/bridge/toNotionPagePropertyFromBridgeProperty.d.ts.map +1 -1
- package/dist/pages/bridge/updatePage.d.ts.map +1 -1
- package/dist/pages/createPage.d.ts.map +1 -1
- package/dist/pages/getPage.d.ts.map +1 -1
- package/dist/pages/identityBlockKey.d.ts.map +1 -1
- package/dist/pages/identityPageKey.d.ts.map +1 -1
- package/dist/pages/openPage.d.ts.map +1 -1
- package/dist/pages/parent.d.ts.map +1 -1
- package/dist/pages/types.d.ts +5 -3
- package/dist/pages/types.d.ts.map +1 -1
- package/dist/pages.d.ts.map +1 -1
- package/dist/preferences/backgroundColors.d.ts.map +1 -1
- package/dist/preferences/getContrastMode.d.ts.map +1 -1
- package/dist/preferences/getTheme.d.ts.map +1 -1
- package/dist/preferences/react/useContrastMode.d.ts.map +1 -1
- package/dist/preferences/react/useTheme.d.ts.map +1 -1
- package/dist/preferences/subscribeToContrastMode.d.ts.map +1 -1
- package/dist/preferences/subscribeToTheme.d.ts.map +1 -1
- package/dist/preferences/syncDocumentAppearance.d.ts +1 -1
- package/dist/preferences/syncDocumentAppearance.d.ts.map +1 -1
- package/dist/preferences/syncDocumentAppearance.js +2 -1
- package/dist/preferences.d.ts.map +1 -1
- package/dist/protocol/compatibility/protocol12/hostToSandbox.d.ts +3356 -0
- package/dist/protocol/compatibility/protocol12/hostToSandbox.js +38 -0
- package/dist/protocol/compatibility/protocol12/page.d.ts +296 -0
- package/dist/protocol/compatibility/protocol12/page.js +7 -0
- package/dist/protocol/context/containingPage.d.ts +4 -2
- package/dist/protocol/context/containingPage.js +1 -1
- package/dist/protocol/context/messages/pageChanged.js +2 -2
- package/dist/protocol/dataSources/areDataSourceBindingsEqual.d.ts +3 -0
- package/dist/protocol/dataSources/areDataSourceBindingsEqual.js +26 -0
- package/dist/protocol/dataSources/messages/queryDataSource.d.ts +24 -19
- package/dist/protocol/dataSources/messages/queryDataSource.js +2 -0
- package/dist/protocol/files.d.ts +18 -0
- package/dist/protocol/files.js +9 -0
- package/dist/protocol/messages/hostToSandbox.d.ts +2200 -68
- package/dist/protocol/messages/hostToSandbox.js +6 -2
- package/dist/protocol/messages/sandboxToHost.d.ts +51 -51
- package/dist/protocol/pages/bridgePage.d.ts +20 -17
- package/dist/protocol/pages/messages/createPage.d.ts +88 -85
- package/dist/protocol/pages/messages/getPage.d.ts +24 -19
- package/dist/protocol/pages/messages/getPage.js +2 -0
- package/dist/protocol/pages/messages/updatePage.d.ts +37 -34
- package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +37 -34
- package/dist/protocol/pages/properties/bridgePagePropertyMaps.js +3 -3
- package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +236 -2
- package/dist/protocol/pages/properties/bridgePagePropertyValue.js +20 -7
- package/dist/protocol/utils/errors.d.ts +6 -0
- package/dist/protocol/utils/errors.js +8 -0
- package/dist/protocol/utils/protocolVersion.d.ts +4 -2
- package/dist/protocol/utils/protocolVersion.js +4 -2
- package/dist/react/InitializationErrorDetails.d.ts.map +1 -1
- package/dist/react/MissingHostCommand.d.ts.map +1 -1
- package/dist/react/MissingHostScreen.d.ts.map +1 -1
- package/dist/react/NotionCustomBlock.d.ts.map +1 -1
- package/dist/react/index.d.ts +0 -2
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +0 -1
- package/dist/react/useAsyncRead.d.ts.map +1 -1
- package/dist/react/useContainingPage.d.ts.map +1 -1
- package/dist/react/useLiveLocationRead.d.ts.map +1 -1
- package/dist/react/usePage.d.ts.map +1 -1
- package/dist/react/useParent.d.ts.map +1 -1
- package/dist/react/useQuerySubscription.d.ts.map +1 -1
- package/dist/react/useUserFields.d.ts.map +1 -1
- package/dist/react/useViewer.d.ts.map +1 -1
- package/dist/styles/scrollbars.css +18 -0
- package/dist/users/NotionUser.d.ts.map +1 -1
- package/dist/users/bridge/toNotionUserDataFromBridgeUser.d.ts.map +1 -1
- package/dist/users/getUser.d.ts.map +1 -1
- package/dist/users/getViewer.d.ts.map +1 -1
- package/dist/users/listUsers.d.ts.map +1 -1
- package/dist/users/types.d.ts.map +1 -1
- package/dist/users.d.ts.map +1 -1
- package/dist/utils/makeUuid.d.ts.map +1 -1
- package/dist/utils/notifyListener.d.ts.map +1 -1
- package/dist/utils/typeUtils.d.ts.map +1 -1
- package/dist/utils/unreachable.d.ts.map +1 -1
- package/dist/utils/version.d.ts.map +1 -1
- package/dist/utils/version.js +1 -1
- package/docs/block-location.md +22 -9
- package/docs/deployment.md +5 -11
- package/docs/errors.md +4 -0
- package/docs/grants.md +7 -2
- package/docs/local-development.md +39 -0
- package/docs/pages.md +97 -62
- package/package.json +2 -1
- package/src/bridge/SandboxBridge.ts +49 -144
- package/src/bridge/createBrowserSandboxBridge.ts +64 -0
- package/src/bridge/getBridge.ts +3 -2
- package/src/bridge/hostState.ts +2 -2
- package/src/bridge/initialization/SandboxInitialization.ts +24 -10
- package/src/bridge/sandboxEnvironment.ts +38 -0
- package/src/dataSources/bridge/DataSourceCache.ts +94 -0
- package/src/dataSources/bridge/reuseDataSourcesForUnchangedBindings.ts +5 -5
- package/src/dataSources/properties/resolvePropertyWriteMapForDataSource.ts +2 -2
- package/src/files/files.ts +1 -1
- package/src/location/mapContainingPage.ts +2 -2
- package/src/pages/bridge/toNotionPagePropertyFromBridgeProperty.ts +2 -2
- package/src/pages/types.ts +9 -3
- package/src/preferences/syncDocumentAppearance.ts +2 -1
- package/src/react/index.ts +0 -2
- package/src/styles/scrollbars.css +18 -0
- package/dist/react/NotionTokenScope.d.ts +0 -10
- package/dist/react/NotionTokenScope.d.ts.map +0 -1
- package/dist/react/NotionTokenScope.js +0 -12
- package/src/react/NotionTokenScope.tsx +0 -26
|
@@ -19,8 +19,8 @@ import { getUserResultMessageSchema } from "../users/messages/getUser.js";
|
|
|
19
19
|
import { getViewerResultMessageSchema } from "../users/messages/getViewer.js";
|
|
20
20
|
import { listUsersResultMessageSchema } from "../users/messages/listUsers.js";
|
|
21
21
|
import { invalidSandboxMessageSchema } from "./invalidSandboxMessage.js";
|
|
22
|
-
/** Messages
|
|
23
|
-
export const
|
|
22
|
+
/** Messages with the same shape under protocols 12 and 13. */
|
|
23
|
+
export const commonHostToSandboxSchemas = [
|
|
24
24
|
connectResultMessageSchema,
|
|
25
25
|
setupInitMessageSchema,
|
|
26
26
|
getDataSourceResultMessageSchema,
|
|
@@ -38,6 +38,10 @@ export const hostToSandboxMessageSchema = v.variant("type", [
|
|
|
38
38
|
openPageResultMessageSchema,
|
|
39
39
|
openExternalUrlResultMessageSchema,
|
|
40
40
|
invalidSandboxMessageSchema,
|
|
41
|
+
];
|
|
42
|
+
/** Messages accepted by the current SDK contract. Historical contracts live in `compatibility/`. */
|
|
43
|
+
export const hostToSandboxMessageSchema = v.variant("type", [
|
|
44
|
+
...commonHostToSandboxSchemas,
|
|
41
45
|
queryDataSourceResultMessageSchema,
|
|
42
46
|
getPageResultMessageSchema,
|
|
43
47
|
createPageResultMessageSchema,
|
|
@@ -2169,23 +2169,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Obje
|
|
|
2169
2169
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
2170
2170
|
readonly id: v.StringSchema<undefined>;
|
|
2171
2171
|
}, undefined>, undefined>;
|
|
2172
|
-
}, undefined>, v.ObjectSchema<{
|
|
2173
|
-
readonly id: v.StringSchema<undefined>;
|
|
2174
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2175
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2176
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2177
|
-
readonly external: v.ObjectSchema<{
|
|
2178
|
-
readonly url: v.StringSchema<undefined>;
|
|
2179
|
-
}, undefined>;
|
|
2180
|
-
readonly name: v.StringSchema<undefined>;
|
|
2181
|
-
}, undefined>, v.ObjectSchema<{
|
|
2182
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2183
|
-
readonly file: v.ObjectSchema<{
|
|
2184
|
-
readonly url: v.StringSchema<undefined>;
|
|
2185
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2186
|
-
}, undefined>;
|
|
2187
|
-
readonly name: v.StringSchema<undefined>;
|
|
2188
|
-
}, undefined>], undefined>, undefined>;
|
|
2189
2172
|
}, undefined>, v.ObjectSchema<{
|
|
2190
2173
|
readonly id: v.StringSchema<undefined>;
|
|
2191
2174
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -2241,6 +2224,23 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Obje
|
|
|
2241
2224
|
readonly id: v.StringSchema<undefined>;
|
|
2242
2225
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
2243
2226
|
readonly verification: v.StringSchema<undefined>;
|
|
2227
|
+
}, undefined>, v.ObjectSchema<{
|
|
2228
|
+
readonly id: v.StringSchema<undefined>;
|
|
2229
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2230
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2231
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2232
|
+
readonly external: v.ObjectSchema<{
|
|
2233
|
+
readonly url: v.StringSchema<undefined>;
|
|
2234
|
+
}, undefined>;
|
|
2235
|
+
readonly name: v.StringSchema<undefined>;
|
|
2236
|
+
}, undefined>, v.ObjectSchema<{
|
|
2237
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2238
|
+
readonly file: v.ObjectSchema<{
|
|
2239
|
+
readonly url: v.StringSchema<undefined>;
|
|
2240
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2241
|
+
}, undefined>;
|
|
2242
|
+
readonly name: v.StringSchema<undefined>;
|
|
2243
|
+
}, undefined>], undefined>, undefined>;
|
|
2244
2244
|
}, undefined>], undefined>, undefined>;
|
|
2245
2245
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
2246
2246
|
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
@@ -2434,23 +2434,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Obje
|
|
|
2434
2434
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
2435
2435
|
readonly id: v.StringSchema<undefined>;
|
|
2436
2436
|
}, undefined>, undefined>;
|
|
2437
|
-
}, undefined>, v.ObjectSchema<{
|
|
2438
|
-
readonly id: v.StringSchema<undefined>;
|
|
2439
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2440
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2441
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2442
|
-
readonly external: v.ObjectSchema<{
|
|
2443
|
-
readonly url: v.StringSchema<undefined>;
|
|
2444
|
-
}, undefined>;
|
|
2445
|
-
readonly name: v.StringSchema<undefined>;
|
|
2446
|
-
}, undefined>, v.ObjectSchema<{
|
|
2447
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2448
|
-
readonly file: v.ObjectSchema<{
|
|
2449
|
-
readonly url: v.StringSchema<undefined>;
|
|
2450
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2451
|
-
}, undefined>;
|
|
2452
|
-
readonly name: v.StringSchema<undefined>;
|
|
2453
|
-
}, undefined>], undefined>, undefined>;
|
|
2454
2437
|
}, undefined>, v.ObjectSchema<{
|
|
2455
2438
|
readonly id: v.StringSchema<undefined>;
|
|
2456
2439
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -2506,6 +2489,23 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Obje
|
|
|
2506
2489
|
readonly id: v.StringSchema<undefined>;
|
|
2507
2490
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
2508
2491
|
readonly verification: v.StringSchema<undefined>;
|
|
2492
|
+
}, undefined>, v.ObjectSchema<{
|
|
2493
|
+
readonly id: v.StringSchema<undefined>;
|
|
2494
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2495
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2496
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2497
|
+
readonly external: v.ObjectSchema<{
|
|
2498
|
+
readonly url: v.StringSchema<undefined>;
|
|
2499
|
+
}, undefined>;
|
|
2500
|
+
readonly name: v.StringSchema<undefined>;
|
|
2501
|
+
}, undefined>, v.ObjectSchema<{
|
|
2502
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2503
|
+
readonly file: v.ObjectSchema<{
|
|
2504
|
+
readonly url: v.StringSchema<undefined>;
|
|
2505
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2506
|
+
}, undefined>;
|
|
2507
|
+
readonly name: v.StringSchema<undefined>;
|
|
2508
|
+
}, undefined>], undefined>, undefined>;
|
|
2509
2509
|
}, undefined>], undefined>, undefined>;
|
|
2510
2510
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
2511
2511
|
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
@@ -2716,23 +2716,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Obje
|
|
|
2716
2716
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
2717
2717
|
readonly id: v.StringSchema<undefined>;
|
|
2718
2718
|
}, undefined>, undefined>;
|
|
2719
|
-
}, undefined>, v.ObjectSchema<{
|
|
2720
|
-
readonly id: v.StringSchema<undefined>;
|
|
2721
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2722
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2723
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2724
|
-
readonly external: v.ObjectSchema<{
|
|
2725
|
-
readonly url: v.StringSchema<undefined>;
|
|
2726
|
-
}, undefined>;
|
|
2727
|
-
readonly name: v.StringSchema<undefined>;
|
|
2728
|
-
}, undefined>, v.ObjectSchema<{
|
|
2729
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2730
|
-
readonly file: v.ObjectSchema<{
|
|
2731
|
-
readonly url: v.StringSchema<undefined>;
|
|
2732
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2733
|
-
}, undefined>;
|
|
2734
|
-
readonly name: v.StringSchema<undefined>;
|
|
2735
|
-
}, undefined>], undefined>, undefined>;
|
|
2736
2719
|
}, undefined>, v.ObjectSchema<{
|
|
2737
2720
|
readonly id: v.StringSchema<undefined>;
|
|
2738
2721
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -2788,6 +2771,23 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Obje
|
|
|
2788
2771
|
readonly id: v.StringSchema<undefined>;
|
|
2789
2772
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
2790
2773
|
readonly verification: v.StringSchema<undefined>;
|
|
2774
|
+
}, undefined>, v.ObjectSchema<{
|
|
2775
|
+
readonly id: v.StringSchema<undefined>;
|
|
2776
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2777
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2778
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2779
|
+
readonly external: v.ObjectSchema<{
|
|
2780
|
+
readonly url: v.StringSchema<undefined>;
|
|
2781
|
+
}, undefined>;
|
|
2782
|
+
readonly name: v.StringSchema<undefined>;
|
|
2783
|
+
}, undefined>, v.ObjectSchema<{
|
|
2784
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2785
|
+
readonly file: v.ObjectSchema<{
|
|
2786
|
+
readonly url: v.StringSchema<undefined>;
|
|
2787
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2788
|
+
}, undefined>;
|
|
2789
|
+
readonly name: v.StringSchema<undefined>;
|
|
2790
|
+
}, undefined>], undefined>, undefined>;
|
|
2791
2791
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
2792
2792
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
2793
2793
|
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
@@ -157,23 +157,6 @@ export declare const bridgePageSchema: v.ObjectSchema<{
|
|
|
157
157
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
158
158
|
readonly id: v.StringSchema<undefined>;
|
|
159
159
|
}, undefined>, undefined>;
|
|
160
|
-
}, undefined>, v.ObjectSchema<{
|
|
161
|
-
readonly id: v.StringSchema<undefined>;
|
|
162
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
163
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
164
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
165
|
-
readonly external: v.ObjectSchema<{
|
|
166
|
-
readonly url: v.StringSchema<undefined>;
|
|
167
|
-
}, undefined>;
|
|
168
|
-
readonly name: v.StringSchema<undefined>;
|
|
169
|
-
}, undefined>, v.ObjectSchema<{
|
|
170
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
171
|
-
readonly file: v.ObjectSchema<{
|
|
172
|
-
readonly url: v.StringSchema<undefined>;
|
|
173
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
174
|
-
}, undefined>;
|
|
175
|
-
readonly name: v.StringSchema<undefined>;
|
|
176
|
-
}, undefined>], undefined>, undefined>;
|
|
177
160
|
}, undefined>, v.ObjectSchema<{
|
|
178
161
|
readonly id: v.StringSchema<undefined>;
|
|
179
162
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -229,6 +212,26 @@ export declare const bridgePageSchema: v.ObjectSchema<{
|
|
|
229
212
|
readonly id: v.StringSchema<undefined>;
|
|
230
213
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
231
214
|
readonly verification: v.StringSchema<undefined>;
|
|
215
|
+
}, undefined>, v.ObjectSchema<{
|
|
216
|
+
readonly id: v.StringSchema<undefined>;
|
|
217
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
218
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
219
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
220
|
+
readonly external: v.ObjectSchema<{
|
|
221
|
+
readonly url: v.StringSchema<undefined>;
|
|
222
|
+
}, undefined>;
|
|
223
|
+
readonly name: v.StringSchema<undefined>;
|
|
224
|
+
}, undefined>, v.ObjectSchema<{
|
|
225
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
226
|
+
readonly file: v.ObjectSchema<{
|
|
227
|
+
readonly url: v.StringSchema<undefined>;
|
|
228
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
}, undefined>;
|
|
230
|
+
readonly name: v.StringSchema<undefined>;
|
|
231
|
+
}, undefined>, v.ObjectSchema<{
|
|
232
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
233
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
234
|
+
}, undefined>], undefined>, undefined>;
|
|
232
235
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
233
236
|
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
234
237
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -202,23 +202,6 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
202
202
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
203
203
|
readonly id: v.StringSchema<undefined>;
|
|
204
204
|
}, undefined>, undefined>;
|
|
205
|
-
}, undefined>, v.ObjectSchema<{
|
|
206
|
-
readonly id: v.StringSchema<undefined>;
|
|
207
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
208
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
209
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
210
|
-
readonly external: v.ObjectSchema<{
|
|
211
|
-
readonly url: v.StringSchema<undefined>;
|
|
212
|
-
}, undefined>;
|
|
213
|
-
readonly name: v.StringSchema<undefined>;
|
|
214
|
-
}, undefined>, v.ObjectSchema<{
|
|
215
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
216
|
-
readonly file: v.ObjectSchema<{
|
|
217
|
-
readonly url: v.StringSchema<undefined>;
|
|
218
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
219
|
-
}, undefined>;
|
|
220
|
-
readonly name: v.StringSchema<undefined>;
|
|
221
|
-
}, undefined>], undefined>, undefined>;
|
|
222
205
|
}, undefined>, v.ObjectSchema<{
|
|
223
206
|
readonly id: v.StringSchema<undefined>;
|
|
224
207
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -274,6 +257,26 @@ export declare const createPageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
274
257
|
readonly id: v.StringSchema<undefined>;
|
|
275
258
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
276
259
|
readonly verification: v.StringSchema<undefined>;
|
|
260
|
+
}, undefined>, v.ObjectSchema<{
|
|
261
|
+
readonly id: v.StringSchema<undefined>;
|
|
262
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
263
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
264
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
265
|
+
readonly external: v.ObjectSchema<{
|
|
266
|
+
readonly url: v.StringSchema<undefined>;
|
|
267
|
+
}, undefined>;
|
|
268
|
+
readonly name: v.StringSchema<undefined>;
|
|
269
|
+
}, undefined>, v.ObjectSchema<{
|
|
270
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
271
|
+
readonly file: v.ObjectSchema<{
|
|
272
|
+
readonly url: v.StringSchema<undefined>;
|
|
273
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
274
|
+
}, undefined>;
|
|
275
|
+
readonly name: v.StringSchema<undefined>;
|
|
276
|
+
}, undefined>, v.ObjectSchema<{
|
|
277
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
278
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
279
|
+
}, undefined>], undefined>, undefined>;
|
|
277
280
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
278
281
|
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
279
282
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -522,23 +525,6 @@ export declare const createPageArgsSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
522
525
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
523
526
|
readonly id: v.StringSchema<undefined>;
|
|
524
527
|
}, undefined>, undefined>;
|
|
525
|
-
}, undefined>, v.ObjectSchema<{
|
|
526
|
-
readonly id: v.StringSchema<undefined>;
|
|
527
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
528
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
529
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
530
|
-
readonly external: v.ObjectSchema<{
|
|
531
|
-
readonly url: v.StringSchema<undefined>;
|
|
532
|
-
}, undefined>;
|
|
533
|
-
readonly name: v.StringSchema<undefined>;
|
|
534
|
-
}, undefined>, v.ObjectSchema<{
|
|
535
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
536
|
-
readonly file: v.ObjectSchema<{
|
|
537
|
-
readonly url: v.StringSchema<undefined>;
|
|
538
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
539
|
-
}, undefined>;
|
|
540
|
-
readonly name: v.StringSchema<undefined>;
|
|
541
|
-
}, undefined>], undefined>, undefined>;
|
|
542
528
|
}, undefined>, v.ObjectSchema<{
|
|
543
529
|
readonly id: v.StringSchema<undefined>;
|
|
544
530
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -594,6 +580,23 @@ export declare const createPageArgsSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
594
580
|
readonly id: v.StringSchema<undefined>;
|
|
595
581
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
596
582
|
readonly verification: v.StringSchema<undefined>;
|
|
583
|
+
}, undefined>, v.ObjectSchema<{
|
|
584
|
+
readonly id: v.StringSchema<undefined>;
|
|
585
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
586
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
587
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
588
|
+
readonly external: v.ObjectSchema<{
|
|
589
|
+
readonly url: v.StringSchema<undefined>;
|
|
590
|
+
}, undefined>;
|
|
591
|
+
readonly name: v.StringSchema<undefined>;
|
|
592
|
+
}, undefined>, v.ObjectSchema<{
|
|
593
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
594
|
+
readonly file: v.ObjectSchema<{
|
|
595
|
+
readonly url: v.StringSchema<undefined>;
|
|
596
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
597
|
+
}, undefined>;
|
|
598
|
+
readonly name: v.StringSchema<undefined>;
|
|
599
|
+
}, undefined>], undefined>, undefined>;
|
|
597
600
|
}, undefined>], undefined>, undefined>;
|
|
598
601
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
599
602
|
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
@@ -785,23 +788,6 @@ export declare const createPageArgsSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
785
788
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
786
789
|
readonly id: v.StringSchema<undefined>;
|
|
787
790
|
}, undefined>, undefined>;
|
|
788
|
-
}, undefined>, v.ObjectSchema<{
|
|
789
|
-
readonly id: v.StringSchema<undefined>;
|
|
790
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
791
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
792
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
793
|
-
readonly external: v.ObjectSchema<{
|
|
794
|
-
readonly url: v.StringSchema<undefined>;
|
|
795
|
-
}, undefined>;
|
|
796
|
-
readonly name: v.StringSchema<undefined>;
|
|
797
|
-
}, undefined>, v.ObjectSchema<{
|
|
798
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
799
|
-
readonly file: v.ObjectSchema<{
|
|
800
|
-
readonly url: v.StringSchema<undefined>;
|
|
801
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
802
|
-
}, undefined>;
|
|
803
|
-
readonly name: v.StringSchema<undefined>;
|
|
804
|
-
}, undefined>], undefined>, undefined>;
|
|
805
791
|
}, undefined>, v.ObjectSchema<{
|
|
806
792
|
readonly id: v.StringSchema<undefined>;
|
|
807
793
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -857,6 +843,23 @@ export declare const createPageArgsSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
857
843
|
readonly id: v.StringSchema<undefined>;
|
|
858
844
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
859
845
|
readonly verification: v.StringSchema<undefined>;
|
|
846
|
+
}, undefined>, v.ObjectSchema<{
|
|
847
|
+
readonly id: v.StringSchema<undefined>;
|
|
848
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
849
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
850
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
851
|
+
readonly external: v.ObjectSchema<{
|
|
852
|
+
readonly url: v.StringSchema<undefined>;
|
|
853
|
+
}, undefined>;
|
|
854
|
+
readonly name: v.StringSchema<undefined>;
|
|
855
|
+
}, undefined>, v.ObjectSchema<{
|
|
856
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
857
|
+
readonly file: v.ObjectSchema<{
|
|
858
|
+
readonly url: v.StringSchema<undefined>;
|
|
859
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
860
|
+
}, undefined>;
|
|
861
|
+
readonly name: v.StringSchema<undefined>;
|
|
862
|
+
}, undefined>], undefined>, undefined>;
|
|
860
863
|
}, undefined>], undefined>, undefined>;
|
|
861
864
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
862
865
|
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
@@ -1039,23 +1042,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1039
1042
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
1040
1043
|
readonly id: v.StringSchema<undefined>;
|
|
1041
1044
|
}, undefined>, undefined>;
|
|
1042
|
-
}, undefined>, v.ObjectSchema<{
|
|
1043
|
-
readonly id: v.StringSchema<undefined>;
|
|
1044
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1045
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1046
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1047
|
-
readonly external: v.ObjectSchema<{
|
|
1048
|
-
readonly url: v.StringSchema<undefined>;
|
|
1049
|
-
}, undefined>;
|
|
1050
|
-
readonly name: v.StringSchema<undefined>;
|
|
1051
|
-
}, undefined>, v.ObjectSchema<{
|
|
1052
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1053
|
-
readonly file: v.ObjectSchema<{
|
|
1054
|
-
readonly url: v.StringSchema<undefined>;
|
|
1055
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1056
|
-
}, undefined>;
|
|
1057
|
-
readonly name: v.StringSchema<undefined>;
|
|
1058
|
-
}, undefined>], undefined>, undefined>;
|
|
1059
1045
|
}, undefined>, v.ObjectSchema<{
|
|
1060
1046
|
readonly id: v.StringSchema<undefined>;
|
|
1061
1047
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -1111,6 +1097,23 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1111
1097
|
readonly id: v.StringSchema<undefined>;
|
|
1112
1098
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1113
1099
|
readonly verification: v.StringSchema<undefined>;
|
|
1100
|
+
}, undefined>, v.ObjectSchema<{
|
|
1101
|
+
readonly id: v.StringSchema<undefined>;
|
|
1102
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1103
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1104
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1105
|
+
readonly external: v.ObjectSchema<{
|
|
1106
|
+
readonly url: v.StringSchema<undefined>;
|
|
1107
|
+
}, undefined>;
|
|
1108
|
+
readonly name: v.StringSchema<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
|
+
readonly name: v.StringSchema<undefined>;
|
|
1116
|
+
}, undefined>], undefined>, undefined>;
|
|
1114
1117
|
}, undefined>], undefined>, undefined>;
|
|
1115
1118
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1116
1119
|
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
@@ -1304,23 +1307,6 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1304
1307
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
1305
1308
|
readonly id: v.StringSchema<undefined>;
|
|
1306
1309
|
}, undefined>, undefined>;
|
|
1307
|
-
}, undefined>, v.ObjectSchema<{
|
|
1308
|
-
readonly id: v.StringSchema<undefined>;
|
|
1309
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1310
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1311
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1312
|
-
readonly external: v.ObjectSchema<{
|
|
1313
|
-
readonly url: v.StringSchema<undefined>;
|
|
1314
|
-
}, undefined>;
|
|
1315
|
-
readonly name: v.StringSchema<undefined>;
|
|
1316
|
-
}, undefined>, v.ObjectSchema<{
|
|
1317
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1318
|
-
readonly file: v.ObjectSchema<{
|
|
1319
|
-
readonly url: v.StringSchema<undefined>;
|
|
1320
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1321
|
-
}, undefined>;
|
|
1322
|
-
readonly name: v.StringSchema<undefined>;
|
|
1323
|
-
}, undefined>], undefined>, undefined>;
|
|
1324
1310
|
}, undefined>, v.ObjectSchema<{
|
|
1325
1311
|
readonly id: v.StringSchema<undefined>;
|
|
1326
1312
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -1376,6 +1362,23 @@ export declare const createPageMessageSchema: v.VariantSchema<"type", [v.ObjectS
|
|
|
1376
1362
|
readonly id: v.StringSchema<undefined>;
|
|
1377
1363
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1378
1364
|
readonly verification: v.StringSchema<undefined>;
|
|
1365
|
+
}, undefined>, v.ObjectSchema<{
|
|
1366
|
+
readonly id: v.StringSchema<undefined>;
|
|
1367
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1368
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1369
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1370
|
+
readonly external: v.ObjectSchema<{
|
|
1371
|
+
readonly url: v.StringSchema<undefined>;
|
|
1372
|
+
}, undefined>;
|
|
1373
|
+
readonly name: v.StringSchema<undefined>;
|
|
1374
|
+
}, undefined>, v.ObjectSchema<{
|
|
1375
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1376
|
+
readonly file: v.ObjectSchema<{
|
|
1377
|
+
readonly url: v.StringSchema<undefined>;
|
|
1378
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1379
|
+
}, undefined>;
|
|
1380
|
+
readonly name: v.StringSchema<undefined>;
|
|
1381
|
+
}, undefined>], undefined>, undefined>;
|
|
1379
1382
|
}, undefined>], undefined>, undefined>;
|
|
1380
1383
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
1381
1384
|
readonly type: v.LiteralSchema<"icon", undefined>;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import type
|
|
2
|
+
import { type CustomBlockErrorCode, type CustomBlockErrorInfoWithDetails, type CustomBlockGrantErrorCode, type CustomBlockRequestErrorCode } from "../../utils/errors.js";
|
|
3
3
|
export declare const customBlockGetPageErrorCodeSchema: v.StringSchema<undefined>;
|
|
4
4
|
export type CustomBlockGetPageErrorCode = CustomBlockErrorCode<CustomBlockRequestErrorCode | "get_page_failed" | "page_unavailable" | CustomBlockGrantErrorCode>;
|
|
5
|
-
export type CustomBlockGetPageErrorInfo =
|
|
5
|
+
export type CustomBlockGetPageErrorInfo = CustomBlockErrorInfoWithDetails<CustomBlockGetPageErrorCode>;
|
|
6
6
|
export declare const customBlockGetPageErrorInfoSchema: v.ObjectSchema<{
|
|
7
7
|
readonly code: v.StringSchema<undefined>;
|
|
8
8
|
readonly message: v.StringSchema<undefined>;
|
|
9
9
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
10
|
+
readonly details: v.SchemaWithFallback<v.OptionalSchema<v.CustomSchema<Record<string, unknown>, undefined>, undefined>, undefined>;
|
|
10
11
|
}, undefined>;
|
|
11
12
|
/**
|
|
12
13
|
* Sandbox -> host: fetch a page by ID.
|
|
@@ -180,23 +181,6 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
180
181
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
181
182
|
readonly id: v.StringSchema<undefined>;
|
|
182
183
|
}, undefined>, undefined>;
|
|
183
|
-
}, undefined>, v.ObjectSchema<{
|
|
184
|
-
readonly id: v.StringSchema<undefined>;
|
|
185
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
186
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
187
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
188
|
-
readonly external: v.ObjectSchema<{
|
|
189
|
-
readonly url: v.StringSchema<undefined>;
|
|
190
|
-
}, undefined>;
|
|
191
|
-
readonly name: v.StringSchema<undefined>;
|
|
192
|
-
}, undefined>, v.ObjectSchema<{
|
|
193
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
194
|
-
readonly file: v.ObjectSchema<{
|
|
195
|
-
readonly url: v.StringSchema<undefined>;
|
|
196
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
197
|
-
}, undefined>;
|
|
198
|
-
readonly name: v.StringSchema<undefined>;
|
|
199
|
-
}, undefined>], undefined>, undefined>;
|
|
200
184
|
}, undefined>, v.ObjectSchema<{
|
|
201
185
|
readonly id: v.StringSchema<undefined>;
|
|
202
186
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -252,6 +236,26 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
252
236
|
readonly id: v.StringSchema<undefined>;
|
|
253
237
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
254
238
|
readonly verification: v.StringSchema<undefined>;
|
|
239
|
+
}, undefined>, v.ObjectSchema<{
|
|
240
|
+
readonly id: v.StringSchema<undefined>;
|
|
241
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
242
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
243
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
244
|
+
readonly external: v.ObjectSchema<{
|
|
245
|
+
readonly url: v.StringSchema<undefined>;
|
|
246
|
+
}, undefined>;
|
|
247
|
+
readonly name: v.StringSchema<undefined>;
|
|
248
|
+
}, undefined>, v.ObjectSchema<{
|
|
249
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
250
|
+
readonly file: v.ObjectSchema<{
|
|
251
|
+
readonly url: v.StringSchema<undefined>;
|
|
252
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
253
|
+
}, undefined>;
|
|
254
|
+
readonly name: v.StringSchema<undefined>;
|
|
255
|
+
}, undefined>, v.ObjectSchema<{
|
|
256
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
257
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
258
|
+
}, undefined>], undefined>, undefined>;
|
|
255
259
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
256
260
|
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
257
261
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -324,6 +328,7 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
324
328
|
readonly code: v.StringSchema<undefined>;
|
|
325
329
|
readonly message: v.StringSchema<undefined>;
|
|
326
330
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
331
|
+
readonly details: v.SchemaWithFallback<v.OptionalSchema<v.CustomSchema<Record<string, unknown>, undefined>, undefined>, undefined>;
|
|
327
332
|
}, undefined>;
|
|
328
333
|
}, undefined>], undefined>;
|
|
329
334
|
export type GetPageResultMessage = v.InferOutput<typeof getPageResultMessageSchema>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
+
import { customBlockErrorDetailsSchema, } from "../../utils/errors.js";
|
|
2
3
|
import { notionDataSourceIdSchema, notionPageIdSchema, } from "../../utils/ids.js";
|
|
3
4
|
import { bridgePageSchema } from "../bridgePage.js";
|
|
4
5
|
// The schema accepts any string code. The type lists known codes for
|
|
@@ -8,6 +9,7 @@ export const customBlockGetPageErrorInfoSchema = v.object({
|
|
|
8
9
|
code: customBlockGetPageErrorCodeSchema,
|
|
9
10
|
message: v.string(),
|
|
10
11
|
isRetryable: v.boolean(),
|
|
12
|
+
details: v.fallback(v.optional(customBlockErrorDetailsSchema), undefined),
|
|
11
13
|
});
|
|
12
14
|
/**
|
|
13
15
|
* Sandbox -> host: fetch a page by ID.
|
|
@@ -173,23 +173,6 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
173
173
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
174
174
|
readonly id: v.StringSchema<undefined>;
|
|
175
175
|
}, undefined>, undefined>;
|
|
176
|
-
}, undefined>, v.ObjectSchema<{
|
|
177
|
-
readonly id: v.StringSchema<undefined>;
|
|
178
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
179
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
180
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
181
|
-
readonly external: v.ObjectSchema<{
|
|
182
|
-
readonly url: v.StringSchema<undefined>;
|
|
183
|
-
}, undefined>;
|
|
184
|
-
readonly name: v.StringSchema<undefined>;
|
|
185
|
-
}, undefined>, v.ObjectSchema<{
|
|
186
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
187
|
-
readonly file: v.ObjectSchema<{
|
|
188
|
-
readonly url: v.StringSchema<undefined>;
|
|
189
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
190
|
-
}, undefined>;
|
|
191
|
-
readonly name: v.StringSchema<undefined>;
|
|
192
|
-
}, undefined>], undefined>, undefined>;
|
|
193
176
|
}, undefined>, v.ObjectSchema<{
|
|
194
177
|
readonly id: v.StringSchema<undefined>;
|
|
195
178
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -245,6 +228,26 @@ export declare const updatePageResultMessageSchema: v.VariantSchema<"status", [v
|
|
|
245
228
|
readonly id: v.StringSchema<undefined>;
|
|
246
229
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
247
230
|
readonly verification: v.StringSchema<undefined>;
|
|
231
|
+
}, undefined>, v.ObjectSchema<{
|
|
232
|
+
readonly id: v.StringSchema<undefined>;
|
|
233
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
234
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
235
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
236
|
+
readonly external: v.ObjectSchema<{
|
|
237
|
+
readonly url: v.StringSchema<undefined>;
|
|
238
|
+
}, undefined>;
|
|
239
|
+
readonly name: v.StringSchema<undefined>;
|
|
240
|
+
}, undefined>, v.ObjectSchema<{
|
|
241
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
242
|
+
readonly file: v.ObjectSchema<{
|
|
243
|
+
readonly url: v.StringSchema<undefined>;
|
|
244
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
245
|
+
}, undefined>;
|
|
246
|
+
readonly name: v.StringSchema<undefined>;
|
|
247
|
+
}, undefined>, v.ObjectSchema<{
|
|
248
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
249
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
250
|
+
}, undefined>], undefined>, undefined>;
|
|
248
251
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
249
252
|
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
250
253
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -469,23 +472,6 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
469
472
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
470
473
|
readonly id: v.StringSchema<undefined>;
|
|
471
474
|
}, undefined>, undefined>;
|
|
472
|
-
}, undefined>, v.ObjectSchema<{
|
|
473
|
-
readonly id: v.StringSchema<undefined>;
|
|
474
|
-
readonly type: v.LiteralSchema<"files", undefined>;
|
|
475
|
-
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
476
|
-
readonly type: v.LiteralSchema<"external", undefined>;
|
|
477
|
-
readonly external: v.ObjectSchema<{
|
|
478
|
-
readonly url: v.StringSchema<undefined>;
|
|
479
|
-
}, undefined>;
|
|
480
|
-
readonly name: v.StringSchema<undefined>;
|
|
481
|
-
}, undefined>, v.ObjectSchema<{
|
|
482
|
-
readonly type: v.LiteralSchema<"file", undefined>;
|
|
483
|
-
readonly file: v.ObjectSchema<{
|
|
484
|
-
readonly url: v.StringSchema<undefined>;
|
|
485
|
-
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
486
|
-
}, undefined>;
|
|
487
|
-
readonly name: v.StringSchema<undefined>;
|
|
488
|
-
}, undefined>], undefined>, undefined>;
|
|
489
475
|
}, undefined>, v.ObjectSchema<{
|
|
490
476
|
readonly id: v.StringSchema<undefined>;
|
|
491
477
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
@@ -541,6 +527,23 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
541
527
|
readonly id: v.StringSchema<undefined>;
|
|
542
528
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
543
529
|
readonly verification: v.StringSchema<undefined>;
|
|
530
|
+
}, undefined>, v.ObjectSchema<{
|
|
531
|
+
readonly id: v.StringSchema<undefined>;
|
|
532
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
533
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
534
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
535
|
+
readonly external: v.ObjectSchema<{
|
|
536
|
+
readonly url: v.StringSchema<undefined>;
|
|
537
|
+
}, undefined>;
|
|
538
|
+
readonly name: v.StringSchema<undefined>;
|
|
539
|
+
}, undefined>, v.ObjectSchema<{
|
|
540
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
541
|
+
readonly file: v.ObjectSchema<{
|
|
542
|
+
readonly url: v.StringSchema<undefined>;
|
|
543
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
544
|
+
}, undefined>;
|
|
545
|
+
readonly name: v.StringSchema<undefined>;
|
|
546
|
+
}, undefined>], undefined>, undefined>;
|
|
544
547
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
545
548
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
546
549
|
readonly type: v.LiteralSchema<"icon", undefined>;
|