@notionhq/custom-blocks-host 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +15 -15
- package/dist/protocol/messages/dataSourcesChanged.d.ts +27 -27
- package/dist/protocol/messages/getPage.d.ts +15 -15
- package/dist/protocol/messages/hostToSandbox.d.ts +100 -100
- package/dist/protocol/messages/init.d.ts +28 -28
- 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 +15 -15
- package/dist/protocol/pages/page.d.ts +45 -45
- package/dist/queries/querySubscriptions.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -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>;
|
|
@@ -103,34 +103,36 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
103
103
|
readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
|
|
104
104
|
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
|
|
105
105
|
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
106
|
-
readonly type: v.LiteralSchema<"title", undefined>;
|
|
107
106
|
readonly name: v.StringSchema<undefined>;
|
|
108
107
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
108
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
109
109
|
}, undefined>, v.ObjectSchema<{
|
|
110
|
-
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
111
110
|
readonly name: v.StringSchema<undefined>;
|
|
112
111
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
112
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
113
113
|
}, undefined>, v.ObjectSchema<{
|
|
114
|
-
readonly type: v.LiteralSchema<"number", undefined>;
|
|
115
114
|
readonly name: v.StringSchema<undefined>;
|
|
116
115
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
116
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
117
117
|
}, undefined>, v.ObjectSchema<{
|
|
118
|
-
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
119
118
|
readonly name: v.StringSchema<undefined>;
|
|
120
119
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
120
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
121
121
|
}, undefined>, v.ObjectSchema<{
|
|
122
|
-
readonly type: v.LiteralSchema<"url", undefined>;
|
|
123
122
|
readonly name: v.StringSchema<undefined>;
|
|
124
123
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
124
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
125
125
|
}, undefined>, v.ObjectSchema<{
|
|
126
|
-
readonly type: v.LiteralSchema<"email", undefined>;
|
|
127
126
|
readonly name: v.StringSchema<undefined>;
|
|
128
127
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
128
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
129
129
|
}, undefined>, v.ObjectSchema<{
|
|
130
|
-
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
131
130
|
readonly name: v.StringSchema<undefined>;
|
|
132
131
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
132
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
133
133
|
}, undefined>, v.ObjectSchema<{
|
|
134
|
+
readonly name: v.StringSchema<undefined>;
|
|
135
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
134
136
|
readonly type: v.LiteralSchema<"select", undefined>;
|
|
135
137
|
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
136
138
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -138,9 +140,9 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
138
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>;
|
|
139
141
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
140
142
|
}, undefined>, undefined>;
|
|
143
|
+
}, undefined>, v.ObjectSchema<{
|
|
141
144
|
readonly name: v.StringSchema<undefined>;
|
|
142
145
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
143
|
-
}, undefined>, v.ObjectSchema<{
|
|
144
146
|
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
145
147
|
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
146
148
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -148,9 +150,9 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
148
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>;
|
|
149
151
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
150
152
|
}, undefined>, undefined>;
|
|
153
|
+
}, undefined>, v.ObjectSchema<{
|
|
151
154
|
readonly name: v.StringSchema<undefined>;
|
|
152
155
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
153
|
-
}, undefined>, v.ObjectSchema<{
|
|
154
156
|
readonly type: v.LiteralSchema<"status", undefined>;
|
|
155
157
|
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
156
158
|
readonly id: v.StringSchema<undefined>;
|
|
@@ -164,77 +166,75 @@ export declare const initMessageSchema: v.VariantSchema<"status", [v.ObjectSchem
|
|
|
164
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>;
|
|
165
167
|
readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
166
168
|
}, undefined>, undefined>;
|
|
169
|
+
}, undefined>, v.ObjectSchema<{
|
|
167
170
|
readonly name: v.StringSchema<undefined>;
|
|
168
171
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
169
|
-
}, undefined>, v.ObjectSchema<{
|
|
170
172
|
readonly type: v.LiteralSchema<"date", undefined>;
|
|
173
|
+
}, undefined>, v.ObjectSchema<{
|
|
171
174
|
readonly name: v.StringSchema<undefined>;
|
|
172
175
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
173
|
-
}, undefined>, v.ObjectSchema<{
|
|
174
176
|
readonly type: v.LiteralSchema<"people", undefined>;
|
|
177
|
+
}, undefined>, v.ObjectSchema<{
|
|
175
178
|
readonly name: v.StringSchema<undefined>;
|
|
176
179
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
177
|
-
}, undefined>, v.ObjectSchema<{
|
|
178
180
|
readonly type: v.LiteralSchema<"files", undefined>;
|
|
181
|
+
}, undefined>, v.ObjectSchema<{
|
|
179
182
|
readonly name: v.StringSchema<undefined>;
|
|
180
183
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
181
|
-
}, undefined>, v.ObjectSchema<{
|
|
182
184
|
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
185
|
+
}, undefined>, v.ObjectSchema<{
|
|
183
186
|
readonly name: v.StringSchema<undefined>;
|
|
184
187
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
185
|
-
}, undefined>, v.ObjectSchema<{
|
|
186
188
|
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
187
189
|
readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
188
190
|
readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
|
|
189
191
|
readonly synced_property_id: v.StringSchema<undefined>;
|
|
190
192
|
readonly synced_property_name: v.StringSchema<undefined>;
|
|
191
193
|
}, undefined>, undefined>;
|
|
192
|
-
readonly name: v.StringSchema<undefined>;
|
|
193
|
-
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
194
194
|
}, undefined>, v.ObjectSchema<{
|
|
195
|
-
readonly type: v.LiteralSchema<"place", undefined>;
|
|
196
195
|
readonly name: v.StringSchema<undefined>;
|
|
197
196
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
197
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
198
198
|
}, undefined>, v.ObjectSchema<{
|
|
199
|
-
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
200
199
|
readonly name: v.StringSchema<undefined>;
|
|
201
200
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
201
|
+
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
202
202
|
}, undefined>, v.ObjectSchema<{
|
|
203
|
-
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
204
203
|
readonly name: v.StringSchema<undefined>;
|
|
205
204
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
205
|
+
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
206
206
|
}, undefined>, v.ObjectSchema<{
|
|
207
|
-
readonly type: v.LiteralSchema<"button", undefined>;
|
|
208
207
|
readonly name: v.StringSchema<undefined>;
|
|
209
208
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
209
|
+
readonly type: v.LiteralSchema<"button", undefined>;
|
|
210
210
|
}, undefined>, v.ObjectSchema<{
|
|
211
|
-
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
212
211
|
readonly name: v.StringSchema<undefined>;
|
|
213
212
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
213
|
+
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
214
214
|
}, undefined>, v.ObjectSchema<{
|
|
215
|
-
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
216
215
|
readonly name: v.StringSchema<undefined>;
|
|
217
216
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
217
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
218
218
|
}, undefined>, v.ObjectSchema<{
|
|
219
|
-
readonly type: v.LiteralSchema<"location", undefined>;
|
|
220
219
|
readonly name: v.StringSchema<undefined>;
|
|
221
220
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
221
|
+
readonly type: v.LiteralSchema<"location", undefined>;
|
|
222
222
|
}, undefined>, v.ObjectSchema<{
|
|
223
|
-
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
224
223
|
readonly name: v.StringSchema<undefined>;
|
|
225
224
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
225
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
226
226
|
}, undefined>, v.ObjectSchema<{
|
|
227
|
-
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
228
227
|
readonly name: v.StringSchema<undefined>;
|
|
229
228
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
230
230
|
}, undefined>, v.ObjectSchema<{
|
|
231
|
-
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
232
231
|
readonly name: v.StringSchema<undefined>;
|
|
233
232
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
233
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
234
234
|
}, undefined>, v.ObjectSchema<{
|
|
235
|
-
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
236
235
|
readonly name: v.StringSchema<undefined>;
|
|
237
236
|
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
237
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
238
238
|
}, undefined>], undefined>, undefined>;
|
|
239
239
|
}, undefined>, undefined>;
|
|
240
240
|
readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
@@ -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>;
|