@notionhq/custom-blocks-dev-shell 0.1.113 → 0.1.115
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 +27 -14
- package/bin/cli.js +3 -1
- package/dist/assets/index-DXzPwq_J.js +11 -0
- package/dist/index.html +1 -1
- package/dist-cli/cli/binding-cli-flags.js +33 -0
- package/dist-cli/cli/binding-errors.js +15 -0
- package/dist-cli/{build-block-registry.js → cli/build-block-registry.js} +2 -0
- package/dist-cli/{convert-values.js → cli/convert-values.js} +5 -5
- package/dist-cli/{convert.js → cli/convert.js} +3 -3
- package/dist-cli/cli/data-source-files.js +6 -0
- package/dist-cli/{data-sources.js → cli/data-sources.js} +12 -65
- package/dist-cli/{dev-shell-launcher.js → cli/dev-shell-launcher.js} +23 -10
- package/dist-cli/{errors.js → cli/errors.js} +5 -1
- package/dist-cli/cli/launcher-bindings.js +144 -0
- package/dist-cli/{published-cli.js → cli/published-cli.js} +2 -2
- package/dist-cli/{worker-manifest.js → cli/worker-manifest.js} +18 -1
- package/dist-cli/protocol/contrast.d.ts +4 -0
- package/dist-cli/protocol/contrast.js +3 -0
- package/dist-cli/protocol/dataSources/dataSource.d.ts +786 -0
- package/dist-cli/protocol/dataSources/dataSource.js +66 -0
- package/dist-cli/protocol/dataSources/dataSourcePage.d.ts +74 -0
- package/dist-cli/protocol/dataSources/dataSourcePage.js +15 -0
- package/dist-cli/protocol/dataSources/dataSourceValue.d.ts +66 -0
- package/dist-cli/protocol/dataSources/dataSourceValue.js +14 -0
- package/dist-cli/protocol/dataSources/dateValue.d.ts +157 -0
- package/dist-cli/protocol/dataSources/dateValue.js +61 -0
- package/dist-cli/protocol/dataSources/errors.d.ts +8 -0
- package/dist-cli/protocol/dataSources/errors.js +7 -0
- package/dist-cli/protocol/dataSources/propertySchema.d.ts +200 -0
- package/dist-cli/protocol/dataSources/propertySchema.js +174 -0
- package/dist-cli/protocol/dataSources/recordPointer.d.ts +9 -0
- package/dist-cli/protocol/dataSources/recordPointer.js +8 -0
- package/dist-cli/protocol/dataSources/sortDirection.d.ts +3 -0
- package/dist-cli/protocol/dataSources/sortDirection.js +2 -0
- package/dist-cli/protocol/errors.d.ts +12 -0
- package/dist-cli/protocol/errors.js +6 -0
- package/dist-cli/protocol/ids.d.ts +31 -0
- package/dist-cli/protocol/ids.js +26 -0
- package/dist-cli/protocol/index.d.ts +53 -0
- package/dist-cli/protocol/index.js +53 -0
- package/dist-cli/protocol/manifest.d.ts +67 -0
- package/dist-cli/protocol/manifest.js +36 -0
- package/dist-cli/protocol/messages/connect.d.ts +54 -0
- package/dist-cli/protocol/messages/connect.js +39 -0
- package/dist-cli/protocol/messages/contrastModeChanged.d.ts +7 -0
- package/dist-cli/protocol/messages/contrastModeChanged.js +7 -0
- package/dist-cli/protocol/messages/createPage.d.ts +290 -0
- package/dist-cli/protocol/messages/createPage.js +51 -0
- package/dist-cli/protocol/messages/createPageResult.d.ts +897 -0
- package/dist-cli/protocol/messages/createPageResult.js +43 -0
- package/dist-cli/protocol/messages/currentUserChanged.d.ts +18 -0
- package/dist-cli/protocol/messages/currentUserChanged.js +9 -0
- package/dist-cli/protocol/messages/dataSourcesChanged.d.ts +157 -0
- package/dist-cli/protocol/messages/dataSourcesChanged.js +13 -0
- package/dist-cli/protocol/messages/getPage.d.ts +902 -0
- package/dist-cli/protocol/messages/getPage.js +48 -0
- package/dist-cli/protocol/messages/getUser.d.ts +44 -0
- package/dist-cli/protocol/messages/getUser.js +32 -0
- package/dist-cli/protocol/messages/hostToSandbox.d.ts +4385 -0
- package/dist-cli/protocol/messages/hostToSandbox.js +48 -0
- package/dist-cli/protocol/messages/incomingType.d.ts +9 -0
- package/dist-cli/protocol/messages/incomingType.js +17 -0
- package/dist-cli/protocol/messages/init.d.ts +273 -0
- package/dist-cli/protocol/messages/init.js +57 -0
- package/dist-cli/protocol/messages/initResult.d.ts +37 -0
- package/dist-cli/protocol/messages/initResult.js +29 -0
- package/dist-cli/protocol/messages/invalidHostMessage.d.ts +14 -0
- package/dist-cli/protocol/messages/invalidHostMessage.js +13 -0
- package/dist-cli/protocol/messages/invalidSandboxMessage.d.ts +14 -0
- package/dist-cli/protocol/messages/invalidSandboxMessage.js +13 -0
- package/dist-cli/protocol/messages/isInitHandshakeMessage.d.ts +4 -0
- package/dist-cli/protocol/messages/isInitHandshakeMessage.js +11 -0
- package/dist-cli/protocol/messages/listUsers.d.ts +52 -0
- package/dist-cli/protocol/messages/listUsers.js +33 -0
- package/dist-cli/protocol/messages/messagePayload.d.ts +19 -0
- package/dist-cli/protocol/messages/messagePayload.js +1 -0
- package/dist-cli/protocol/messages/openExternalUrl.d.ts +32 -0
- package/dist-cli/protocol/messages/openExternalUrl.js +26 -0
- package/dist-cli/protocol/messages/openPage.d.ts +38 -0
- package/dist-cli/protocol/messages/openPage.js +34 -0
- package/dist-cli/protocol/messages/pageChanged.d.ts +32 -0
- package/dist-cli/protocol/messages/pageChanged.js +9 -0
- package/dist-cli/protocol/messages/parentChanged.d.ts +26 -0
- package/dist-cli/protocol/messages/parentChanged.js +9 -0
- package/dist-cli/protocol/messages/queryDataSource.d.ts +1446 -0
- package/dist-cli/protocol/messages/queryDataSource.js +252 -0
- package/dist-cli/protocol/messages/queryDataSourceResult.d.ts +686 -0
- package/dist-cli/protocol/messages/queryDataSourceResult.js +44 -0
- package/dist-cli/protocol/messages/resize.d.ts +11 -0
- package/dist-cli/protocol/messages/resize.js +10 -0
- package/dist-cli/protocol/messages/sandboxToHost.d.ts +1091 -0
- package/dist-cli/protocol/messages/sandboxToHost.js +33 -0
- package/dist-cli/protocol/messages/themeChanged.d.ts +10 -0
- package/dist-cli/protocol/messages/themeChanged.js +10 -0
- package/dist-cli/protocol/messages/unsubscribeDataSourceQuery.d.ts +10 -0
- package/dist-cli/protocol/messages/unsubscribeDataSourceQuery.js +9 -0
- package/dist-cli/protocol/messages/updatePage.d.ts +271 -0
- package/dist-cli/protocol/messages/updatePage.js +23 -0
- package/dist-cli/protocol/messages/updatePageResult.d.ts +895 -0
- package/dist-cli/protocol/messages/updatePageResult.js +41 -0
- package/dist-cli/protocol/pages/page.d.ts +1422 -0
- package/dist-cli/protocol/pages/page.js +318 -0
- package/dist-cli/protocol/parent.d.ts +32 -0
- package/dist-cli/protocol/parent.js +13 -0
- package/dist-cli/protocol/protocolVersion.d.ts +8 -0
- package/dist-cli/protocol/protocolVersion.js +11 -0
- package/dist-cli/protocol/theme.d.ts +3 -0
- package/dist-cli/protocol/theme.js +2 -0
- package/dist-cli/protocol/users/user.d.ts +32 -0
- package/dist-cli/protocol/users/user.js +20 -0
- package/dist-cli/shared/block-registry.js +28 -0
- package/dist-cli/shared/data-source.js +22 -0
- package/dist-cli/shared/runtime-config.js +10 -0
- package/dist-cli/shared/sample-data-source.js +12 -0
- package/docs/bindings.md +79 -27
- package/package.json +5 -26
- package/dist/assets/index-DgQZ0zg6.js +0 -11
- package/dist-cli/date-value.js +0 -46
- package/dist-cli/resolve-bindings.js +0 -39
- package/dist-cli/source-bindings.js +0 -17
- /package/dist-cli/{block-csp.js → cli/block-csp.js} +0 -0
- /package/dist-cli/{dev-shell-run.js → cli/dev-shell-run.js} +0 -0
- /package/dist-cli/{materialize.js → cli/materialize.js} +0 -0
- /package/dist-cli/{ports.js → cli/ports.js} +0 -0
- /package/dist-cli/{prebuilt.js → cli/prebuilt.js} +0 -0
- /package/dist-cli/{runtime-error-client.js → cli/runtime-error-client.js} +0 -0
- /package/dist-cli/{serve-ui.js → cli/serve-ui.js} +0 -0
- /package/dist-cli/{shared-server.js → cli/shared-server.js} +0 -0
- /package/dist-cli/{utils.js → cli/utils.js} +0 -0
- /package/dist-cli/{vite-block-server.js → cli/vite-block-server.js} +0 -0
- /package/dist-cli/{vite-middleware.js → cli/vite-middleware.js} +0 -0
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
import type { CustomBlockErrorCode, CustomBlockErrorInfo } from "../errors.js";
|
|
3
|
+
export declare const customBlockQueryDataSourceErrorCodeSchema: v.StringSchema<undefined>;
|
|
4
|
+
export type CustomBlockQueryDataSourceErrorCode = CustomBlockErrorCode<"query_data_source_failed" | "invalid_data_source_query" | "invalid_data_source_query_filter" | "invalid_data_source_query_sort" | "unknown_data_source_key" | "unmapped_data_source" | "data_source_schema_unavailable">;
|
|
5
|
+
export type CustomBlockQueryDataSourceErrorInfo = CustomBlockErrorInfo<CustomBlockQueryDataSourceErrorCode>;
|
|
6
|
+
export declare const customBlockQueryDataSourceErrorInfoSchema: v.ObjectSchema<{
|
|
7
|
+
readonly code: v.StringSchema<undefined>;
|
|
8
|
+
readonly message: v.StringSchema<undefined>;
|
|
9
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
10
|
+
}, undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* Message sent by the host to update a `queryDataSource` subscription.
|
|
13
|
+
*/
|
|
14
|
+
export declare const queryDataSourceResultMessageSchema: v.VariantSchema<"status", [v.ObjectSchema<{
|
|
15
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
16
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
17
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
18
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
19
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
20
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
21
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
22
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
23
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
24
|
+
}, undefined>, v.ObjectSchema<{
|
|
25
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
26
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
27
|
+
}, undefined>, v.ObjectSchema<{
|
|
28
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
29
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
30
|
+
}, undefined>, v.ObjectSchema<{
|
|
31
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
32
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
33
|
+
}, undefined>, v.ObjectSchema<{
|
|
34
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
35
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
36
|
+
}, undefined>, v.ObjectSchema<{
|
|
37
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
38
|
+
}, undefined>], undefined>;
|
|
39
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
40
|
+
readonly id: v.StringSchema<undefined>;
|
|
41
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
42
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
43
|
+
}, undefined>, v.ObjectSchema<{
|
|
44
|
+
readonly id: v.StringSchema<undefined>;
|
|
45
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
46
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
47
|
+
}, undefined>, v.ObjectSchema<{
|
|
48
|
+
readonly id: v.StringSchema<undefined>;
|
|
49
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
50
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
51
|
+
}, undefined>, v.ObjectSchema<{
|
|
52
|
+
readonly id: v.StringSchema<undefined>;
|
|
53
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
54
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
55
|
+
}, undefined>, v.ObjectSchema<{
|
|
56
|
+
readonly id: v.StringSchema<undefined>;
|
|
57
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
58
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
59
|
+
}, undefined>, v.ObjectSchema<{
|
|
60
|
+
readonly id: v.StringSchema<undefined>;
|
|
61
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
62
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
63
|
+
}, undefined>, v.ObjectSchema<{
|
|
64
|
+
readonly id: v.StringSchema<undefined>;
|
|
65
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
66
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
67
|
+
}, undefined>, v.ObjectSchema<{
|
|
68
|
+
readonly id: v.StringSchema<undefined>;
|
|
69
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
70
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
71
|
+
readonly id: v.StringSchema<undefined>;
|
|
72
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
73
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
74
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
75
|
+
}, undefined>, v.ObjectSchema<{
|
|
76
|
+
readonly name: v.StringSchema<undefined>;
|
|
77
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
78
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
79
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
80
|
+
}, undefined>], undefined>, undefined>;
|
|
81
|
+
}, undefined>, v.ObjectSchema<{
|
|
82
|
+
readonly id: v.StringSchema<undefined>;
|
|
83
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
84
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
85
|
+
readonly id: v.StringSchema<undefined>;
|
|
86
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
87
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
88
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
89
|
+
}, undefined>, v.ObjectSchema<{
|
|
90
|
+
readonly name: v.StringSchema<undefined>;
|
|
91
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
92
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
93
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
94
|
+
}, undefined>], undefined>, undefined>;
|
|
95
|
+
}, undefined>, v.ObjectSchema<{
|
|
96
|
+
readonly id: v.StringSchema<undefined>;
|
|
97
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
98
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
99
|
+
readonly id: v.StringSchema<undefined>;
|
|
100
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
101
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
102
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
103
|
+
}, undefined>, v.ObjectSchema<{
|
|
104
|
+
readonly name: v.StringSchema<undefined>;
|
|
105
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
106
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
107
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
108
|
+
}, undefined>], undefined>, undefined>;
|
|
109
|
+
}, undefined>, v.ObjectSchema<{
|
|
110
|
+
readonly id: v.StringSchema<undefined>;
|
|
111
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
112
|
+
readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
113
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
114
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
115
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
116
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
117
|
+
readonly value: v.NumberSchema<undefined>;
|
|
118
|
+
readonly time: v.StringSchema<undefined>;
|
|
119
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
}, undefined>, v.ObjectSchema<{
|
|
121
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
122
|
+
readonly value: v.NumberSchema<undefined>;
|
|
123
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
124
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
125
|
+
}, undefined>], undefined>, undefined>;
|
|
126
|
+
readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
|
|
127
|
+
}, undefined>, v.ObjectSchema<{
|
|
128
|
+
readonly start: v.StringSchema<undefined>;
|
|
129
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
130
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
131
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
132
|
+
readonly value: v.NumberSchema<undefined>;
|
|
133
|
+
readonly time: v.StringSchema<undefined>;
|
|
134
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
135
|
+
}, undefined>, v.ObjectSchema<{
|
|
136
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
137
|
+
readonly value: v.NumberSchema<undefined>;
|
|
138
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
139
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
140
|
+
}, undefined>], undefined>, undefined>;
|
|
141
|
+
readonly time_zone: v.StringSchema<undefined>;
|
|
142
|
+
}, undefined>, v.ObjectSchema<{
|
|
143
|
+
readonly start: v.StringSchema<undefined>;
|
|
144
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
145
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
146
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
147
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
148
|
+
readonly value: v.NumberSchema<undefined>;
|
|
149
|
+
readonly time: v.StringSchema<undefined>;
|
|
150
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
151
|
+
}, undefined>, v.ObjectSchema<{
|
|
152
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
153
|
+
}, undefined>], undefined>, undefined>;
|
|
154
|
+
}, undefined>], undefined>, undefined>;
|
|
155
|
+
}, undefined>, v.ObjectSchema<{
|
|
156
|
+
readonly id: v.StringSchema<undefined>;
|
|
157
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
158
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
159
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
160
|
+
readonly id: v.StringSchema<undefined>;
|
|
161
|
+
}, undefined>, v.ObjectSchema<{
|
|
162
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
163
|
+
readonly id: v.StringSchema<undefined>;
|
|
164
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
165
|
+
}, undefined>], undefined>, undefined>;
|
|
166
|
+
}, undefined>, v.ObjectSchema<{
|
|
167
|
+
readonly id: v.StringSchema<undefined>;
|
|
168
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
169
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
170
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
171
|
+
readonly id: v.StringSchema<undefined>;
|
|
172
|
+
}, undefined>, undefined>;
|
|
173
|
+
}, undefined>, v.ObjectSchema<{
|
|
174
|
+
readonly id: v.StringSchema<undefined>;
|
|
175
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
176
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
177
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
178
|
+
readonly name: v.StringSchema<undefined>;
|
|
179
|
+
readonly external: v.ObjectSchema<{
|
|
180
|
+
readonly url: v.StringSchema<undefined>;
|
|
181
|
+
}, undefined>;
|
|
182
|
+
}, undefined>, v.ObjectSchema<{
|
|
183
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
184
|
+
readonly name: v.StringSchema<undefined>;
|
|
185
|
+
readonly file: v.ObjectSchema<{
|
|
186
|
+
readonly url: v.StringSchema<undefined>;
|
|
187
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
188
|
+
}, undefined>;
|
|
189
|
+
}, undefined>], undefined>, undefined>;
|
|
190
|
+
}, undefined>, v.ObjectSchema<{
|
|
191
|
+
readonly id: v.StringSchema<undefined>;
|
|
192
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
193
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
194
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
195
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
196
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
197
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
198
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
199
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
200
|
+
}, undefined>, undefined>;
|
|
201
|
+
}, undefined>, v.ObjectSchema<{
|
|
202
|
+
readonly id: v.StringSchema<undefined>;
|
|
203
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
204
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
205
|
+
}, undefined>, v.ObjectSchema<{
|
|
206
|
+
readonly id: v.StringSchema<undefined>;
|
|
207
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
208
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
209
|
+
}, undefined>, v.ObjectSchema<{
|
|
210
|
+
readonly id: v.StringSchema<undefined>;
|
|
211
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
212
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
213
|
+
readonly id: v.StringSchema<undefined>;
|
|
214
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
215
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
216
|
+
}, undefined>, undefined>;
|
|
217
|
+
}, undefined>, v.ObjectSchema<{
|
|
218
|
+
readonly id: v.StringSchema<undefined>;
|
|
219
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
220
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
221
|
+
readonly id: v.StringSchema<undefined>;
|
|
222
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
223
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
224
|
+
}, undefined>, undefined>;
|
|
225
|
+
}, undefined>, v.ObjectSchema<{
|
|
226
|
+
readonly id: v.StringSchema<undefined>;
|
|
227
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
228
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
}, undefined>, v.ObjectSchema<{
|
|
230
|
+
readonly id: v.StringSchema<undefined>;
|
|
231
|
+
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
232
|
+
readonly unique_id: v.StringSchema<undefined>;
|
|
233
|
+
}, undefined>, v.ObjectSchema<{
|
|
234
|
+
readonly id: v.StringSchema<undefined>;
|
|
235
|
+
readonly type: v.LiteralSchema<"button", undefined>;
|
|
236
|
+
readonly button: v.StringSchema<undefined>;
|
|
237
|
+
}, undefined>, v.ObjectSchema<{
|
|
238
|
+
readonly id: v.StringSchema<undefined>;
|
|
239
|
+
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
240
|
+
readonly formula: v.StringSchema<undefined>;
|
|
241
|
+
}, undefined>, v.ObjectSchema<{
|
|
242
|
+
readonly id: v.StringSchema<undefined>;
|
|
243
|
+
readonly type: v.LiteralSchema<"location", undefined>;
|
|
244
|
+
readonly location: v.StringSchema<undefined>;
|
|
245
|
+
}, undefined>, v.ObjectSchema<{
|
|
246
|
+
readonly id: v.StringSchema<undefined>;
|
|
247
|
+
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
248
|
+
readonly rollup: v.StringSchema<undefined>;
|
|
249
|
+
}, undefined>, v.ObjectSchema<{
|
|
250
|
+
readonly id: v.StringSchema<undefined>;
|
|
251
|
+
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
252
|
+
readonly verification: v.StringSchema<undefined>;
|
|
253
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
254
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
255
|
+
readonly id: v.StringSchema<undefined>;
|
|
256
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
257
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
258
|
+
}, undefined>, undefined>, null>;
|
|
259
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
260
|
+
readonly id: v.StringSchema<undefined>;
|
|
261
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
262
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
263
|
+
}, undefined>, undefined>, null>;
|
|
264
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
265
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
266
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
267
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
268
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
269
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
270
|
+
}, undefined>, v.ObjectSchema<{
|
|
271
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
272
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
273
|
+
readonly id: v.StringSchema<undefined>;
|
|
274
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
275
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
276
|
+
}, undefined>;
|
|
277
|
+
}, undefined>, v.ObjectSchema<{
|
|
278
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
279
|
+
readonly external: v.ObjectSchema<{
|
|
280
|
+
readonly url: v.StringSchema<undefined>;
|
|
281
|
+
}, undefined>;
|
|
282
|
+
}, undefined>, v.ObjectSchema<{
|
|
283
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
284
|
+
readonly file: v.ObjectSchema<{
|
|
285
|
+
readonly url: v.StringSchema<undefined>;
|
|
286
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
287
|
+
}, undefined>;
|
|
288
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
289
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
290
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
291
|
+
readonly external: v.ObjectSchema<{
|
|
292
|
+
readonly url: v.StringSchema<undefined>;
|
|
293
|
+
}, undefined>;
|
|
294
|
+
}, undefined>, v.ObjectSchema<{
|
|
295
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
296
|
+
readonly file: v.ObjectSchema<{
|
|
297
|
+
readonly url: v.StringSchema<undefined>;
|
|
298
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
299
|
+
}, undefined>;
|
|
300
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
301
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
302
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
303
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
304
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
305
|
+
}, undefined>, undefined>;
|
|
306
|
+
readonly hasMore: v.BooleanSchema<undefined>;
|
|
307
|
+
}, undefined>, v.ObjectSchema<{
|
|
308
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
309
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
310
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
311
|
+
readonly error: v.ObjectSchema<{
|
|
312
|
+
readonly code: v.StringSchema<undefined>;
|
|
313
|
+
readonly message: v.StringSchema<undefined>;
|
|
314
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
315
|
+
}, undefined>;
|
|
316
|
+
}, undefined>], undefined>;
|
|
317
|
+
export declare const queryDataSourceResultMessageLegacySchema: v.VariantSchema<"status", [v.ObjectSchema<{
|
|
318
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
319
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
320
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
321
|
+
readonly items: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
322
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
323
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
324
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
325
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
326
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
327
|
+
}, undefined>, v.ObjectSchema<{
|
|
328
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
329
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
330
|
+
}, undefined>, v.ObjectSchema<{
|
|
331
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
332
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
333
|
+
}, undefined>, v.ObjectSchema<{
|
|
334
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
335
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
336
|
+
}, undefined>, v.ObjectSchema<{
|
|
337
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
338
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
339
|
+
}, undefined>, v.ObjectSchema<{
|
|
340
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
341
|
+
}, undefined>], undefined>;
|
|
342
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
343
|
+
readonly id: v.StringSchema<undefined>;
|
|
344
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
345
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
346
|
+
}, undefined>, v.ObjectSchema<{
|
|
347
|
+
readonly id: v.StringSchema<undefined>;
|
|
348
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
349
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
350
|
+
}, undefined>, v.ObjectSchema<{
|
|
351
|
+
readonly id: v.StringSchema<undefined>;
|
|
352
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
353
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
354
|
+
}, undefined>, v.ObjectSchema<{
|
|
355
|
+
readonly id: v.StringSchema<undefined>;
|
|
356
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
357
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
358
|
+
}, undefined>, v.ObjectSchema<{
|
|
359
|
+
readonly id: v.StringSchema<undefined>;
|
|
360
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
361
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
362
|
+
}, undefined>, v.ObjectSchema<{
|
|
363
|
+
readonly id: v.StringSchema<undefined>;
|
|
364
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
365
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
366
|
+
}, undefined>, v.ObjectSchema<{
|
|
367
|
+
readonly id: v.StringSchema<undefined>;
|
|
368
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
369
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
370
|
+
}, undefined>, v.ObjectSchema<{
|
|
371
|
+
readonly id: v.StringSchema<undefined>;
|
|
372
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
373
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
374
|
+
readonly id: v.StringSchema<undefined>;
|
|
375
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
376
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
377
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
378
|
+
}, undefined>, v.ObjectSchema<{
|
|
379
|
+
readonly name: v.StringSchema<undefined>;
|
|
380
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
381
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
382
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
383
|
+
}, undefined>], undefined>, undefined>;
|
|
384
|
+
}, undefined>, v.ObjectSchema<{
|
|
385
|
+
readonly id: v.StringSchema<undefined>;
|
|
386
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
387
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
388
|
+
readonly id: v.StringSchema<undefined>;
|
|
389
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
390
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
391
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
392
|
+
}, undefined>, v.ObjectSchema<{
|
|
393
|
+
readonly name: v.StringSchema<undefined>;
|
|
394
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
395
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
396
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
397
|
+
}, undefined>], undefined>, undefined>;
|
|
398
|
+
}, undefined>, v.ObjectSchema<{
|
|
399
|
+
readonly id: v.StringSchema<undefined>;
|
|
400
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
401
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
402
|
+
readonly id: v.StringSchema<undefined>;
|
|
403
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
404
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
405
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
406
|
+
}, undefined>, v.ObjectSchema<{
|
|
407
|
+
readonly name: v.StringSchema<undefined>;
|
|
408
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
409
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
410
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
411
|
+
}, undefined>], undefined>, undefined>;
|
|
412
|
+
}, undefined>, v.ObjectSchema<{
|
|
413
|
+
readonly id: v.StringSchema<undefined>;
|
|
414
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
415
|
+
readonly date: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
416
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
417
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
418
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
419
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
420
|
+
readonly value: v.NumberSchema<undefined>;
|
|
421
|
+
readonly time: v.StringSchema<undefined>;
|
|
422
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
423
|
+
}, undefined>, v.ObjectSchema<{
|
|
424
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
425
|
+
readonly value: v.NumberSchema<undefined>;
|
|
426
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
427
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
428
|
+
}, undefined>], undefined>, undefined>;
|
|
429
|
+
readonly start: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IncludesAction<string, "T", undefined>]>;
|
|
430
|
+
}, undefined>, v.ObjectSchema<{
|
|
431
|
+
readonly start: v.StringSchema<undefined>;
|
|
432
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
433
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
434
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
435
|
+
readonly value: v.NumberSchema<undefined>;
|
|
436
|
+
readonly time: v.StringSchema<undefined>;
|
|
437
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
438
|
+
}, undefined>, v.ObjectSchema<{
|
|
439
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
440
|
+
readonly value: v.NumberSchema<undefined>;
|
|
441
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
442
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
443
|
+
}, undefined>], undefined>, undefined>;
|
|
444
|
+
readonly time_zone: v.StringSchema<undefined>;
|
|
445
|
+
}, undefined>, v.ObjectSchema<{
|
|
446
|
+
readonly start: v.StringSchema<undefined>;
|
|
447
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
448
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
449
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
450
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
451
|
+
readonly value: v.NumberSchema<undefined>;
|
|
452
|
+
readonly time: v.StringSchema<undefined>;
|
|
453
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
454
|
+
}, undefined>, v.ObjectSchema<{
|
|
455
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
456
|
+
}, undefined>], undefined>, undefined>;
|
|
457
|
+
}, undefined>], undefined>, undefined>;
|
|
458
|
+
}, undefined>, v.ObjectSchema<{
|
|
459
|
+
readonly id: v.StringSchema<undefined>;
|
|
460
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
461
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
462
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
463
|
+
readonly id: v.StringSchema<undefined>;
|
|
464
|
+
}, undefined>, v.ObjectSchema<{
|
|
465
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
466
|
+
readonly id: v.StringSchema<undefined>;
|
|
467
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
468
|
+
}, undefined>], undefined>, undefined>;
|
|
469
|
+
}, undefined>, v.ObjectSchema<{
|
|
470
|
+
readonly id: v.StringSchema<undefined>;
|
|
471
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
472
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
473
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
474
|
+
readonly id: v.StringSchema<undefined>;
|
|
475
|
+
}, undefined>, undefined>;
|
|
476
|
+
}, undefined>, v.ObjectSchema<{
|
|
477
|
+
readonly id: v.StringSchema<undefined>;
|
|
478
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
479
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
480
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
481
|
+
readonly name: v.StringSchema<undefined>;
|
|
482
|
+
readonly external: v.ObjectSchema<{
|
|
483
|
+
readonly url: v.StringSchema<undefined>;
|
|
484
|
+
}, undefined>;
|
|
485
|
+
}, undefined>, v.ObjectSchema<{
|
|
486
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
487
|
+
readonly name: v.StringSchema<undefined>;
|
|
488
|
+
readonly file: v.ObjectSchema<{
|
|
489
|
+
readonly url: v.StringSchema<undefined>;
|
|
490
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
491
|
+
}, undefined>;
|
|
492
|
+
}, undefined>], undefined>, undefined>;
|
|
493
|
+
}, undefined>, v.ObjectSchema<{
|
|
494
|
+
readonly id: v.StringSchema<undefined>;
|
|
495
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
496
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
497
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
498
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
499
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
500
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
501
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
502
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
503
|
+
}, undefined>, undefined>;
|
|
504
|
+
}, undefined>, v.ObjectSchema<{
|
|
505
|
+
readonly id: v.StringSchema<undefined>;
|
|
506
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
507
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
508
|
+
}, undefined>, v.ObjectSchema<{
|
|
509
|
+
readonly id: v.StringSchema<undefined>;
|
|
510
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
511
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
512
|
+
}, undefined>, v.ObjectSchema<{
|
|
513
|
+
readonly id: v.StringSchema<undefined>;
|
|
514
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
515
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
516
|
+
readonly id: v.StringSchema<undefined>;
|
|
517
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
518
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
519
|
+
}, undefined>, undefined>;
|
|
520
|
+
}, undefined>, v.ObjectSchema<{
|
|
521
|
+
readonly id: v.StringSchema<undefined>;
|
|
522
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
523
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
524
|
+
readonly id: v.StringSchema<undefined>;
|
|
525
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
526
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
527
|
+
}, undefined>, undefined>;
|
|
528
|
+
}, undefined>, v.ObjectSchema<{
|
|
529
|
+
readonly id: v.StringSchema<undefined>;
|
|
530
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
531
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
532
|
+
}, undefined>, v.ObjectSchema<{
|
|
533
|
+
readonly id: v.StringSchema<undefined>;
|
|
534
|
+
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
535
|
+
readonly unique_id: v.StringSchema<undefined>;
|
|
536
|
+
}, undefined>, v.ObjectSchema<{
|
|
537
|
+
readonly id: v.StringSchema<undefined>;
|
|
538
|
+
readonly type: v.LiteralSchema<"button", undefined>;
|
|
539
|
+
readonly button: v.StringSchema<undefined>;
|
|
540
|
+
}, undefined>, v.ObjectSchema<{
|
|
541
|
+
readonly id: v.StringSchema<undefined>;
|
|
542
|
+
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
543
|
+
readonly formula: v.StringSchema<undefined>;
|
|
544
|
+
}, undefined>, v.ObjectSchema<{
|
|
545
|
+
readonly id: v.StringSchema<undefined>;
|
|
546
|
+
readonly type: v.LiteralSchema<"location", undefined>;
|
|
547
|
+
readonly location: v.StringSchema<undefined>;
|
|
548
|
+
}, undefined>, v.ObjectSchema<{
|
|
549
|
+
readonly id: v.StringSchema<undefined>;
|
|
550
|
+
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
551
|
+
readonly rollup: v.StringSchema<undefined>;
|
|
552
|
+
}, undefined>, v.ObjectSchema<{
|
|
553
|
+
readonly id: v.StringSchema<undefined>;
|
|
554
|
+
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
555
|
+
readonly verification: v.StringSchema<undefined>;
|
|
556
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
557
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
558
|
+
readonly id: v.StringSchema<undefined>;
|
|
559
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
560
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
561
|
+
}, undefined>, undefined>, null>;
|
|
562
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
563
|
+
readonly id: v.StringSchema<undefined>;
|
|
564
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
565
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
566
|
+
}, undefined>, undefined>, null>;
|
|
567
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
568
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
569
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
570
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
571
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
572
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
573
|
+
}, undefined>, v.ObjectSchema<{
|
|
574
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
575
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
576
|
+
readonly id: v.StringSchema<undefined>;
|
|
577
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
578
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
579
|
+
}, undefined>;
|
|
580
|
+
}, undefined>, v.ObjectSchema<{
|
|
581
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
582
|
+
readonly external: v.ObjectSchema<{
|
|
583
|
+
readonly url: v.StringSchema<undefined>;
|
|
584
|
+
}, undefined>;
|
|
585
|
+
}, undefined>, v.ObjectSchema<{
|
|
586
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
587
|
+
readonly file: v.ObjectSchema<{
|
|
588
|
+
readonly url: v.StringSchema<undefined>;
|
|
589
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
590
|
+
}, undefined>;
|
|
591
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
592
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
593
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
594
|
+
readonly external: v.ObjectSchema<{
|
|
595
|
+
readonly url: v.StringSchema<undefined>;
|
|
596
|
+
}, undefined>;
|
|
597
|
+
}, undefined>, v.ObjectSchema<{
|
|
598
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
599
|
+
readonly file: v.ObjectSchema<{
|
|
600
|
+
readonly url: v.StringSchema<undefined>;
|
|
601
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
602
|
+
}, undefined>;
|
|
603
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
604
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
605
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
606
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
607
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
608
|
+
}, undefined>, v.ObjectSchema<{
|
|
609
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
610
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
611
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
612
|
+
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
613
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
614
|
+
readonly start_date: v.StringSchema<undefined>;
|
|
615
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
616
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
617
|
+
readonly value: v.NumberSchema<undefined>;
|
|
618
|
+
readonly time: v.StringSchema<undefined>;
|
|
619
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
620
|
+
}, undefined>, v.ObjectSchema<{
|
|
621
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
622
|
+
}, undefined>], undefined>, undefined>;
|
|
623
|
+
}, undefined>, v.ObjectSchema<{
|
|
624
|
+
readonly type: v.LiteralSchema<"daterange", undefined>;
|
|
625
|
+
readonly start_date: v.StringSchema<undefined>;
|
|
626
|
+
readonly end_date: v.StringSchema<undefined>;
|
|
627
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
628
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
629
|
+
readonly value: v.NumberSchema<undefined>;
|
|
630
|
+
readonly time: v.StringSchema<undefined>;
|
|
631
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
632
|
+
}, undefined>, v.ObjectSchema<{
|
|
633
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
634
|
+
}, undefined>], undefined>, undefined>;
|
|
635
|
+
}, undefined>, v.ObjectSchema<{
|
|
636
|
+
readonly type: v.LiteralSchema<"datetime", undefined>;
|
|
637
|
+
readonly start_date: v.StringSchema<undefined>;
|
|
638
|
+
readonly start_time: v.StringSchema<undefined>;
|
|
639
|
+
readonly time_zone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
640
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
641
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
642
|
+
readonly value: v.NumberSchema<undefined>;
|
|
643
|
+
readonly time: v.StringSchema<undefined>;
|
|
644
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
645
|
+
}, undefined>, v.ObjectSchema<{
|
|
646
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
647
|
+
readonly value: v.NumberSchema<undefined>;
|
|
648
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
649
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
650
|
+
}, undefined>], undefined>, undefined>;
|
|
651
|
+
}, undefined>, v.ObjectSchema<{
|
|
652
|
+
readonly type: v.LiteralSchema<"datetimerange", undefined>;
|
|
653
|
+
readonly start_date: v.StringSchema<undefined>;
|
|
654
|
+
readonly start_time: v.StringSchema<undefined>;
|
|
655
|
+
readonly end_date: v.StringSchema<undefined>;
|
|
656
|
+
readonly end_time: v.StringSchema<undefined>;
|
|
657
|
+
readonly time_zone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
658
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
659
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
660
|
+
readonly value: v.NumberSchema<undefined>;
|
|
661
|
+
readonly time: v.StringSchema<undefined>;
|
|
662
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
663
|
+
}, undefined>, v.ObjectSchema<{
|
|
664
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
665
|
+
readonly value: v.NumberSchema<undefined>;
|
|
666
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
667
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
668
|
+
}, undefined>], undefined>, undefined>;
|
|
669
|
+
}, undefined>], undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ArraySchema<v.ObjectSchema<{
|
|
670
|
+
readonly id: v.StringSchema<undefined>;
|
|
671
|
+
readonly table: v.StringSchema<undefined>;
|
|
672
|
+
}, undefined>, undefined>], undefined>, undefined>, undefined>;
|
|
673
|
+
}, undefined>], undefined>, undefined>;
|
|
674
|
+
readonly hasMore: v.BooleanSchema<undefined>;
|
|
675
|
+
}, undefined>, v.ObjectSchema<{
|
|
676
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
677
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
678
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
679
|
+
readonly error: v.ObjectSchema<{
|
|
680
|
+
readonly code: v.StringSchema<undefined>;
|
|
681
|
+
readonly message: v.StringSchema<undefined>;
|
|
682
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
683
|
+
}, undefined>;
|
|
684
|
+
}, undefined>], undefined>;
|
|
685
|
+
export type QueryDataSourceResultMessage = v.InferOutput<typeof queryDataSourceResultMessageSchema>;
|
|
686
|
+
export type QueryDataSourceResultMessageLegacy = v.InferOutput<typeof queryDataSourceResultMessageLegacySchema>;
|