@notionhq/custom-blocks 0.1.38 → 0.1.40
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/bin/notion-custom-blocks/upload.test.js +4 -7
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/SandboxBridge.js +40 -39
- package/dist/bridge/dataSources/query.js +9 -9
- package/dist/bridge/pendingRequests.d.ts.map +1 -1
- package/dist/bridge/pendingRequests.js +3 -2
- package/dist/bridge/sandboxClient.d.ts.map +1 -1
- package/dist/init.d.ts.map +1 -1
- package/dist/init.js +1 -1
- package/dist/protocol/dataSources/dataSource.d.ts +135 -135
- package/dist/protocol/dataSources/propertySchema.d.ts +27 -27
- package/dist/protocol/messages/createPage.d.ts +15 -15
- package/dist/protocol/messages/createPageResult.d.ts +17 -15
- package/dist/protocol/messages/dataSourcesChanged.d.ts +27 -27
- package/dist/protocol/messages/getPage.d.ts +17 -15
- package/dist/protocol/messages/hostToSandbox.d.ts +114 -100
- package/dist/protocol/messages/init.d.ts +32 -28
- package/dist/protocol/messages/init.js +2 -0
- package/dist/protocol/messages/pageChanged.d.ts +2 -0
- package/dist/protocol/messages/parentChanged.d.ts +2 -0
- package/dist/protocol/messages/sandboxToHost.d.ts +30 -30
- package/dist/protocol/messages/updatePage.d.ts +15 -15
- package/dist/protocol/messages/updatePageResult.d.ts +17 -15
- package/dist/protocol/pages/page.d.ts +49 -45
- package/dist/protocol/parent.d.ts +5 -1
- package/dist/protocol/parent.js +1 -0
- package/dist/react/DebugMessageLog.d.ts +1 -1
- package/dist/react/DebugMessageLog.d.ts.map +1 -1
- package/dist/react/NotionCustomBlock.d.ts +1 -1
- package/dist/react/NotionCustomBlock.d.ts.map +1 -1
- package/dist/react/NotionCustomBlock.js +1 -1
- package/dist/react/NotionTokenScope.d.ts +1 -1
- package/dist/react/NotionTokenScope.d.ts.map +1 -1
- package/dist/react/useCustomBlockInit.d.ts.map +1 -1
- package/dist/react/useCustomBlockInit.js +1 -3
- package/dist/react/useDataSource.d.ts.map +1 -1
- package/dist/react/useDataSource.js +3 -0
- package/dist/version.js +1 -1
- package/docs/block-location.md +13 -1
- package/docs/pages.md +1 -1
- package/package.json +12 -12
- package/src/bridge/SandboxBridge.ts +1 -1
- package/src/bridge/dataSources/query.ts +9 -22
- package/src/react/useCustomBlockInit.ts +1 -3
- package/src/react/useDataSource.ts +3 -0
|
@@ -33,7 +33,7 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
33
33
|
readonly initializationId: v.StringSchema<undefined>;
|
|
34
34
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
35
35
|
readonly theme: v.PicklistSchema<["light", "dark"], undefined>;
|
|
36
|
-
readonly contrastMode: v.OptionalSchema<v.PicklistSchema<["standard", "high"], undefined>, "
|
|
36
|
+
readonly contrastMode: v.OptionalSchema<v.PicklistSchema<["standard", "high"], undefined>, "high" | "standard">;
|
|
37
37
|
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
38
38
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
39
39
|
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
@@ -50,6 +50,8 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
50
50
|
}, undefined>, v.ObjectSchema<{
|
|
51
51
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
52
52
|
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
53
|
+
}, undefined>, v.ObjectSchema<{
|
|
54
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
53
55
|
}, undefined>], undefined>;
|
|
54
56
|
readonly page: v.ObjectSchema<{
|
|
55
57
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
@@ -68,6 +70,8 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
68
70
|
}, undefined>, v.ObjectSchema<{
|
|
69
71
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
70
72
|
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
73
|
+
}, undefined>, v.ObjectSchema<{
|
|
74
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
71
75
|
}, undefined>], undefined>;
|
|
72
76
|
}, undefined>;
|
|
73
77
|
readonly manifest: v.ObjectSchema<{
|
|
@@ -99,34 +103,36 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
99
103
|
readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
|
|
100
104
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
|
|
101
105
|
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
102
|
-
readonly type: v.LiteralSchema<"title", undefined>;
|
|
103
106
|
readonly name: v.StringSchema<undefined>;
|
|
104
107
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
105
109
|
}, undefined>, v.ObjectSchema<{
|
|
106
|
-
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
107
110
|
readonly name: v.StringSchema<undefined>;
|
|
108
111
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
112
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
109
113
|
}, undefined>, v.ObjectSchema<{
|
|
110
|
-
readonly type: v.LiteralSchema<"number", undefined>;
|
|
111
114
|
readonly name: v.StringSchema<undefined>;
|
|
112
115
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
113
117
|
}, undefined>, v.ObjectSchema<{
|
|
114
|
-
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
115
118
|
readonly name: v.StringSchema<undefined>;
|
|
116
119
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
117
121
|
}, undefined>, v.ObjectSchema<{
|
|
118
|
-
readonly type: v.LiteralSchema<"url", undefined>;
|
|
119
122
|
readonly name: v.StringSchema<undefined>;
|
|
120
123
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
124
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
121
125
|
}, undefined>, v.ObjectSchema<{
|
|
122
|
-
readonly type: v.LiteralSchema<"email", undefined>;
|
|
123
126
|
readonly name: v.StringSchema<undefined>;
|
|
124
127
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
128
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
125
129
|
}, undefined>, v.ObjectSchema<{
|
|
126
|
-
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
127
130
|
readonly name: v.StringSchema<undefined>;
|
|
128
131
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
132
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
129
133
|
}, undefined>, v.ObjectSchema<{
|
|
134
|
+
readonly name: v.StringSchema<undefined>;
|
|
135
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
130
136
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
131
137
|
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
132
138
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -134,9 +140,9 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
134
140
|
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
135
141
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
136
142
|
}, undefined>, undefined>;
|
|
143
|
+
}, undefined>, v.ObjectSchema<{
|
|
137
144
|
readonly name: v.StringSchema<undefined>;
|
|
138
145
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
139
|
-
}, undefined>, v.ObjectSchema<{
|
|
140
146
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
141
147
|
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
142
148
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -144,9 +150,9 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
144
150
|
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
145
151
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
146
152
|
}, undefined>, undefined>;
|
|
153
|
+
}, undefined>, v.ObjectSchema<{
|
|
147
154
|
readonly name: v.StringSchema<undefined>;
|
|
148
155
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
149
|
-
}, undefined>, v.ObjectSchema<{
|
|
150
156
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
151
157
|
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
152
158
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -160,77 +166,75 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
160
166
|
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
161
167
|
readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
162
168
|
}, undefined>, undefined>;
|
|
169
|
+
}, undefined>, v.ObjectSchema<{
|
|
163
170
|
readonly name: v.StringSchema<undefined>;
|
|
164
171
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
165
|
-
}, undefined>, v.ObjectSchema<{
|
|
166
172
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
173
|
+
}, undefined>, v.ObjectSchema<{
|
|
167
174
|
readonly name: v.StringSchema<undefined>;
|
|
168
175
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
169
|
-
}, undefined>, v.ObjectSchema<{
|
|
170
176
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
177
|
+
}, undefined>, v.ObjectSchema<{
|
|
171
178
|
readonly name: v.StringSchema<undefined>;
|
|
172
179
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
173
|
-
}, undefined>, v.ObjectSchema<{
|
|
174
180
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
181
|
+
}, undefined>, v.ObjectSchema<{
|
|
175
182
|
readonly name: v.StringSchema<undefined>;
|
|
176
183
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
177
|
-
}, undefined>, v.ObjectSchema<{
|
|
178
184
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
185
|
+
}, undefined>, v.ObjectSchema<{
|
|
179
186
|
readonly name: v.StringSchema<undefined>;
|
|
180
187
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
181
|
-
}, undefined>, v.ObjectSchema<{
|
|
182
188
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
183
189
|
readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
184
190
|
readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
|
|
185
191
|
readonly synced_property_id: v.StringSchema<undefined>;
|
|
186
192
|
readonly synced_property_name: v.StringSchema<undefined>;
|
|
187
193
|
}, undefined>, undefined>;
|
|
188
|
-
readonly name: v.StringSchema<undefined>;
|
|
189
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
190
194
|
}, undefined>, v.ObjectSchema<{
|
|
191
|
-
readonly type: v.LiteralSchema<"place", undefined>;
|
|
192
195
|
readonly name: v.StringSchema<undefined>;
|
|
193
196
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
197
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
194
198
|
}, undefined>, v.ObjectSchema<{
|
|
195
|
-
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
196
199
|
readonly name: v.StringSchema<undefined>;
|
|
197
200
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
201
|
+
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
198
202
|
}, undefined>, v.ObjectSchema<{
|
|
199
|
-
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
200
203
|
readonly name: v.StringSchema<undefined>;
|
|
201
204
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
205
|
+
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
202
206
|
}, undefined>, v.ObjectSchema<{
|
|
203
|
-
readonly type: v.LiteralSchema<"button", undefined>;
|
|
204
207
|
readonly name: v.StringSchema<undefined>;
|
|
205
208
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
209
|
+
readonly type: v.LiteralSchema<"button", undefined>;
|
|
206
210
|
}, undefined>, v.ObjectSchema<{
|
|
207
|
-
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
208
211
|
readonly name: v.StringSchema<undefined>;
|
|
209
212
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
213
|
+
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
210
214
|
}, undefined>, v.ObjectSchema<{
|
|
211
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
212
215
|
readonly name: v.StringSchema<undefined>;
|
|
213
216
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
217
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
214
218
|
}, undefined>, v.ObjectSchema<{
|
|
215
|
-
readonly type: v.LiteralSchema<"location", undefined>;
|
|
216
219
|
readonly name: v.StringSchema<undefined>;
|
|
217
220
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
221
|
+
readonly type: v.LiteralSchema<"location", undefined>;
|
|
218
222
|
}, undefined>, v.ObjectSchema<{
|
|
219
|
-
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
220
223
|
readonly name: v.StringSchema<undefined>;
|
|
221
224
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
225
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
222
226
|
}, undefined>, v.ObjectSchema<{
|
|
223
|
-
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
224
227
|
readonly name: v.StringSchema<undefined>;
|
|
225
228
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
226
230
|
}, undefined>, v.ObjectSchema<{
|
|
227
|
-
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
228
231
|
readonly name: v.StringSchema<undefined>;
|
|
229
232
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
233
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
230
234
|
}, undefined>, v.ObjectSchema<{
|
|
231
|
-
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
232
235
|
readonly name: v.StringSchema<undefined>;
|
|
233
236
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
237
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
234
238
|
}, undefined>], undefined>, undefined>;
|
|
235
239
|
}, undefined>, undefined>;
|
|
236
240
|
readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
@@ -22,6 +22,8 @@ export class CustomBlockInitializationError extends Error {
|
|
|
22
22
|
this.code = error.code;
|
|
23
23
|
this.isRetryable = error.isRetryable;
|
|
24
24
|
}
|
|
25
|
+
code;
|
|
26
|
+
isRetryable;
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
27
29
|
* Initialization message sent by the host to the sandbox exactly once, in response to the
|
|
@@ -21,6 +21,8 @@ export declare const pageChangedMessageSchema: v.ObjectSchema<{
|
|
|
21
21
|
}, undefined>, v.ObjectSchema<{
|
|
22
22
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
23
23
|
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
24
|
+
}, undefined>, v.ObjectSchema<{
|
|
25
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
24
26
|
}, undefined>], undefined>;
|
|
25
27
|
}, undefined>;
|
|
26
28
|
}, undefined>;
|
|
@@ -19,6 +19,8 @@ export declare const parentChangedMessageSchema: v.ObjectSchema<{
|
|
|
19
19
|
}, undefined>, v.ObjectSchema<{
|
|
20
20
|
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
21
21
|
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
22
|
+
}, undefined>, v.ObjectSchema<{
|
|
23
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
22
24
|
}, undefined>], undefined>;
|
|
23
25
|
}, undefined>;
|
|
24
26
|
export type ParentChangedMessage = v.InferOutput<typeof parentChangedMessageSchema>;
|
|
@@ -422,34 +422,35 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
422
422
|
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
423
423
|
}, undefined>], undefined>;
|
|
424
424
|
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
425
|
+
readonly id: v.StringSchema<undefined>;
|
|
425
426
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
426
427
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
427
|
-
readonly id: v.StringSchema<undefined>;
|
|
428
428
|
}, undefined>, v.ObjectSchema<{
|
|
429
|
+
readonly id: v.StringSchema<undefined>;
|
|
429
430
|
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
430
431
|
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
431
|
-
readonly id: v.StringSchema<undefined>;
|
|
432
432
|
}, undefined>, v.ObjectSchema<{
|
|
433
|
+
readonly id: v.StringSchema<undefined>;
|
|
433
434
|
readonly type: v.LiteralSchema<"number", undefined>;
|
|
434
435
|
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
435
|
-
readonly id: v.StringSchema<undefined>;
|
|
436
436
|
}, undefined>, v.ObjectSchema<{
|
|
437
|
+
readonly id: v.StringSchema<undefined>;
|
|
437
438
|
readonly type: v.LiteralSchema<"url", undefined>;
|
|
438
439
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
439
|
-
readonly id: v.StringSchema<undefined>;
|
|
440
440
|
}, undefined>, v.ObjectSchema<{
|
|
441
|
+
readonly id: v.StringSchema<undefined>;
|
|
441
442
|
readonly type: v.LiteralSchema<"email", undefined>;
|
|
442
443
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
443
|
-
readonly id: v.StringSchema<undefined>;
|
|
444
444
|
}, undefined>, v.ObjectSchema<{
|
|
445
|
+
readonly id: v.StringSchema<undefined>;
|
|
445
446
|
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
446
447
|
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
447
|
-
readonly id: v.StringSchema<undefined>;
|
|
448
448
|
}, undefined>, v.ObjectSchema<{
|
|
449
|
+
readonly id: v.StringSchema<undefined>;
|
|
449
450
|
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
450
451
|
readonly checkbox: v.BooleanSchema<undefined>;
|
|
451
|
-
readonly id: v.StringSchema<undefined>;
|
|
452
452
|
}, undefined>, v.ObjectSchema<{
|
|
453
|
+
readonly id: v.StringSchema<undefined>;
|
|
453
454
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
454
455
|
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
455
456
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -462,8 +463,8 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
462
463
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
463
464
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
464
465
|
}, undefined>], undefined>, undefined>;
|
|
465
|
-
readonly id: v.StringSchema<undefined>;
|
|
466
466
|
}, undefined>, v.ObjectSchema<{
|
|
467
|
+
readonly id: v.StringSchema<undefined>;
|
|
467
468
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
468
469
|
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
469
470
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -476,8 +477,8 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
476
477
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
477
478
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
478
479
|
}, undefined>], undefined>, undefined>;
|
|
479
|
-
readonly id: v.StringSchema<undefined>;
|
|
480
480
|
}, undefined>, v.ObjectSchema<{
|
|
481
|
+
readonly id: v.StringSchema<undefined>;
|
|
481
482
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
482
483
|
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
483
484
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -490,16 +491,16 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
490
491
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
491
492
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
492
493
|
}, undefined>], undefined>, undefined>;
|
|
493
|
-
readonly id: v.StringSchema<undefined>;
|
|
494
494
|
}, undefined>, v.ObjectSchema<{
|
|
495
|
+
readonly id: v.StringSchema<undefined>;
|
|
495
496
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
496
497
|
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
497
498
|
readonly start: v.StringSchema<undefined>;
|
|
498
499
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
499
500
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
500
501
|
}, undefined>, undefined>;
|
|
501
|
-
readonly id: v.StringSchema<undefined>;
|
|
502
502
|
}, undefined>, v.ObjectSchema<{
|
|
503
|
+
readonly id: v.StringSchema<undefined>;
|
|
503
504
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
504
505
|
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
505
506
|
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
@@ -509,15 +510,15 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
509
510
|
readonly id: v.StringSchema<undefined>;
|
|
510
511
|
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
511
512
|
}, undefined>], undefined>, undefined>;
|
|
512
|
-
readonly id: v.StringSchema<undefined>;
|
|
513
513
|
}, undefined>, v.ObjectSchema<{
|
|
514
|
+
readonly id: v.StringSchema<undefined>;
|
|
514
515
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
515
516
|
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
516
517
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
517
518
|
readonly id: v.StringSchema<undefined>;
|
|
518
519
|
}, undefined>, undefined>;
|
|
519
|
-
readonly id: v.StringSchema<undefined>;
|
|
520
520
|
}, undefined>, v.ObjectSchema<{
|
|
521
|
+
readonly id: v.StringSchema<undefined>;
|
|
521
522
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
522
523
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
523
524
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
@@ -533,8 +534,8 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
533
534
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
534
535
|
}, undefined>;
|
|
535
536
|
}, undefined>], undefined>, undefined>;
|
|
536
|
-
readonly id: v.StringSchema<undefined>;
|
|
537
537
|
}, undefined>, v.ObjectSchema<{
|
|
538
|
+
readonly id: v.StringSchema<undefined>;
|
|
538
539
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
539
540
|
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
540
541
|
readonly lat: v.NumberSchema<undefined>;
|
|
@@ -544,7 +545,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
544
545
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
545
546
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
546
547
|
}, undefined>, undefined>;
|
|
547
|
-
readonly id: v.StringSchema<undefined>;
|
|
548
548
|
}, undefined>], undefined>, undefined>;
|
|
549
549
|
readonly position: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
550
550
|
readonly type: v.LiteralSchema<"start", undefined>;
|
|
@@ -575,34 +575,35 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
575
575
|
readonly requestId: v.StringSchema<undefined>;
|
|
576
576
|
readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
577
577
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
578
|
+
readonly id: v.StringSchema<undefined>;
|
|
578
579
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
579
580
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
580
|
-
readonly id: v.StringSchema<undefined>;
|
|
581
581
|
}, undefined>, v.ObjectSchema<{
|
|
582
|
+
readonly id: v.StringSchema<undefined>;
|
|
582
583
|
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
583
584
|
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
584
|
-
readonly id: v.StringSchema<undefined>;
|
|
585
585
|
}, undefined>, v.ObjectSchema<{
|
|
586
|
+
readonly id: v.StringSchema<undefined>;
|
|
586
587
|
readonly type: v.LiteralSchema<"number", undefined>;
|
|
587
588
|
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
588
|
-
readonly id: v.StringSchema<undefined>;
|
|
589
589
|
}, undefined>, v.ObjectSchema<{
|
|
590
|
+
readonly id: v.StringSchema<undefined>;
|
|
590
591
|
readonly type: v.LiteralSchema<"url", undefined>;
|
|
591
592
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
592
|
-
readonly id: v.StringSchema<undefined>;
|
|
593
593
|
}, undefined>, v.ObjectSchema<{
|
|
594
|
+
readonly id: v.StringSchema<undefined>;
|
|
594
595
|
readonly type: v.LiteralSchema<"email", undefined>;
|
|
595
596
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
596
|
-
readonly id: v.StringSchema<undefined>;
|
|
597
597
|
}, undefined>, v.ObjectSchema<{
|
|
598
|
+
readonly id: v.StringSchema<undefined>;
|
|
598
599
|
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
599
600
|
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
600
|
-
readonly id: v.StringSchema<undefined>;
|
|
601
601
|
}, undefined>, v.ObjectSchema<{
|
|
602
|
+
readonly id: v.StringSchema<undefined>;
|
|
602
603
|
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
603
604
|
readonly checkbox: v.BooleanSchema<undefined>;
|
|
604
|
-
readonly id: v.StringSchema<undefined>;
|
|
605
605
|
}, undefined>, v.ObjectSchema<{
|
|
606
|
+
readonly id: v.StringSchema<undefined>;
|
|
606
607
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
607
608
|
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
608
609
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -615,8 +616,8 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
615
616
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
616
617
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
617
618
|
}, undefined>], undefined>, undefined>;
|
|
618
|
-
readonly id: v.StringSchema<undefined>;
|
|
619
619
|
}, undefined>, v.ObjectSchema<{
|
|
620
|
+
readonly id: v.StringSchema<undefined>;
|
|
620
621
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
621
622
|
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
622
623
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -629,8 +630,8 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
629
630
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
630
631
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
631
632
|
}, undefined>], undefined>, undefined>;
|
|
632
|
-
readonly id: v.StringSchema<undefined>;
|
|
633
633
|
}, undefined>, v.ObjectSchema<{
|
|
634
|
+
readonly id: v.StringSchema<undefined>;
|
|
634
635
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
635
636
|
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
636
637
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -643,16 +644,16 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
643
644
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
644
645
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
645
646
|
}, undefined>], undefined>, undefined>;
|
|
646
|
-
readonly id: v.StringSchema<undefined>;
|
|
647
647
|
}, undefined>, v.ObjectSchema<{
|
|
648
|
+
readonly id: v.StringSchema<undefined>;
|
|
648
649
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
649
650
|
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
650
651
|
readonly start: v.StringSchema<undefined>;
|
|
651
652
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
652
653
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
653
654
|
}, undefined>, undefined>;
|
|
654
|
-
readonly id: v.StringSchema<undefined>;
|
|
655
655
|
}, undefined>, v.ObjectSchema<{
|
|
656
|
+
readonly id: v.StringSchema<undefined>;
|
|
656
657
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
657
658
|
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
658
659
|
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
@@ -662,15 +663,15 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
662
663
|
readonly id: v.StringSchema<undefined>;
|
|
663
664
|
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
664
665
|
}, undefined>], undefined>, undefined>;
|
|
665
|
-
readonly id: v.StringSchema<undefined>;
|
|
666
666
|
}, undefined>, v.ObjectSchema<{
|
|
667
|
+
readonly id: v.StringSchema<undefined>;
|
|
667
668
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
668
669
|
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
669
670
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
670
671
|
readonly id: v.StringSchema<undefined>;
|
|
671
672
|
}, undefined>, undefined>;
|
|
672
|
-
readonly id: v.StringSchema<undefined>;
|
|
673
673
|
}, undefined>, v.ObjectSchema<{
|
|
674
|
+
readonly id: v.StringSchema<undefined>;
|
|
674
675
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
675
676
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
676
677
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
@@ -686,8 +687,8 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
686
687
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
687
688
|
}, undefined>;
|
|
688
689
|
}, undefined>], undefined>, undefined>;
|
|
689
|
-
readonly id: v.StringSchema<undefined>;
|
|
690
690
|
}, undefined>, v.ObjectSchema<{
|
|
691
|
+
readonly id: v.StringSchema<undefined>;
|
|
691
692
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
692
693
|
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
693
694
|
readonly lat: v.NumberSchema<undefined>;
|
|
@@ -697,7 +698,6 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
697
698
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
698
699
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
699
700
|
}, undefined>, undefined>;
|
|
700
|
-
readonly id: v.StringSchema<undefined>;
|
|
701
701
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
702
702
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
703
703
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
@@ -14,34 +14,35 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
14
14
|
* by `useDataSource()`. The SDK resolves those keys before it sends this message.
|
|
15
15
|
*/
|
|
16
16
|
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
17
|
+
readonly id: v.StringSchema<undefined>;
|
|
17
18
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
18
19
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
19
|
-
readonly id: v.StringSchema<undefined>;
|
|
20
20
|
}, undefined>, v.ObjectSchema<{
|
|
21
|
+
readonly id: v.StringSchema<undefined>;
|
|
21
22
|
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
22
23
|
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
23
|
-
readonly id: v.StringSchema<undefined>;
|
|
24
24
|
}, undefined>, v.ObjectSchema<{
|
|
25
|
+
readonly id: v.StringSchema<undefined>;
|
|
25
26
|
readonly type: v.LiteralSchema<"number", undefined>;
|
|
26
27
|
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
27
|
-
readonly id: v.StringSchema<undefined>;
|
|
28
28
|
}, undefined>, v.ObjectSchema<{
|
|
29
|
+
readonly id: v.StringSchema<undefined>;
|
|
29
30
|
readonly type: v.LiteralSchema<"url", undefined>;
|
|
30
31
|
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
31
|
-
readonly id: v.StringSchema<undefined>;
|
|
32
32
|
}, undefined>, v.ObjectSchema<{
|
|
33
|
+
readonly id: v.StringSchema<undefined>;
|
|
33
34
|
readonly type: v.LiteralSchema<"email", undefined>;
|
|
34
35
|
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
-
readonly id: v.StringSchema<undefined>;
|
|
36
36
|
}, undefined>, v.ObjectSchema<{
|
|
37
|
+
readonly id: v.StringSchema<undefined>;
|
|
37
38
|
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
38
39
|
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
39
|
-
readonly id: v.StringSchema<undefined>;
|
|
40
40
|
}, undefined>, v.ObjectSchema<{
|
|
41
|
+
readonly id: v.StringSchema<undefined>;
|
|
41
42
|
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
42
43
|
readonly checkbox: v.BooleanSchema<undefined>;
|
|
43
|
-
readonly id: v.StringSchema<undefined>;
|
|
44
44
|
}, undefined>, v.ObjectSchema<{
|
|
45
|
+
readonly id: v.StringSchema<undefined>;
|
|
45
46
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
46
47
|
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
47
48
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -54,8 +55,8 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
54
55
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
55
56
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
56
57
|
}, undefined>], undefined>, undefined>;
|
|
57
|
-
readonly id: v.StringSchema<undefined>;
|
|
58
58
|
}, undefined>, v.ObjectSchema<{
|
|
59
|
+
readonly id: v.StringSchema<undefined>;
|
|
59
60
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
60
61
|
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
61
62
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -68,8 +69,8 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
68
69
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
69
70
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
70
71
|
}, undefined>], undefined>, undefined>;
|
|
71
|
-
readonly id: v.StringSchema<undefined>;
|
|
72
72
|
}, undefined>, v.ObjectSchema<{
|
|
73
|
+
readonly id: v.StringSchema<undefined>;
|
|
73
74
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
74
75
|
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
75
76
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -82,16 +83,16 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
82
83
|
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
83
84
|
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
84
85
|
}, undefined>], undefined>, undefined>;
|
|
85
|
-
readonly id: v.StringSchema<undefined>;
|
|
86
86
|
}, undefined>, v.ObjectSchema<{
|
|
87
|
+
readonly id: v.StringSchema<undefined>;
|
|
87
88
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
88
89
|
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
89
90
|
readonly start: v.StringSchema<undefined>;
|
|
90
91
|
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
91
92
|
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
92
93
|
}, undefined>, undefined>;
|
|
93
|
-
readonly id: v.StringSchema<undefined>;
|
|
94
94
|
}, undefined>, v.ObjectSchema<{
|
|
95
|
+
readonly id: v.StringSchema<undefined>;
|
|
95
96
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
96
97
|
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
97
98
|
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
@@ -101,15 +102,15 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
101
102
|
readonly id: v.StringSchema<undefined>;
|
|
102
103
|
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
103
104
|
}, undefined>], undefined>, undefined>;
|
|
104
|
-
readonly id: v.StringSchema<undefined>;
|
|
105
105
|
}, undefined>, v.ObjectSchema<{
|
|
106
|
+
readonly id: v.StringSchema<undefined>;
|
|
106
107
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
107
108
|
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
108
109
|
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
109
110
|
readonly id: v.StringSchema<undefined>;
|
|
110
111
|
}, undefined>, undefined>;
|
|
111
|
-
readonly id: v.StringSchema<undefined>;
|
|
112
112
|
}, undefined>, v.ObjectSchema<{
|
|
113
|
+
readonly id: v.StringSchema<undefined>;
|
|
113
114
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
114
115
|
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
115
116
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
@@ -125,8 +126,8 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
125
126
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
126
127
|
}, undefined>;
|
|
127
128
|
}, undefined>], undefined>, undefined>;
|
|
128
|
-
readonly id: v.StringSchema<undefined>;
|
|
129
129
|
}, undefined>, v.ObjectSchema<{
|
|
130
|
+
readonly id: v.StringSchema<undefined>;
|
|
130
131
|
readonly type: v.LiteralSchema<"place", undefined>;
|
|
131
132
|
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
132
133
|
readonly lat: v.NumberSchema<undefined>;
|
|
@@ -136,7 +137,6 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
136
137
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
137
138
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
138
139
|
}, undefined>, undefined>;
|
|
139
|
-
readonly id: v.StringSchema<undefined>;
|
|
140
140
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
141
141
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
142
142
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|