@notionhq/custom-blocks-host 0.2.19 → 0.2.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.js +1 -1
- package/dist/ids.d.ts +3 -0
- package/dist/ids.d.ts.map +1 -0
- package/dist/ids.js +5 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/protocol/dataSources/dataSourcePage.d.ts +160 -1
- package/dist/protocol/dataSources/dataSourcePage.js +8 -1
- package/dist/protocol/dataSources/propertySchema.d.ts +1 -0
- package/dist/protocol/messages/createPage.d.ts +28 -0
- package/dist/protocol/messages/createPage.js +2 -2
- package/dist/protocol/messages/createPageResult.d.ts +28 -0
- package/dist/protocol/messages/getPage.d.ts +28 -0
- package/dist/protocol/messages/hostToSandbox.d.ts +243 -2
- package/dist/protocol/messages/queryDataSourceResult.d.ts +159 -2
- package/dist/protocol/messages/queryDataSourceResult.js +5 -2
- package/dist/protocol/messages/sandboxToHost.d.ts +56 -0
- package/dist/protocol/messages/updatePage.d.ts +28 -0
- package/dist/protocol/messages/updatePage.js +2 -2
- package/dist/protocol/messages/updatePageResult.d.ts +28 -0
- package/dist/protocol/pages/page.d.ts +89 -2
- package/dist/protocol/pages/page.js +33 -2
- package/dist/protocol/protocolVersion.d.ts +2 -1
- package/dist/protocol/protocolVersion.js +4 -1
- package/package.json +1 -1
- package/src/ids.ts +9 -0
- package/src/index.ts +9 -0
|
@@ -166,6 +166,34 @@ export declare const getPageResultMessageSchema: v.VariantSchema<"status", [v.Ob
|
|
|
166
166
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
167
167
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
168
168
|
}, undefined>, undefined>;
|
|
169
|
+
}, undefined>, v.ObjectSchema<{
|
|
170
|
+
readonly id: v.StringSchema<undefined>;
|
|
171
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
172
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
173
|
+
}, undefined>, v.ObjectSchema<{
|
|
174
|
+
readonly id: v.StringSchema<undefined>;
|
|
175
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
176
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
177
|
+
}, undefined>, v.ObjectSchema<{
|
|
178
|
+
readonly id: v.StringSchema<undefined>;
|
|
179
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
180
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
181
|
+
readonly id: v.StringSchema<undefined>;
|
|
182
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
183
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
184
|
+
}, undefined>, undefined>;
|
|
185
|
+
}, undefined>, v.ObjectSchema<{
|
|
186
|
+
readonly id: v.StringSchema<undefined>;
|
|
187
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
188
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
189
|
+
readonly id: v.StringSchema<undefined>;
|
|
190
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
191
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
192
|
+
}, undefined>, undefined>;
|
|
193
|
+
}, undefined>, v.ObjectSchema<{
|
|
194
|
+
readonly id: v.StringSchema<undefined>;
|
|
195
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
196
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
169
197
|
}, undefined>], undefined>, undefined>;
|
|
170
198
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
171
199
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -460,7 +460,164 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
460
460
|
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
461
461
|
readonly subscriptionId: v.StringSchema<undefined>;
|
|
462
462
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
463
|
-
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
463
|
+
readonly items: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
464
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
465
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
466
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
467
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
468
|
+
readonly id: v.StringSchema<undefined>;
|
|
469
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
470
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
471
|
+
}, undefined>, v.ObjectSchema<{
|
|
472
|
+
readonly id: v.StringSchema<undefined>;
|
|
473
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
474
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
475
|
+
}, undefined>, v.ObjectSchema<{
|
|
476
|
+
readonly id: v.StringSchema<undefined>;
|
|
477
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
478
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
479
|
+
}, undefined>, v.ObjectSchema<{
|
|
480
|
+
readonly id: v.StringSchema<undefined>;
|
|
481
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
482
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
483
|
+
}, undefined>, v.ObjectSchema<{
|
|
484
|
+
readonly id: v.StringSchema<undefined>;
|
|
485
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
486
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
487
|
+
}, undefined>, v.ObjectSchema<{
|
|
488
|
+
readonly id: v.StringSchema<undefined>;
|
|
489
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
490
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
491
|
+
}, undefined>, v.ObjectSchema<{
|
|
492
|
+
readonly id: v.StringSchema<undefined>;
|
|
493
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
494
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
495
|
+
}, undefined>, v.ObjectSchema<{
|
|
496
|
+
readonly id: v.StringSchema<undefined>;
|
|
497
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
498
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
499
|
+
readonly id: v.StringSchema<undefined>;
|
|
500
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
501
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
502
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
503
|
+
}, undefined>, v.ObjectSchema<{
|
|
504
|
+
readonly name: v.StringSchema<undefined>;
|
|
505
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
506
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
507
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
508
|
+
}, undefined>], undefined>, undefined>;
|
|
509
|
+
}, undefined>, v.ObjectSchema<{
|
|
510
|
+
readonly id: v.StringSchema<undefined>;
|
|
511
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
512
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
513
|
+
readonly id: v.StringSchema<undefined>;
|
|
514
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
515
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
516
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
517
|
+
}, undefined>, v.ObjectSchema<{
|
|
518
|
+
readonly name: v.StringSchema<undefined>;
|
|
519
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
520
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
521
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
522
|
+
}, undefined>], undefined>, undefined>;
|
|
523
|
+
}, undefined>, v.ObjectSchema<{
|
|
524
|
+
readonly id: v.StringSchema<undefined>;
|
|
525
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
526
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
527
|
+
readonly id: v.StringSchema<undefined>;
|
|
528
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
529
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
530
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
531
|
+
}, undefined>, v.ObjectSchema<{
|
|
532
|
+
readonly name: v.StringSchema<undefined>;
|
|
533
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
534
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
535
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
536
|
+
}, undefined>], undefined>, undefined>;
|
|
537
|
+
}, undefined>, v.ObjectSchema<{
|
|
538
|
+
readonly id: v.StringSchema<undefined>;
|
|
539
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
540
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
541
|
+
readonly start: v.StringSchema<undefined>;
|
|
542
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
543
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
544
|
+
}, undefined>, undefined>;
|
|
545
|
+
}, undefined>, v.ObjectSchema<{
|
|
546
|
+
readonly id: v.StringSchema<undefined>;
|
|
547
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
548
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
549
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
550
|
+
readonly id: v.StringSchema<undefined>;
|
|
551
|
+
}, undefined>, v.ObjectSchema<{
|
|
552
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
553
|
+
readonly id: v.StringSchema<undefined>;
|
|
554
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
555
|
+
}, undefined>], undefined>, undefined>;
|
|
556
|
+
}, undefined>, v.ObjectSchema<{
|
|
557
|
+
readonly id: v.StringSchema<undefined>;
|
|
558
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
559
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
560
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
561
|
+
readonly id: v.StringSchema<undefined>;
|
|
562
|
+
}, undefined>, undefined>;
|
|
563
|
+
}, undefined>, v.ObjectSchema<{
|
|
564
|
+
readonly id: v.StringSchema<undefined>;
|
|
565
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
566
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
567
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
568
|
+
readonly name: v.StringSchema<undefined>;
|
|
569
|
+
readonly external: v.ObjectSchema<{
|
|
570
|
+
readonly url: v.StringSchema<undefined>;
|
|
571
|
+
}, undefined>;
|
|
572
|
+
}, undefined>, v.ObjectSchema<{
|
|
573
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
574
|
+
readonly name: v.StringSchema<undefined>;
|
|
575
|
+
readonly file: v.ObjectSchema<{
|
|
576
|
+
readonly url: v.StringSchema<undefined>;
|
|
577
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
578
|
+
}, undefined>;
|
|
579
|
+
}, undefined>], undefined>, undefined>;
|
|
580
|
+
}, undefined>, v.ObjectSchema<{
|
|
581
|
+
readonly id: v.StringSchema<undefined>;
|
|
582
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
583
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
584
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
585
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
586
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
587
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
588
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
589
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
590
|
+
}, undefined>, undefined>;
|
|
591
|
+
}, undefined>, v.ObjectSchema<{
|
|
592
|
+
readonly id: v.StringSchema<undefined>;
|
|
593
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
594
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
595
|
+
}, undefined>, v.ObjectSchema<{
|
|
596
|
+
readonly id: v.StringSchema<undefined>;
|
|
597
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
598
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
599
|
+
}, undefined>, v.ObjectSchema<{
|
|
600
|
+
readonly id: v.StringSchema<undefined>;
|
|
601
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
602
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
603
|
+
readonly id: v.StringSchema<undefined>;
|
|
604
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
605
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
606
|
+
}, undefined>, undefined>;
|
|
607
|
+
}, undefined>, v.ObjectSchema<{
|
|
608
|
+
readonly id: v.StringSchema<undefined>;
|
|
609
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
610
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
611
|
+
readonly id: v.StringSchema<undefined>;
|
|
612
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
613
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
614
|
+
}, undefined>, undefined>;
|
|
615
|
+
}, undefined>, v.ObjectSchema<{
|
|
616
|
+
readonly id: v.StringSchema<undefined>;
|
|
617
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
618
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
619
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
620
|
+
}, undefined>, v.ObjectSchema<{
|
|
464
621
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
465
622
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
466
623
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
@@ -525,7 +682,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
525
682
|
readonly id: v.StringSchema<undefined>;
|
|
526
683
|
readonly table: v.StringSchema<undefined>;
|
|
527
684
|
}, undefined>, undefined>], undefined>, undefined>, undefined>;
|
|
528
|
-
}, undefined>, undefined>;
|
|
685
|
+
}, undefined>], undefined>, undefined>;
|
|
529
686
|
readonly hasMore: v.BooleanSchema<undefined>;
|
|
530
687
|
}, undefined>, v.ObjectSchema<{
|
|
531
688
|
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
@@ -685,6 +842,34 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
685
842
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
686
843
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
687
844
|
}, undefined>, undefined>;
|
|
845
|
+
}, undefined>, v.ObjectSchema<{
|
|
846
|
+
readonly id: v.StringSchema<undefined>;
|
|
847
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
848
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
849
|
+
}, undefined>, v.ObjectSchema<{
|
|
850
|
+
readonly id: v.StringSchema<undefined>;
|
|
851
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
852
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
853
|
+
}, undefined>, v.ObjectSchema<{
|
|
854
|
+
readonly id: v.StringSchema<undefined>;
|
|
855
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
856
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
857
|
+
readonly id: v.StringSchema<undefined>;
|
|
858
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
859
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
860
|
+
}, undefined>, undefined>;
|
|
861
|
+
}, undefined>, v.ObjectSchema<{
|
|
862
|
+
readonly id: v.StringSchema<undefined>;
|
|
863
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
864
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
865
|
+
readonly id: v.StringSchema<undefined>;
|
|
866
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
867
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
868
|
+
}, undefined>, undefined>;
|
|
869
|
+
}, undefined>, v.ObjectSchema<{
|
|
870
|
+
readonly id: v.StringSchema<undefined>;
|
|
871
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
872
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
688
873
|
}, undefined>], undefined>, undefined>;
|
|
689
874
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
690
875
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -885,6 +1070,34 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
885
1070
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
886
1071
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
887
1072
|
}, undefined>, undefined>;
|
|
1073
|
+
}, undefined>, v.ObjectSchema<{
|
|
1074
|
+
readonly id: v.StringSchema<undefined>;
|
|
1075
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
1076
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1077
|
+
}, undefined>, v.ObjectSchema<{
|
|
1078
|
+
readonly id: v.StringSchema<undefined>;
|
|
1079
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
1080
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1081
|
+
}, undefined>, v.ObjectSchema<{
|
|
1082
|
+
readonly id: v.StringSchema<undefined>;
|
|
1083
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
1084
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
1085
|
+
readonly id: v.StringSchema<undefined>;
|
|
1086
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1087
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1088
|
+
}, undefined>, undefined>;
|
|
1089
|
+
}, undefined>, v.ObjectSchema<{
|
|
1090
|
+
readonly id: v.StringSchema<undefined>;
|
|
1091
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
1092
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
1093
|
+
readonly id: v.StringSchema<undefined>;
|
|
1094
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1095
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1096
|
+
}, undefined>, undefined>;
|
|
1097
|
+
}, undefined>, v.ObjectSchema<{
|
|
1098
|
+
readonly id: v.StringSchema<undefined>;
|
|
1099
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1100
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
888
1101
|
}, undefined>], undefined>, undefined>;
|
|
889
1102
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
890
1103
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1152,6 +1365,34 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1152
1365
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1153
1366
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1154
1367
|
}, undefined>, undefined>;
|
|
1368
|
+
}, undefined>, v.ObjectSchema<{
|
|
1369
|
+
readonly id: v.StringSchema<undefined>;
|
|
1370
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
1371
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1372
|
+
}, undefined>, v.ObjectSchema<{
|
|
1373
|
+
readonly id: v.StringSchema<undefined>;
|
|
1374
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
1375
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1376
|
+
}, undefined>, v.ObjectSchema<{
|
|
1377
|
+
readonly id: v.StringSchema<undefined>;
|
|
1378
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
1379
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
1380
|
+
readonly id: v.StringSchema<undefined>;
|
|
1381
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1382
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1383
|
+
}, undefined>, undefined>;
|
|
1384
|
+
}, undefined>, v.ObjectSchema<{
|
|
1385
|
+
readonly id: v.StringSchema<undefined>;
|
|
1386
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
1387
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
1388
|
+
readonly id: v.StringSchema<undefined>;
|
|
1389
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1390
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1391
|
+
}, undefined>, undefined>;
|
|
1392
|
+
}, undefined>, v.ObjectSchema<{
|
|
1393
|
+
readonly id: v.StringSchema<undefined>;
|
|
1394
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1395
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1155
1396
|
}, undefined>], undefined>, undefined>;
|
|
1156
1397
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1157
1398
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -15,7 +15,164 @@ export declare const queryDataSourceResultMessageSchema: v.VariantSchema<"status
|
|
|
15
15
|
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
16
16
|
readonly subscriptionId: v.StringSchema<undefined>;
|
|
17
17
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
18
|
-
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
18
|
+
readonly items: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
19
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
20
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
21
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
22
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
23
|
+
readonly id: v.StringSchema<undefined>;
|
|
24
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
25
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
26
|
+
}, undefined>, v.ObjectSchema<{
|
|
27
|
+
readonly id: v.StringSchema<undefined>;
|
|
28
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
29
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
30
|
+
}, undefined>, v.ObjectSchema<{
|
|
31
|
+
readonly id: v.StringSchema<undefined>;
|
|
32
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
33
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
34
|
+
}, undefined>, v.ObjectSchema<{
|
|
35
|
+
readonly id: v.StringSchema<undefined>;
|
|
36
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
37
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
38
|
+
}, undefined>, v.ObjectSchema<{
|
|
39
|
+
readonly id: v.StringSchema<undefined>;
|
|
40
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
41
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
42
|
+
}, undefined>, v.ObjectSchema<{
|
|
43
|
+
readonly id: v.StringSchema<undefined>;
|
|
44
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
45
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
46
|
+
}, undefined>, v.ObjectSchema<{
|
|
47
|
+
readonly id: v.StringSchema<undefined>;
|
|
48
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
49
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
50
|
+
}, undefined>, v.ObjectSchema<{
|
|
51
|
+
readonly id: v.StringSchema<undefined>;
|
|
52
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
53
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
54
|
+
readonly id: v.StringSchema<undefined>;
|
|
55
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
56
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
57
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
58
|
+
}, undefined>, v.ObjectSchema<{
|
|
59
|
+
readonly name: v.StringSchema<undefined>;
|
|
60
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
61
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
62
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
63
|
+
}, undefined>], undefined>, undefined>;
|
|
64
|
+
}, undefined>, v.ObjectSchema<{
|
|
65
|
+
readonly id: v.StringSchema<undefined>;
|
|
66
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
67
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
68
|
+
readonly id: v.StringSchema<undefined>;
|
|
69
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
70
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
71
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
72
|
+
}, undefined>, v.ObjectSchema<{
|
|
73
|
+
readonly name: v.StringSchema<undefined>;
|
|
74
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
75
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
76
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
77
|
+
}, undefined>], undefined>, undefined>;
|
|
78
|
+
}, undefined>, v.ObjectSchema<{
|
|
79
|
+
readonly id: v.StringSchema<undefined>;
|
|
80
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
81
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
82
|
+
readonly id: v.StringSchema<undefined>;
|
|
83
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
84
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
85
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
86
|
+
}, undefined>, v.ObjectSchema<{
|
|
87
|
+
readonly name: v.StringSchema<undefined>;
|
|
88
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
89
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
90
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
91
|
+
}, undefined>], undefined>, undefined>;
|
|
92
|
+
}, undefined>, v.ObjectSchema<{
|
|
93
|
+
readonly id: v.StringSchema<undefined>;
|
|
94
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
95
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
96
|
+
readonly start: v.StringSchema<undefined>;
|
|
97
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
98
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
99
|
+
}, undefined>, undefined>;
|
|
100
|
+
}, undefined>, v.ObjectSchema<{
|
|
101
|
+
readonly id: v.StringSchema<undefined>;
|
|
102
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
103
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
104
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
105
|
+
readonly id: v.StringSchema<undefined>;
|
|
106
|
+
}, undefined>, v.ObjectSchema<{
|
|
107
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
108
|
+
readonly id: v.StringSchema<undefined>;
|
|
109
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
110
|
+
}, undefined>], undefined>, undefined>;
|
|
111
|
+
}, undefined>, v.ObjectSchema<{
|
|
112
|
+
readonly id: v.StringSchema<undefined>;
|
|
113
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
114
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
115
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
116
|
+
readonly id: v.StringSchema<undefined>;
|
|
117
|
+
}, undefined>, undefined>;
|
|
118
|
+
}, undefined>, v.ObjectSchema<{
|
|
119
|
+
readonly id: v.StringSchema<undefined>;
|
|
120
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
121
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
122
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
123
|
+
readonly name: v.StringSchema<undefined>;
|
|
124
|
+
readonly external: v.ObjectSchema<{
|
|
125
|
+
readonly url: v.StringSchema<undefined>;
|
|
126
|
+
}, undefined>;
|
|
127
|
+
}, undefined>, v.ObjectSchema<{
|
|
128
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
129
|
+
readonly name: v.StringSchema<undefined>;
|
|
130
|
+
readonly file: v.ObjectSchema<{
|
|
131
|
+
readonly url: v.StringSchema<undefined>;
|
|
132
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
133
|
+
}, undefined>;
|
|
134
|
+
}, undefined>], undefined>, undefined>;
|
|
135
|
+
}, undefined>, v.ObjectSchema<{
|
|
136
|
+
readonly id: v.StringSchema<undefined>;
|
|
137
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
138
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
139
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
140
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
141
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
142
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
143
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
144
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
145
|
+
}, undefined>, undefined>;
|
|
146
|
+
}, undefined>, v.ObjectSchema<{
|
|
147
|
+
readonly id: v.StringSchema<undefined>;
|
|
148
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
149
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
150
|
+
}, undefined>, v.ObjectSchema<{
|
|
151
|
+
readonly id: v.StringSchema<undefined>;
|
|
152
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
153
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
154
|
+
}, undefined>, v.ObjectSchema<{
|
|
155
|
+
readonly id: v.StringSchema<undefined>;
|
|
156
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
157
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
158
|
+
readonly id: v.StringSchema<undefined>;
|
|
159
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
160
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
161
|
+
}, undefined>, undefined>;
|
|
162
|
+
}, undefined>, v.ObjectSchema<{
|
|
163
|
+
readonly id: v.StringSchema<undefined>;
|
|
164
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
165
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
166
|
+
readonly id: v.StringSchema<undefined>;
|
|
167
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
168
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
169
|
+
}, undefined>, undefined>;
|
|
170
|
+
}, undefined>, v.ObjectSchema<{
|
|
171
|
+
readonly id: v.StringSchema<undefined>;
|
|
172
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
173
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
174
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
175
|
+
}, undefined>, v.ObjectSchema<{
|
|
19
176
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
20
177
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
21
178
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
@@ -80,7 +237,7 @@ export declare const queryDataSourceResultMessageSchema: v.VariantSchema<"status
|
|
|
80
237
|
readonly id: v.StringSchema<undefined>;
|
|
81
238
|
readonly table: v.StringSchema<undefined>;
|
|
82
239
|
}, undefined>, undefined>], undefined>, undefined>, undefined>;
|
|
83
|
-
}, undefined>, undefined>;
|
|
240
|
+
}, undefined>], undefined>, undefined>;
|
|
84
241
|
readonly hasMore: v.BooleanSchema<undefined>;
|
|
85
242
|
}, undefined>, v.ObjectSchema<{
|
|
86
243
|
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
import { notionDataSourcePageBridgeSchema } from "../dataSources/dataSourcePage.js";
|
|
2
|
+
import { legacyNotionDataSourcePageBridgeSchema, notionDataSourcePageBridgeSchema, } from "../dataSources/dataSourcePage.js";
|
|
3
3
|
// The schema accepts any string code. The type lists known codes for
|
|
4
4
|
// autocomplete, with an open string fallback for newer senders.
|
|
5
5
|
export const customBlockQueryDataSourceErrorCodeSchema = v.string();
|
|
@@ -16,7 +16,10 @@ export const queryDataSourceResultMessageSchema = v.variant("status", [
|
|
|
16
16
|
type: v.literal("queryDataSourceResult"),
|
|
17
17
|
subscriptionId: v.string(),
|
|
18
18
|
status: v.literal("success"),
|
|
19
|
-
items: v.array(
|
|
19
|
+
items: v.array(v.union([
|
|
20
|
+
notionDataSourcePageBridgeSchema,
|
|
21
|
+
legacyNotionDataSourcePageBridgeSchema,
|
|
22
|
+
])),
|
|
20
23
|
hasMore: v.boolean(),
|
|
21
24
|
}),
|
|
22
25
|
v.object({
|
|
@@ -701,6 +701,34 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
701
701
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
702
702
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
703
703
|
}, undefined>, undefined>;
|
|
704
|
+
}, undefined>, v.ObjectSchema<{
|
|
705
|
+
readonly id: v.StringSchema<undefined>;
|
|
706
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
707
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
708
|
+
}, undefined>, v.ObjectSchema<{
|
|
709
|
+
readonly id: v.StringSchema<undefined>;
|
|
710
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
711
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
712
|
+
}, undefined>, v.ObjectSchema<{
|
|
713
|
+
readonly id: v.StringSchema<undefined>;
|
|
714
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
715
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
716
|
+
readonly id: v.StringSchema<undefined>;
|
|
717
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
718
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
719
|
+
}, undefined>, undefined>;
|
|
720
|
+
}, undefined>, v.ObjectSchema<{
|
|
721
|
+
readonly id: v.StringSchema<undefined>;
|
|
722
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
723
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
724
|
+
readonly id: v.StringSchema<undefined>;
|
|
725
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
726
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
727
|
+
}, undefined>, undefined>;
|
|
728
|
+
}, undefined>, v.ObjectSchema<{
|
|
729
|
+
readonly id: v.StringSchema<undefined>;
|
|
730
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
731
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
704
732
|
}, undefined>], undefined>, undefined>;
|
|
705
733
|
readonly position: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
706
734
|
readonly type: v.LiteralSchema<"start", undefined>;
|
|
@@ -859,6 +887,34 @@ export declare const sandboxToHostMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
859
887
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
860
888
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
861
889
|
}, undefined>, undefined>;
|
|
890
|
+
}, undefined>, v.ObjectSchema<{
|
|
891
|
+
readonly id: v.StringSchema<undefined>;
|
|
892
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
893
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
894
|
+
}, undefined>, v.ObjectSchema<{
|
|
895
|
+
readonly id: v.StringSchema<undefined>;
|
|
896
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
897
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
898
|
+
}, undefined>, v.ObjectSchema<{
|
|
899
|
+
readonly id: v.StringSchema<undefined>;
|
|
900
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
901
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
902
|
+
readonly id: v.StringSchema<undefined>;
|
|
903
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
904
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
905
|
+
}, undefined>, undefined>;
|
|
906
|
+
}, undefined>, v.ObjectSchema<{
|
|
907
|
+
readonly id: v.StringSchema<undefined>;
|
|
908
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
909
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
910
|
+
readonly id: v.StringSchema<undefined>;
|
|
911
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
912
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
913
|
+
}, undefined>, undefined>;
|
|
914
|
+
}, undefined>, v.ObjectSchema<{
|
|
915
|
+
readonly id: v.StringSchema<undefined>;
|
|
916
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
917
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
862
918
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
863
919
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
864
920
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
@@ -137,6 +137,34 @@ export declare const updatePageMessageSchema: v.ObjectSchema<{
|
|
|
137
137
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
138
138
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
139
139
|
}, undefined>, undefined>;
|
|
140
|
+
}, undefined>, v.ObjectSchema<{
|
|
141
|
+
readonly id: v.StringSchema<undefined>;
|
|
142
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
143
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
144
|
+
}, undefined>, v.ObjectSchema<{
|
|
145
|
+
readonly id: v.StringSchema<undefined>;
|
|
146
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
147
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
148
|
+
}, undefined>, v.ObjectSchema<{
|
|
149
|
+
readonly id: v.StringSchema<undefined>;
|
|
150
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
151
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
152
|
+
readonly id: v.StringSchema<undefined>;
|
|
153
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
154
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
155
|
+
}, undefined>, undefined>;
|
|
156
|
+
}, undefined>, v.ObjectSchema<{
|
|
157
|
+
readonly id: v.StringSchema<undefined>;
|
|
158
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
159
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
160
|
+
readonly id: v.StringSchema<undefined>;
|
|
161
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
162
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
163
|
+
}, undefined>, undefined>;
|
|
164
|
+
}, undefined>, v.ObjectSchema<{
|
|
165
|
+
readonly id: v.StringSchema<undefined>;
|
|
166
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
167
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
140
168
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
141
169
|
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
142
170
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
2
|
import { notionPageIdSchema } from "../ids.js";
|
|
3
|
-
import { notionPageCoverSchema, notionPageIconSchema,
|
|
3
|
+
import { notionPageCoverSchema, notionPageIconSchema, notionPagePropertyReadMapSchema, } from "../pages/page.js";
|
|
4
4
|
/**
|
|
5
5
|
* The sandbox sends this message to patch a page.
|
|
6
6
|
*/
|
|
@@ -15,7 +15,7 @@ export const updatePageMessageSchema = v.object({
|
|
|
15
15
|
* To update a page with manifest-defined property keys, call `row.update()` on a row returned
|
|
16
16
|
* by `useDataSource()`. The SDK resolves those keys before it sends this message.
|
|
17
17
|
*/
|
|
18
|
-
properties: v.optional(
|
|
18
|
+
properties: v.optional(notionPagePropertyReadMapSchema),
|
|
19
19
|
icon: v.optional(notionPageIconSchema),
|
|
20
20
|
cover: v.optional(notionPageCoverSchema),
|
|
21
21
|
archived: v.optional(v.boolean()),
|