@notionhq/custom-blocks-host 0.6.0 → 0.8.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/dist/browser.js +1 -1
- package/dist/compatibility/normalizeSandboxToHostMessage.d.ts +16 -16
- package/dist/compatibility/pages/toPageWithNullTextFallbackProperties.d.ts.map +1 -1
- package/dist/compatibility/pages/toPageWithNullTextFallbackProperties.js +0 -1
- package/dist/compatibility/protocol3To4/addMetadataReadSchemasForProtocol3To4.d.ts +17 -36
- package/dist/compatibility/protocol3To4/addMetadataReadSchemasForProtocol3To4.d.ts.map +1 -1
- package/dist/compatibility/protocol3To5/toPropertyValueForProtocol3To5.d.ts.map +1 -1
- package/dist/compatibility/protocol3To5/toPropertyValueForProtocol3To5.js +0 -2
- package/dist/context/initialState.d.ts +45 -44
- package/dist/context/initialState.d.ts.map +1 -1
- package/dist/manifest/types.d.ts +15 -4
- package/dist/manifest/types.d.ts.map +1 -1
- package/dist/protocol/compatibility/protocol3To5/bridgePage.d.ts +0 -4
- package/dist/protocol/dataSources/bridgeArchiveStatus.d.ts +3 -0
- package/dist/protocol/dataSources/bridgeArchiveStatus.js +6 -0
- package/dist/protocol/dataSources/bridgeDataSourceBinding.d.ts +0 -4
- package/dist/protocol/dataSources/bridgeDataSourceBindings.d.ts +0 -4
- package/dist/protocol/dataSources/collectionSchema.d.ts +0 -4
- package/dist/protocol/dataSources/messages/dataSourcesChanged.d.ts +0 -4
- package/dist/protocol/dataSources/messages/queryDataSource.d.ts +3 -12
- package/dist/protocol/dataSources/messages/queryDataSource.js +2 -0
- package/dist/protocol/dataSources/notionDataSource.d.ts +0 -8
- package/dist/protocol/dataSources/properties/propertySchema.d.ts +3 -7
- package/dist/protocol/dataSources/properties/propertySchema.js +1 -3
- package/dist/protocol/handshake/connect.d.ts +15 -4
- package/dist/protocol/handshake/init.d.ts +15 -8
- package/dist/protocol/index.d.ts +8 -6
- package/dist/protocol/index.js +4 -3
- package/dist/protocol/manifest/grants.d.ts +48 -0
- package/dist/protocol/manifest/grants.js +19 -0
- package/dist/protocol/manifest/manifest.d.ts +33 -10
- package/dist/protocol/manifest/manifest.js +11 -5
- package/dist/protocol/messages/hostToSandbox.d.ts +30 -76
- package/dist/protocol/messages/sandboxToHost.d.ts +16 -16
- package/dist/protocol/pages/bridgePage.d.ts +0 -5
- package/dist/protocol/pages/bridgePage.js +0 -1
- package/dist/protocol/pages/messages/createPage.d.ts +2 -24
- package/dist/protocol/pages/messages/getPage.d.ts +2 -16
- package/dist/protocol/pages/messages/openPage.d.ts +2 -2
- package/dist/protocol/pages/messages/updatePage.d.ts +2 -20
- package/dist/protocol/pages/properties/bridgePagePropertyMaps.d.ts +0 -8
- package/dist/protocol/pages/properties/bridgePagePropertyValue.d.ts +0 -4
- package/dist/protocol/pages/properties/bridgePagePropertyValue.js +0 -5
- package/dist/protocol/users/messages/getUser.d.ts +2 -2
- package/dist/protocol/users/messages/listUsers.d.ts +2 -2
- package/dist/protocol/utils/errors.d.ts +4 -4
- package/dist/protocol/utils/errors.js +3 -3
- package/dist/protocol/utils/protocolVersion.d.ts +1 -1
- package/dist/protocol/utils/protocolVersion.js +1 -1
- package/docs/bridge/changelog.md +11 -3
- package/docs/bridge/protocol.md +14 -7
- package/docs/compatibility.md +1 -1
- package/package.json +1 -1
- package/src/compatibility/pages/toPageWithNullTextFallbackProperties.ts +0 -1
- package/src/compatibility/protocol3To5/toPropertyValueForProtocol3To5.ts +0 -2
- package/dist/protocol/manifest/capabilities.d.ts +0 -37
- package/dist/protocol/manifest/capabilities.js +0 -13
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/**
|
|
3
|
+
* One entry in the block manifest's `grants`: what the block needs to do
|
|
4
|
+
* (`action`) and what it acts on (`resource`). Viewers approve declared
|
|
5
|
+
* entries before the block loads.
|
|
6
|
+
*
|
|
7
|
+
* `resource` is one resource or a non-empty array of them. An array applies
|
|
8
|
+
* the action to each element. A resource string is never split, so
|
|
9
|
+
* `"data_source:tasks,projects"` names one key.
|
|
10
|
+
*
|
|
11
|
+
* Names are open strings so a newer vocabulary never makes an older host or SDK
|
|
12
|
+
* reject a manifest. Notion stores each array element as its own entry at
|
|
13
|
+
* deploy, so the manifest a deployed block receives in `init` has string
|
|
14
|
+
* resources only.
|
|
15
|
+
*/
|
|
16
|
+
export declare const customBlockGrantSchema: v.ObjectSchema<{
|
|
17
|
+
readonly action: v.StringSchema<undefined>;
|
|
18
|
+
readonly resource: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>], undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
export type CustomBlockGrant = v.InferOutput<typeof customBlockGrantSchema>;
|
|
21
|
+
/**
|
|
22
|
+
* Grant actions that hosts recognize. `user` is shorthand for `user.read`
|
|
23
|
+
* and `user.read_email` on the same resource. `page` is shorthand for
|
|
24
|
+
* `page.read`, `page.insert`, `page.update`, and `page.archive` on the same
|
|
25
|
+
* resource. `page.trash` is reserved for a future Trash call and is not
|
|
26
|
+
* accepted yet.
|
|
27
|
+
*/
|
|
28
|
+
export type CustomBlockGrantAction = "user" | "user.read" | "user.read_email" | "page" | "page.read" | "page.insert" | "page.update" | "page.archive" | "network.fetch";
|
|
29
|
+
/**
|
|
30
|
+
* Resource names that hosts recognize. User actions take `current_user`
|
|
31
|
+
* or `workspace` (every member of the workspace). Page actions take
|
|
32
|
+
* `workspace` (every page the viewer can access), `containing_page`,
|
|
33
|
+
* `data_source:<key>`, or `data_source` (every declared data source).
|
|
34
|
+
* `private` is reserved for a future `page.insert` into the viewer's Private
|
|
35
|
+
* section and is not accepted yet. `network.fetch` takes a bare HTTPS origin.
|
|
36
|
+
*/
|
|
37
|
+
export type CustomBlockGrantResourceName = "current_user" | "workspace" | "containing_page" | "data_source" | CustomBlockDataSourceResourceName | CustomBlockOriginResourceName;
|
|
38
|
+
/**
|
|
39
|
+
* The data source bound to one key of the manifest's `dataSources`, such as
|
|
40
|
+
* `data_source:tasks`. The key must match a declared data source exactly.
|
|
41
|
+
*/
|
|
42
|
+
export type CustomBlockDataSourceResourceName = `data_source:${string}`;
|
|
43
|
+
/**
|
|
44
|
+
* An HTTPS origin the block loads content from and connects to, such as
|
|
45
|
+
* `https://api.example.com`. `https://*.example.com` covers subdomains. Hosts
|
|
46
|
+
* allow only origins that are also on the workspace's network allowlist.
|
|
47
|
+
*/
|
|
48
|
+
export type CustomBlockOriginResourceName = `https://${string}`;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
/**
|
|
3
|
+
* One entry in the block manifest's `grants`: what the block needs to do
|
|
4
|
+
* (`action`) and what it acts on (`resource`). Viewers approve declared
|
|
5
|
+
* entries before the block loads.
|
|
6
|
+
*
|
|
7
|
+
* `resource` is one resource or a non-empty array of them. An array applies
|
|
8
|
+
* the action to each element. A resource string is never split, so
|
|
9
|
+
* `"data_source:tasks,projects"` names one key.
|
|
10
|
+
*
|
|
11
|
+
* Names are open strings so a newer vocabulary never makes an older host or SDK
|
|
12
|
+
* reject a manifest. Notion stores each array element as its own entry at
|
|
13
|
+
* deploy, so the manifest a deployed block receives in `init` has string
|
|
14
|
+
* resources only.
|
|
15
|
+
*/
|
|
16
|
+
export const customBlockGrantSchema = v.object({
|
|
17
|
+
action: v.string(),
|
|
18
|
+
resource: v.union([v.string(), v.pipe(v.array(v.string()), v.minLength(1))]),
|
|
19
|
+
});
|
|
@@ -15,9 +15,21 @@ export type ManifestIcon = v.InferOutput<typeof manifestIconSchema>;
|
|
|
15
15
|
export declare const manifestPropertySchema: v.ObjectSchema<{
|
|
16
16
|
readonly name: v.StringSchema<undefined>;
|
|
17
17
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
18
|
-
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "
|
|
18
|
+
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
|
|
19
19
|
}, undefined>;
|
|
20
20
|
export type ManifestProperty = v.InferOutput<typeof manifestPropertySchema>;
|
|
21
|
+
export declare const manifestPageSchema: v.ObjectSchema<{
|
|
22
|
+
readonly name: v.StringSchema<undefined>;
|
|
23
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
24
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
25
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
26
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
27
|
+
}, undefined>, v.ObjectSchema<{
|
|
28
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
29
|
+
readonly url: v.StringSchema<undefined>;
|
|
30
|
+
}, undefined>], undefined>, undefined>;
|
|
31
|
+
}, undefined>;
|
|
32
|
+
export type ManifestPage = v.InferOutput<typeof manifestPageSchema>;
|
|
21
33
|
export declare const manifestDataSourceSchema: v.ObjectSchema<{
|
|
22
34
|
readonly name: v.StringSchema<undefined>;
|
|
23
35
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -31,7 +43,7 @@ export declare const manifestDataSourceSchema: v.ObjectSchema<{
|
|
|
31
43
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
32
44
|
readonly name: v.StringSchema<undefined>;
|
|
33
45
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
-
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "
|
|
46
|
+
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
|
|
35
47
|
}, undefined>, undefined>, {}>;
|
|
36
48
|
}, undefined>;
|
|
37
49
|
export type ManifestDataSource = v.InferOutput<typeof manifestDataSourceSchema>;
|
|
@@ -57,21 +69,32 @@ export declare const manifestSchema: v.ObjectSchema<{
|
|
|
57
69
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
58
70
|
readonly name: v.StringSchema<undefined>;
|
|
59
71
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
60
|
-
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "
|
|
72
|
+
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
|
|
61
73
|
}, undefined>, undefined>, {}>;
|
|
62
74
|
}, undefined>, undefined>, {}>;
|
|
75
|
+
readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
76
|
+
readonly name: v.StringSchema<undefined>;
|
|
77
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
78
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
79
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
80
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
81
|
+
}, undefined>, v.ObjectSchema<{
|
|
82
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
83
|
+
readonly url: v.StringSchema<undefined>;
|
|
84
|
+
}, undefined>], undefined>, undefined>;
|
|
85
|
+
}, undefined>, undefined>, undefined>;
|
|
63
86
|
/**
|
|
64
|
-
*
|
|
65
|
-
* approval, so hosts do not ask the viewer. An empty array declares
|
|
66
|
-
*
|
|
87
|
+
* Grants the block needs. Omitted means the block predates viewer
|
|
88
|
+
* approval, so hosts do not ask the viewer. An empty array declares
|
|
89
|
+
* nothing.
|
|
67
90
|
*/
|
|
68
|
-
readonly
|
|
69
|
-
readonly
|
|
70
|
-
readonly resource: v.StringSchema<undefined>;
|
|
91
|
+
readonly grants: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
92
|
+
readonly action: v.StringSchema<undefined>;
|
|
93
|
+
readonly resource: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>], undefined>;
|
|
71
94
|
}, undefined>, undefined>, undefined>;
|
|
72
95
|
}, undefined>;
|
|
73
96
|
/**
|
|
74
97
|
* Manifest describing a custom block, its required data sources, and its
|
|
75
|
-
*
|
|
98
|
+
* grants.
|
|
76
99
|
*/
|
|
77
100
|
export type BridgeCustomBlockManifest = v.InferOutput<typeof manifestSchema>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
import { notionPropertyTypeSchema } from "../dataSources/properties/propertySchema.js";
|
|
3
|
-
import {
|
|
3
|
+
import { customBlockGrantSchema } from "./grants.js";
|
|
4
4
|
/**
|
|
5
5
|
* Decorative icon attached to a manifest data source. Mirrors the
|
|
6
6
|
* `emoji` / `external` icon variants the public Notion API uses, so the host
|
|
@@ -21,6 +21,11 @@ export const manifestPropertySchema = v.object({
|
|
|
21
21
|
description: v.optional(v.string()),
|
|
22
22
|
type: notionPropertyTypeSchema,
|
|
23
23
|
});
|
|
24
|
+
export const manifestPageSchema = v.object({
|
|
25
|
+
name: v.string(),
|
|
26
|
+
description: v.optional(v.string()),
|
|
27
|
+
icon: v.optional(manifestIconSchema),
|
|
28
|
+
});
|
|
24
29
|
export const manifestDataSourceSchema = v.object({
|
|
25
30
|
name: v.string(),
|
|
26
31
|
description: v.optional(v.string()),
|
|
@@ -34,10 +39,11 @@ export const manifestSchema = v.object({
|
|
|
34
39
|
slashCommand: v.optional(v.string()),
|
|
35
40
|
icon: v.optional(v.object({ type: v.literal("emoji"), emoji: v.string() })),
|
|
36
41
|
dataSources: v.optional(v.record(v.string(), manifestDataSourceSchema), {}),
|
|
42
|
+
pages: v.optional(v.record(v.string(), manifestPageSchema)),
|
|
37
43
|
/**
|
|
38
|
-
*
|
|
39
|
-
* approval, so hosts do not ask the viewer. An empty array declares
|
|
40
|
-
*
|
|
44
|
+
* Grants the block needs. Omitted means the block predates viewer
|
|
45
|
+
* approval, so hosts do not ask the viewer. An empty array declares
|
|
46
|
+
* nothing.
|
|
41
47
|
*/
|
|
42
|
-
|
|
48
|
+
grants: v.optional(v.array(customBlockGrantSchema)),
|
|
43
49
|
});
|
|
@@ -70,12 +70,23 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
70
70
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
71
71
|
readonly name: v.StringSchema<undefined>;
|
|
72
72
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
73
|
-
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "
|
|
73
|
+
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
|
|
74
74
|
}, undefined>, undefined>, {}>;
|
|
75
75
|
}, undefined>, undefined>, {}>;
|
|
76
|
-
readonly
|
|
77
|
-
readonly
|
|
78
|
-
readonly
|
|
76
|
+
readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
77
|
+
readonly name: v.StringSchema<undefined>;
|
|
78
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
80
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
81
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
82
|
+
}, undefined>, v.ObjectSchema<{
|
|
83
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
84
|
+
readonly url: v.StringSchema<undefined>;
|
|
85
|
+
}, undefined>], undefined>, undefined>;
|
|
86
|
+
}, undefined>, undefined>, undefined>;
|
|
87
|
+
readonly grants: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
88
|
+
readonly action: v.StringSchema<undefined>;
|
|
89
|
+
readonly resource: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>], undefined>;
|
|
79
90
|
}, undefined>, undefined>, undefined>;
|
|
80
91
|
}, undefined>;
|
|
81
92
|
readonly dataSources: v.ObjectSchema<{
|
|
@@ -196,10 +207,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
196
207
|
readonly name: v.StringSchema<undefined>;
|
|
197
208
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
198
209
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
199
|
-
}, undefined>, v.ObjectSchema<{
|
|
200
|
-
readonly name: v.StringSchema<undefined>;
|
|
201
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
202
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
203
210
|
}, undefined>, v.ObjectSchema<{
|
|
204
211
|
readonly name: v.StringSchema<undefined>;
|
|
205
212
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -429,10 +436,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
429
436
|
readonly name: v.StringSchema<undefined>;
|
|
430
437
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
431
438
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
432
|
-
}, undefined>, v.ObjectSchema<{
|
|
433
|
-
readonly name: v.StringSchema<undefined>;
|
|
434
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
435
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
436
439
|
}, undefined>, v.ObjectSchema<{
|
|
437
440
|
readonly name: v.StringSchema<undefined>;
|
|
438
441
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -754,10 +757,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
754
757
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
755
758
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
756
759
|
}, undefined>, undefined>;
|
|
757
|
-
}, undefined>, v.ObjectSchema<{
|
|
758
|
-
readonly id: v.StringSchema<undefined>;
|
|
759
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
760
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
761
760
|
}, undefined>, v.ObjectSchema<{
|
|
762
761
|
readonly id: v.StringSchema<undefined>;
|
|
763
762
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -793,7 +792,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
793
792
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
794
793
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
795
794
|
}, undefined>, undefined>, null>;
|
|
796
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
797
795
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
798
796
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
799
797
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -1062,10 +1060,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1062
1060
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1063
1061
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1064
1062
|
}, undefined>, undefined>;
|
|
1065
|
-
}, undefined>, v.ObjectSchema<{
|
|
1066
|
-
readonly id: v.StringSchema<undefined>;
|
|
1067
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1068
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1069
1063
|
}, undefined>, v.ObjectSchema<{
|
|
1070
1064
|
readonly id: v.StringSchema<undefined>;
|
|
1071
1065
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1101,7 +1095,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1101
1095
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1102
1096
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1103
1097
|
}, undefined>, undefined>, null>;
|
|
1104
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1105
1098
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1106
1099
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1107
1100
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -1369,10 +1362,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1369
1362
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1370
1363
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1371
1364
|
}, undefined>, undefined>;
|
|
1372
|
-
}, undefined>, v.ObjectSchema<{
|
|
1373
|
-
readonly id: v.StringSchema<undefined>;
|
|
1374
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1375
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1376
1365
|
}, undefined>, v.ObjectSchema<{
|
|
1377
1366
|
readonly id: v.StringSchema<undefined>;
|
|
1378
1367
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1408,7 +1397,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1408
1397
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1409
1398
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1410
1399
|
}, undefined>, undefined>, null>;
|
|
1411
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1412
1400
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1413
1401
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1414
1402
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -1676,10 +1664,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1676
1664
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1677
1665
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1678
1666
|
}, undefined>, undefined>;
|
|
1679
|
-
}, undefined>, v.ObjectSchema<{
|
|
1680
|
-
readonly id: v.StringSchema<undefined>;
|
|
1681
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1682
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1683
1667
|
}, undefined>, v.ObjectSchema<{
|
|
1684
1668
|
readonly id: v.StringSchema<undefined>;
|
|
1685
1669
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1715,7 +1699,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1715
1699
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1716
1700
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1717
1701
|
}, undefined>, undefined>, null>;
|
|
1718
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1719
1702
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1720
1703
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1721
1704
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -1847,12 +1830,23 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
1847
1830
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1848
1831
|
readonly name: v.StringSchema<undefined>;
|
|
1849
1832
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1850
|
-
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "
|
|
1833
|
+
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
|
|
1851
1834
|
}, undefined>, undefined>, {}>;
|
|
1852
1835
|
}, undefined>, undefined>, {}>;
|
|
1853
|
-
readonly
|
|
1854
|
-
readonly
|
|
1855
|
-
readonly
|
|
1836
|
+
readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1837
|
+
readonly name: v.StringSchema<undefined>;
|
|
1838
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1839
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1840
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1841
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1842
|
+
}, undefined>, v.ObjectSchema<{
|
|
1843
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1844
|
+
readonly url: v.StringSchema<undefined>;
|
|
1845
|
+
}, undefined>], undefined>, undefined>;
|
|
1846
|
+
}, undefined>, undefined>, undefined>;
|
|
1847
|
+
readonly grants: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1848
|
+
readonly action: v.StringSchema<undefined>;
|
|
1849
|
+
readonly resource: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>], undefined>;
|
|
1856
1850
|
}, undefined>, undefined>, undefined>;
|
|
1857
1851
|
}, undefined>;
|
|
1858
1852
|
readonly dataSources: v.ObjectSchema<{
|
|
@@ -1973,10 +1967,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
1973
1967
|
readonly name: v.StringSchema<undefined>;
|
|
1974
1968
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1975
1969
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1976
|
-
}, undefined>, v.ObjectSchema<{
|
|
1977
|
-
readonly name: v.StringSchema<undefined>;
|
|
1978
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1979
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1980
1970
|
}, undefined>, v.ObjectSchema<{
|
|
1981
1971
|
readonly name: v.StringSchema<undefined>;
|
|
1982
1972
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2206,10 +2196,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2206
2196
|
readonly name: v.StringSchema<undefined>;
|
|
2207
2197
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2208
2198
|
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
2209
|
-
}, undefined>, v.ObjectSchema<{
|
|
2210
|
-
readonly name: v.StringSchema<undefined>;
|
|
2211
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2212
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2213
2199
|
}, undefined>, v.ObjectSchema<{
|
|
2214
2200
|
readonly name: v.StringSchema<undefined>;
|
|
2215
2201
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -2531,10 +2517,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2531
2517
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2532
2518
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2533
2519
|
}, undefined>, undefined>;
|
|
2534
|
-
}, undefined>, v.ObjectSchema<{
|
|
2535
|
-
readonly id: v.StringSchema<undefined>;
|
|
2536
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2537
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2538
2520
|
}, undefined>, v.ObjectSchema<{
|
|
2539
2521
|
readonly id: v.StringSchema<undefined>;
|
|
2540
2522
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -2570,7 +2552,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2570
2552
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2571
2553
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2572
2554
|
}, undefined>, undefined>, null>;
|
|
2573
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2574
2555
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2575
2556
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2576
2557
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -2904,10 +2885,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2904
2885
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2905
2886
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2906
2887
|
}, undefined>, undefined>;
|
|
2907
|
-
}, undefined>, v.ObjectSchema<{
|
|
2908
|
-
readonly id: v.StringSchema<undefined>;
|
|
2909
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2910
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2911
2888
|
}, undefined>, v.ObjectSchema<{
|
|
2912
2889
|
readonly id: v.StringSchema<undefined>;
|
|
2913
2890
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -2943,7 +2920,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
2943
2920
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2944
2921
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2945
2922
|
}, undefined>, undefined>, null>;
|
|
2946
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2947
2923
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2948
2924
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2949
2925
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -3197,10 +3173,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3197
3173
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3198
3174
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3199
3175
|
}, undefined>, undefined>;
|
|
3200
|
-
}, undefined>, v.ObjectSchema<{
|
|
3201
|
-
readonly id: v.StringSchema<undefined>;
|
|
3202
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3203
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3204
3176
|
}, undefined>, v.ObjectSchema<{
|
|
3205
3177
|
readonly id: v.StringSchema<undefined>;
|
|
3206
3178
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -3493,10 +3465,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3493
3465
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3494
3466
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3495
3467
|
}, undefined>, undefined>;
|
|
3496
|
-
}, undefined>, v.ObjectSchema<{
|
|
3497
|
-
readonly id: v.StringSchema<undefined>;
|
|
3498
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3499
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3500
3468
|
}, undefined>, v.ObjectSchema<{
|
|
3501
3469
|
readonly id: v.StringSchema<undefined>;
|
|
3502
3470
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -3532,7 +3500,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3532
3500
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3533
3501
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3534
3502
|
}, undefined>, undefined>, null>;
|
|
3535
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3536
3503
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3537
3504
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3538
3505
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -3786,10 +3753,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
3786
3753
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3787
3754
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3788
3755
|
}, undefined>, undefined>;
|
|
3789
|
-
}, undefined>, v.ObjectSchema<{
|
|
3790
|
-
readonly id: v.StringSchema<undefined>;
|
|
3791
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3792
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3793
3756
|
}, undefined>, v.ObjectSchema<{
|
|
3794
3757
|
readonly id: v.StringSchema<undefined>;
|
|
3795
3758
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -4082,10 +4045,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
4082
4045
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
4083
4046
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4084
4047
|
}, undefined>, undefined>;
|
|
4085
|
-
}, undefined>, v.ObjectSchema<{
|
|
4086
|
-
readonly id: v.StringSchema<undefined>;
|
|
4087
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
4088
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4089
4048
|
}, undefined>, v.ObjectSchema<{
|
|
4090
4049
|
readonly id: v.StringSchema<undefined>;
|
|
4091
4050
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -4121,7 +4080,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
4121
4080
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
4122
4081
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4123
4082
|
}, undefined>, undefined>, null>;
|
|
4124
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
4125
4083
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
4126
4084
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
4127
4085
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -4375,10 +4333,6 @@ export declare const hostToSandboxMessageWithProtocol3To5CompatibilitySchema: v.
|
|
|
4375
4333
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
4376
4334
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
4377
4335
|
}, undefined>, undefined>;
|
|
4378
|
-
}, undefined>, v.ObjectSchema<{
|
|
4379
|
-
readonly id: v.StringSchema<undefined>;
|
|
4380
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
4381
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
4382
4336
|
}, undefined>, v.ObjectSchema<{
|
|
4383
4337
|
readonly id: v.StringSchema<undefined>;
|
|
4384
4338
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -31,12 +31,23 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
31
31
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
32
32
|
readonly name: v.StringSchema<undefined>;
|
|
33
33
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
34
|
-
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "
|
|
34
|
+
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
|
|
35
35
|
}, undefined>, undefined>, {}>;
|
|
36
36
|
}, undefined>, undefined>, {}>;
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
37
|
+
readonly pages: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
38
|
+
readonly name: v.StringSchema<undefined>;
|
|
39
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
40
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
41
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
42
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
43
|
+
}, undefined>, v.ObjectSchema<{
|
|
44
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
45
|
+
readonly url: v.StringSchema<undefined>;
|
|
46
|
+
}, undefined>], undefined>, undefined>;
|
|
47
|
+
}, undefined>, undefined>, undefined>;
|
|
48
|
+
readonly grants: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
49
|
+
readonly action: v.StringSchema<undefined>;
|
|
50
|
+
readonly resource: v.UnionSchema<[v.StringSchema<undefined>, v.SchemaWithPipe<readonly [v.ArraySchema<v.StringSchema<undefined>, undefined>, v.MinLengthAction<string[], 1, undefined>]>], undefined>;
|
|
40
51
|
}, undefined>, undefined>, undefined>;
|
|
41
52
|
}, undefined>, undefined>;
|
|
42
53
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -576,6 +587,7 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
576
587
|
readonly propertyId: v.StringSchema<undefined>;
|
|
577
588
|
readonly direction: v.PicklistSchema<["ascending", "descending"], undefined>;
|
|
578
589
|
}, undefined>, undefined>, undefined>;
|
|
590
|
+
readonly archive_status: v.OptionalSchema<v.PicklistSchema<["active", "archived", "all"], undefined>, undefined>;
|
|
579
591
|
}, undefined>, v.ObjectSchema<{
|
|
580
592
|
readonly type: v.LiteralSchema<"unsubscribeDataSourceQuery", undefined>;
|
|
581
593
|
readonly subscriptionId: v.StringSchema<undefined>;
|
|
@@ -768,10 +780,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
768
780
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
769
781
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
770
782
|
}, undefined>, undefined>;
|
|
771
|
-
}, undefined>, v.ObjectSchema<{
|
|
772
|
-
readonly id: v.StringSchema<undefined>;
|
|
773
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
774
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
775
783
|
}, undefined>, v.ObjectSchema<{
|
|
776
784
|
readonly id: v.StringSchema<undefined>;
|
|
777
785
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1041,10 +1049,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1041
1049
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1042
1050
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1043
1051
|
}, undefined>, undefined>;
|
|
1044
|
-
}, undefined>, v.ObjectSchema<{
|
|
1045
|
-
readonly id: v.StringSchema<undefined>;
|
|
1046
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1047
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1048
1052
|
}, undefined>, v.ObjectSchema<{
|
|
1049
1053
|
readonly id: v.StringSchema<undefined>;
|
|
1050
1054
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -1329,10 +1333,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1329
1333
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1330
1334
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1331
1335
|
}, undefined>, undefined>;
|
|
1332
|
-
}, undefined>, v.ObjectSchema<{
|
|
1333
|
-
readonly id: v.StringSchema<undefined>;
|
|
1334
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1335
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1336
1336
|
}, undefined>, v.ObjectSchema<{
|
|
1337
1337
|
readonly id: v.StringSchema<undefined>;
|
|
1338
1338
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -206,10 +206,6 @@ export declare const bridgePageSchema: v.ObjectSchema<{
|
|
|
206
206
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
207
207
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
208
208
|
}, undefined>, undefined>;
|
|
209
|
-
}, undefined>, v.ObjectSchema<{
|
|
210
|
-
readonly id: v.StringSchema<undefined>;
|
|
211
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
212
|
-
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
213
209
|
}, undefined>, v.ObjectSchema<{
|
|
214
210
|
readonly id: v.StringSchema<undefined>;
|
|
215
211
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
@@ -245,7 +241,6 @@ export declare const bridgePageSchema: v.ObjectSchema<{
|
|
|
245
241
|
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
246
242
|
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
247
243
|
}, undefined>, undefined>, null>;
|
|
248
|
-
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
249
244
|
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
250
245
|
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
251
246
|
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.LooseObjectSchema<{
|
|
@@ -11,7 +11,6 @@ export const bridgePageSchema = v.object({
|
|
|
11
11
|
properties: bridgePagePropertyReadMapSchema,
|
|
12
12
|
created_by: v.optional(metadataActorSchema, null),
|
|
13
13
|
last_edited_by: v.optional(metadataActorSchema, null),
|
|
14
|
-
last_visited_time: v.optional(v.nullable(v.string()), null),
|
|
15
14
|
created_time: v.optional(v.nullable(v.string()), null),
|
|
16
15
|
last_edited_time: v.optional(v.nullable(v.string()), null),
|
|
17
16
|
icon: v.optional(v.nullable(notionPageIconSchema), null),
|