@notionhq/custom-blocks-host 0.3.5 → 0.3.6
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/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/lifecycle/legacyPage.d.ts +4 -2
- package/dist/lifecycle/legacyPage.d.ts.map +1 -1
- package/dist/lifecycle/legacyPage.js +12 -0
- package/dist/lifecycle/normalizeHostToSandboxMessage.d.ts.map +1 -1
- package/dist/lifecycle/normalizeHostToSandboxMessage.js +8 -2
- package/dist/lifecycle/normalizePage.d.ts +7 -0
- package/dist/lifecycle/normalizePage.d.ts.map +1 -0
- package/dist/lifecycle/normalizePage.js +22 -0
- package/dist/messages/types.d.ts +1 -2
- package/dist/messages/types.d.ts.map +1 -1
- package/dist/protocol/dataSources/dataSourcePage.d.ts +0 -160
- package/dist/protocol/dataSources/dataSourcePage.js +0 -7
- package/dist/protocol/messages/createPage.js +2 -2
- package/dist/protocol/messages/createPageResult.d.ts +468 -1
- package/dist/protocol/messages/createPageResult.js +17 -2
- package/dist/protocol/messages/getPage.d.ts +468 -1
- package/dist/protocol/messages/getPage.js +18 -3
- package/dist/protocol/messages/hostToSandbox.d.ts +1172 -328
- package/dist/protocol/messages/hostToSandbox.js +9 -6
- package/dist/protocol/messages/queryDataSourceResult.d.ts +142 -6
- package/dist/protocol/messages/queryDataSourceResult.js +4 -6
- package/dist/protocol/messages/sandboxToHost.d.ts +2 -0
- package/dist/protocol/messages/updatePage.d.ts +1 -0
- package/dist/protocol/messages/updatePage.js +4 -3
- package/dist/protocol/messages/updatePageResult.d.ts +467 -1
- package/dist/protocol/messages/updatePageResult.js +16 -2
- package/dist/protocol/pages/page.d.ts +386 -6
- package/dist/protocol/pages/page.js +23 -2
- package/dist/protocol/protocolVersion.js +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -4
- package/src/lifecycle/legacyPage.ts +28 -3
- package/src/lifecycle/normalizeHostToSandboxMessage.ts +13 -2
- package/src/lifecycle/normalizePage.ts +35 -0
- package/src/messages/types.ts +1 -1
- package/dist/lifecycle/normalizeQueryPage.d.ts +0 -3
- package/dist/lifecycle/normalizeQueryPage.d.ts.map +0 -1
- package/dist/lifecycle/normalizeQueryPage.js +0 -13
- package/src/lifecycle/normalizeQueryPage.ts +0 -25
|
@@ -454,10 +454,93 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
454
454
|
}, undefined>, undefined>;
|
|
455
455
|
}, undefined>;
|
|
456
456
|
}, undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
457
|
-
readonly type: v.LiteralSchema<"
|
|
457
|
+
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
458
458
|
readonly requestId: v.StringSchema<undefined>;
|
|
459
459
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
460
|
-
readonly
|
|
460
|
+
readonly user: v.ObjectSchema<{
|
|
461
|
+
readonly object: v.LiteralSchema<"user", undefined>;
|
|
462
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
463
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
464
|
+
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
465
|
+
readonly type: v.LiteralSchema<"person", undefined>;
|
|
466
|
+
readonly person: v.ObjectSchema<{
|
|
467
|
+
readonly email: v.StringSchema<undefined>;
|
|
468
|
+
}, undefined>;
|
|
469
|
+
}, undefined>;
|
|
470
|
+
}, undefined>, v.ObjectSchema<{
|
|
471
|
+
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
472
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
473
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
474
|
+
readonly error: v.ObjectSchema<{
|
|
475
|
+
readonly code: v.StringSchema<undefined>;
|
|
476
|
+
readonly message: v.StringSchema<undefined>;
|
|
477
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
478
|
+
}, undefined>;
|
|
479
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
480
|
+
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
481
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
482
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
483
|
+
readonly list: v.ObjectSchema<{
|
|
484
|
+
readonly object: v.LiteralSchema<"list", undefined>;
|
|
485
|
+
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
486
|
+
readonly object: v.LiteralSchema<"user", undefined>;
|
|
487
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
488
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
489
|
+
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
490
|
+
readonly type: v.LiteralSchema<"person", undefined>;
|
|
491
|
+
readonly person: v.ObjectSchema<{
|
|
492
|
+
readonly email: v.StringSchema<undefined>;
|
|
493
|
+
}, undefined>;
|
|
494
|
+
}, undefined>, undefined>;
|
|
495
|
+
readonly next_cursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
496
|
+
readonly has_more: v.BooleanSchema<undefined>;
|
|
497
|
+
readonly type: v.LiteralSchema<"user", undefined>;
|
|
498
|
+
readonly user: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
|
|
499
|
+
}, undefined>;
|
|
500
|
+
}, undefined>, v.ObjectSchema<{
|
|
501
|
+
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
502
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
503
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
504
|
+
readonly error: v.ObjectSchema<{
|
|
505
|
+
readonly code: v.StringSchema<undefined>;
|
|
506
|
+
readonly message: v.StringSchema<undefined>;
|
|
507
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
508
|
+
}, undefined>;
|
|
509
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
510
|
+
readonly type: v.LiteralSchema<"openPageResult", undefined>;
|
|
511
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
512
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
513
|
+
readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
514
|
+
}, undefined>, v.ObjectSchema<{
|
|
515
|
+
readonly type: v.LiteralSchema<"openPageResult", undefined>;
|
|
516
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
517
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
518
|
+
readonly error: v.ObjectSchema<{
|
|
519
|
+
readonly code: v.StringSchema<undefined>;
|
|
520
|
+
readonly message: v.StringSchema<undefined>;
|
|
521
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
522
|
+
}, undefined>;
|
|
523
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
524
|
+
readonly type: v.LiteralSchema<"openExternalUrlResult", undefined>;
|
|
525
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
526
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
527
|
+
}, undefined>, v.ObjectSchema<{
|
|
528
|
+
readonly type: v.LiteralSchema<"openExternalUrlResult", undefined>;
|
|
529
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
530
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
531
|
+
readonly error: v.ObjectSchema<{
|
|
532
|
+
readonly code: v.StringSchema<undefined>;
|
|
533
|
+
readonly message: v.StringSchema<undefined>;
|
|
534
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
535
|
+
}, undefined>;
|
|
536
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
537
|
+
readonly type: v.LiteralSchema<"invalidSandboxMessage", undefined>;
|
|
538
|
+
readonly reason: v.StringSchema<undefined>;
|
|
539
|
+
}, undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
540
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
541
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
542
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
543
|
+
readonly items: v.ArraySchema<v.ObjectSchema<{
|
|
461
544
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
462
545
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
463
546
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -478,7 +561,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
478
561
|
}, undefined>, v.ObjectSchema<{
|
|
479
562
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
480
563
|
}, undefined>], undefined>;
|
|
481
|
-
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
564
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
482
565
|
readonly id: v.StringSchema<undefined>;
|
|
483
566
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
484
567
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -630,10 +713,21 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
630
713
|
readonly id: v.StringSchema<undefined>;
|
|
631
714
|
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
632
715
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
633
|
-
}, undefined>], undefined>, undefined>;
|
|
634
|
-
readonly
|
|
635
|
-
|
|
636
|
-
|
|
716
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
717
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
718
|
+
readonly id: v.StringSchema<undefined>;
|
|
719
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
720
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
721
|
+
}, undefined>, undefined>, null>;
|
|
722
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
723
|
+
readonly id: v.StringSchema<undefined>;
|
|
724
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
725
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
726
|
+
}, undefined>, undefined>, null>;
|
|
727
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
728
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
729
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
730
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
637
731
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
638
732
|
readonly emoji: v.StringSchema<undefined>;
|
|
639
733
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -654,8 +748,8 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
654
748
|
readonly url: v.StringSchema<undefined>;
|
|
655
749
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
656
750
|
}, undefined>;
|
|
657
|
-
}, undefined>], undefined>, undefined>;
|
|
658
|
-
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
751
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
752
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
659
753
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
660
754
|
readonly external: v.ObjectSchema<{
|
|
661
755
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -666,15 +760,16 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
666
760
|
readonly url: v.StringSchema<undefined>;
|
|
667
761
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
668
762
|
}, undefined>;
|
|
669
|
-
}, undefined>], undefined>, undefined>;
|
|
670
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
671
|
-
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
763
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
764
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
765
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
672
766
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
673
767
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
674
|
-
}, undefined>;
|
|
768
|
+
}, undefined>, undefined>;
|
|
769
|
+
readonly hasMore: v.BooleanSchema<undefined>;
|
|
675
770
|
}, undefined>, v.ObjectSchema<{
|
|
676
|
-
readonly type: v.LiteralSchema<"
|
|
677
|
-
readonly
|
|
771
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
772
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
678
773
|
readonly status: v.LiteralSchema<"error", undefined>;
|
|
679
774
|
readonly error: v.ObjectSchema<{
|
|
680
775
|
readonly code: v.StringSchema<undefined>;
|
|
@@ -706,7 +801,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
706
801
|
}, undefined>, v.ObjectSchema<{
|
|
707
802
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
708
803
|
}, undefined>], undefined>;
|
|
709
|
-
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
804
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
710
805
|
readonly id: v.StringSchema<undefined>;
|
|
711
806
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
712
807
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -858,10 +953,21 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
858
953
|
readonly id: v.StringSchema<undefined>;
|
|
859
954
|
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
860
955
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
861
|
-
}, undefined>], undefined>, undefined>;
|
|
862
|
-
readonly
|
|
863
|
-
|
|
864
|
-
|
|
956
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
957
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
958
|
+
readonly id: v.StringSchema<undefined>;
|
|
959
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
960
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
961
|
+
}, undefined>, undefined>, null>;
|
|
962
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
963
|
+
readonly id: v.StringSchema<undefined>;
|
|
964
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
965
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
966
|
+
}, undefined>, undefined>, null>;
|
|
967
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
968
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
969
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
970
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
865
971
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
866
972
|
readonly emoji: v.StringSchema<undefined>;
|
|
867
973
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -882,8 +988,8 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
882
988
|
readonly url: v.StringSchema<undefined>;
|
|
883
989
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
884
990
|
}, undefined>;
|
|
885
|
-
}, undefined>], undefined>, undefined>;
|
|
886
|
-
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
991
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
992
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
887
993
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
888
994
|
readonly external: v.ObjectSchema<{
|
|
889
995
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -894,9 +1000,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
894
1000
|
readonly url: v.StringSchema<undefined>;
|
|
895
1001
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
896
1002
|
}, undefined>;
|
|
897
|
-
}, undefined>], undefined>, undefined>;
|
|
898
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
899
|
-
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1003
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
1004
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1005
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
900
1006
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
901
1007
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
902
1008
|
}, undefined>;
|
|
@@ -910,87 +1016,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
910
1016
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
911
1017
|
}, undefined>;
|
|
912
1018
|
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
913
|
-
readonly type: v.LiteralSchema<"
|
|
914
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
915
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
916
|
-
readonly user: v.ObjectSchema<{
|
|
917
|
-
readonly object: v.LiteralSchema<"user", undefined>;
|
|
918
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
919
|
-
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
920
|
-
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
921
|
-
readonly type: v.LiteralSchema<"person", undefined>;
|
|
922
|
-
readonly person: v.ObjectSchema<{
|
|
923
|
-
readonly email: v.StringSchema<undefined>;
|
|
924
|
-
}, undefined>;
|
|
925
|
-
}, undefined>;
|
|
926
|
-
}, undefined>, v.ObjectSchema<{
|
|
927
|
-
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
928
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
929
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
930
|
-
readonly error: v.ObjectSchema<{
|
|
931
|
-
readonly code: v.StringSchema<undefined>;
|
|
932
|
-
readonly message: v.StringSchema<undefined>;
|
|
933
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
934
|
-
}, undefined>;
|
|
935
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
936
|
-
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
937
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
938
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
939
|
-
readonly list: v.ObjectSchema<{
|
|
940
|
-
readonly object: v.LiteralSchema<"list", undefined>;
|
|
941
|
-
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
942
|
-
readonly object: v.LiteralSchema<"user", undefined>;
|
|
943
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
944
|
-
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
945
|
-
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
946
|
-
readonly type: v.LiteralSchema<"person", undefined>;
|
|
947
|
-
readonly person: v.ObjectSchema<{
|
|
948
|
-
readonly email: v.StringSchema<undefined>;
|
|
949
|
-
}, undefined>;
|
|
950
|
-
}, undefined>, undefined>;
|
|
951
|
-
readonly next_cursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
952
|
-
readonly has_more: v.BooleanSchema<undefined>;
|
|
953
|
-
readonly type: v.LiteralSchema<"user", undefined>;
|
|
954
|
-
readonly user: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
|
|
955
|
-
}, undefined>;
|
|
956
|
-
}, undefined>, v.ObjectSchema<{
|
|
957
|
-
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
958
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
959
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
960
|
-
readonly error: v.ObjectSchema<{
|
|
961
|
-
readonly code: v.StringSchema<undefined>;
|
|
962
|
-
readonly message: v.StringSchema<undefined>;
|
|
963
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
964
|
-
}, undefined>;
|
|
965
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
966
|
-
readonly type: v.LiteralSchema<"openPageResult", undefined>;
|
|
967
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
968
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
969
|
-
readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
970
|
-
}, undefined>, v.ObjectSchema<{
|
|
971
|
-
readonly type: v.LiteralSchema<"openPageResult", undefined>;
|
|
972
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
973
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
974
|
-
readonly error: v.ObjectSchema<{
|
|
975
|
-
readonly code: v.StringSchema<undefined>;
|
|
976
|
-
readonly message: v.StringSchema<undefined>;
|
|
977
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
978
|
-
}, undefined>;
|
|
979
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
980
|
-
readonly type: v.LiteralSchema<"openExternalUrlResult", undefined>;
|
|
981
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
982
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
983
|
-
}, undefined>, v.ObjectSchema<{
|
|
984
|
-
readonly type: v.LiteralSchema<"openExternalUrlResult", undefined>;
|
|
985
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
986
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
987
|
-
readonly error: v.ObjectSchema<{
|
|
988
|
-
readonly code: v.StringSchema<undefined>;
|
|
989
|
-
readonly message: v.StringSchema<undefined>;
|
|
990
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
991
|
-
}, undefined>;
|
|
992
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
993
|
-
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
1019
|
+
readonly type: v.LiteralSchema<"createPageResult", undefined>;
|
|
994
1020
|
readonly requestId: v.StringSchema<undefined>;
|
|
995
1021
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
996
1022
|
readonly page: v.ObjectSchema<{
|
|
@@ -1014,7 +1040,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1014
1040
|
}, undefined>, v.ObjectSchema<{
|
|
1015
1041
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1016
1042
|
}, undefined>], undefined>;
|
|
1017
|
-
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1043
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1018
1044
|
readonly id: v.StringSchema<undefined>;
|
|
1019
1045
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1020
1046
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -1166,10 +1192,21 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1166
1192
|
readonly id: v.StringSchema<undefined>;
|
|
1167
1193
|
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1168
1194
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1169
|
-
}, undefined>], undefined>, undefined>;
|
|
1170
|
-
readonly
|
|
1171
|
-
|
|
1172
|
-
|
|
1195
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
1196
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1197
|
+
readonly id: v.StringSchema<undefined>;
|
|
1198
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1199
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1200
|
+
}, undefined>, undefined>, null>;
|
|
1201
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1202
|
+
readonly id: v.StringSchema<undefined>;
|
|
1203
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1204
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1205
|
+
}, undefined>, undefined>, null>;
|
|
1206
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1207
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1208
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1209
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1173
1210
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1174
1211
|
readonly emoji: v.StringSchema<undefined>;
|
|
1175
1212
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -1190,8 +1227,8 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1190
1227
|
readonly url: v.StringSchema<undefined>;
|
|
1191
1228
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1192
1229
|
}, undefined>;
|
|
1193
|
-
}, undefined>], undefined>, undefined>;
|
|
1194
|
-
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1230
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
1231
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1195
1232
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1196
1233
|
readonly external: v.ObjectSchema<{
|
|
1197
1234
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -1202,14 +1239,14 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1202
1239
|
readonly url: v.StringSchema<undefined>;
|
|
1203
1240
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1204
1241
|
}, undefined>;
|
|
1205
|
-
}, undefined>], undefined>, undefined>;
|
|
1206
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1207
|
-
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1242
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
1243
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1244
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1208
1245
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
1209
1246
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
1210
1247
|
}, undefined>;
|
|
1211
1248
|
}, undefined>, v.ObjectSchema<{
|
|
1212
|
-
readonly type: v.LiteralSchema<"
|
|
1249
|
+
readonly type: v.LiteralSchema<"createPageResult", undefined>;
|
|
1213
1250
|
readonly requestId: v.StringSchema<undefined>;
|
|
1214
1251
|
readonly status: v.LiteralSchema<"error", undefined>;
|
|
1215
1252
|
readonly error: v.ObjectSchema<{
|
|
@@ -1217,18 +1254,32 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1217
1254
|
readonly message: v.StringSchema<undefined>;
|
|
1218
1255
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
1219
1256
|
}, undefined>;
|
|
1220
|
-
}, undefined>], undefined>, v.ObjectSchema<{
|
|
1221
|
-
readonly type: v.LiteralSchema<"
|
|
1222
|
-
readonly
|
|
1223
|
-
}, undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
1224
|
-
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
1225
|
-
readonly subscriptionId: v.StringSchema<undefined>;
|
|
1257
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
1258
|
+
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
1259
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
1226
1260
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
1227
|
-
readonly
|
|
1261
|
+
readonly page: v.ObjectSchema<{
|
|
1262
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
1228
1263
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1229
|
-
readonly
|
|
1230
|
-
|
|
1231
|
-
|
|
1264
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1265
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1266
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1267
|
+
}, undefined>, v.ObjectSchema<{
|
|
1268
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1269
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1270
|
+
}, undefined>, v.ObjectSchema<{
|
|
1271
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
1272
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
1273
|
+
}, undefined>, v.ObjectSchema<{
|
|
1274
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
1275
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1276
|
+
}, undefined>, v.ObjectSchema<{
|
|
1277
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
1278
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
1279
|
+
}, undefined>, v.ObjectSchema<{
|
|
1280
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1281
|
+
}, undefined>], undefined>;
|
|
1282
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1232
1283
|
readonly id: v.StringSchema<undefined>;
|
|
1233
1284
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1234
1285
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -1381,19 +1432,69 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1381
1432
|
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1382
1433
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1383
1434
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1435
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1436
|
+
readonly id: v.StringSchema<undefined>;
|
|
1437
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1438
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1439
|
+
}, undefined>, undefined>, null>;
|
|
1440
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
1441
|
+
readonly id: v.StringSchema<undefined>;
|
|
1442
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1443
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1444
|
+
}, undefined>, undefined>, null>;
|
|
1445
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1446
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1447
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1448
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1449
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1450
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1451
|
+
}, undefined>, v.ObjectSchema<{
|
|
1452
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
1453
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
1454
|
+
readonly id: v.StringSchema<undefined>;
|
|
1455
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1456
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1457
|
+
}, undefined>;
|
|
1458
|
+
}, undefined>, v.ObjectSchema<{
|
|
1459
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1460
|
+
readonly external: v.ObjectSchema<{
|
|
1461
|
+
readonly url: v.StringSchema<undefined>;
|
|
1462
|
+
}, undefined>;
|
|
1463
|
+
}, undefined>, v.ObjectSchema<{
|
|
1464
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1465
|
+
readonly file: v.ObjectSchema<{
|
|
1466
|
+
readonly url: v.StringSchema<undefined>;
|
|
1467
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1468
|
+
}, undefined>;
|
|
1469
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
1470
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1471
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1472
|
+
readonly external: v.ObjectSchema<{
|
|
1473
|
+
readonly url: v.StringSchema<undefined>;
|
|
1474
|
+
}, undefined>;
|
|
1475
|
+
}, undefined>, v.ObjectSchema<{
|
|
1476
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1477
|
+
readonly file: v.ObjectSchema<{
|
|
1478
|
+
readonly url: v.StringSchema<undefined>;
|
|
1479
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1480
|
+
}, undefined>;
|
|
1481
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
1482
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1483
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
1484
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
1485
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
1486
|
+
}, undefined>;
|
|
1487
|
+
}, undefined>, v.ObjectSchema<{
|
|
1488
|
+
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
1489
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
1490
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
1491
|
+
readonly error: v.ObjectSchema<{
|
|
1492
|
+
readonly code: v.StringSchema<undefined>;
|
|
1493
|
+
readonly message: v.StringSchema<undefined>;
|
|
1494
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
1495
|
+
}, undefined>;
|
|
1496
|
+
}, undefined>], undefined>], undefined>;
|
|
1497
|
+
/**
|
|
1397
1498
|
* Discriminated union of every message the host is allowed to send the sandbox.
|
|
1398
1499
|
*/
|
|
1399
1500
|
export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [v.VariantSchema<"status", [v.ObjectSchema<{
|
|
@@ -1851,10 +1952,93 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
1851
1952
|
}, undefined>, undefined>;
|
|
1852
1953
|
}, undefined>;
|
|
1853
1954
|
}, undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
1854
|
-
readonly type: v.LiteralSchema<"
|
|
1955
|
+
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
1855
1956
|
readonly requestId: v.StringSchema<undefined>;
|
|
1856
1957
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
1857
|
-
readonly
|
|
1958
|
+
readonly user: v.ObjectSchema<{
|
|
1959
|
+
readonly object: v.LiteralSchema<"user", undefined>;
|
|
1960
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
1961
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1962
|
+
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1963
|
+
readonly type: v.LiteralSchema<"person", undefined>;
|
|
1964
|
+
readonly person: v.ObjectSchema<{
|
|
1965
|
+
readonly email: v.StringSchema<undefined>;
|
|
1966
|
+
}, undefined>;
|
|
1967
|
+
}, undefined>;
|
|
1968
|
+
}, undefined>, v.ObjectSchema<{
|
|
1969
|
+
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
1970
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
1971
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
1972
|
+
readonly error: v.ObjectSchema<{
|
|
1973
|
+
readonly code: v.StringSchema<undefined>;
|
|
1974
|
+
readonly message: v.StringSchema<undefined>;
|
|
1975
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
1976
|
+
}, undefined>;
|
|
1977
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
1978
|
+
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
1979
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
1980
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
1981
|
+
readonly list: v.ObjectSchema<{
|
|
1982
|
+
readonly object: v.LiteralSchema<"list", undefined>;
|
|
1983
|
+
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
1984
|
+
readonly object: v.LiteralSchema<"user", undefined>;
|
|
1985
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
1986
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1987
|
+
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1988
|
+
readonly type: v.LiteralSchema<"person", undefined>;
|
|
1989
|
+
readonly person: v.ObjectSchema<{
|
|
1990
|
+
readonly email: v.StringSchema<undefined>;
|
|
1991
|
+
}, undefined>;
|
|
1992
|
+
}, undefined>, undefined>;
|
|
1993
|
+
readonly next_cursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1994
|
+
readonly has_more: v.BooleanSchema<undefined>;
|
|
1995
|
+
readonly type: v.LiteralSchema<"user", undefined>;
|
|
1996
|
+
readonly user: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
|
|
1997
|
+
}, undefined>;
|
|
1998
|
+
}, undefined>, v.ObjectSchema<{
|
|
1999
|
+
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
2000
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2001
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2002
|
+
readonly error: v.ObjectSchema<{
|
|
2003
|
+
readonly code: v.StringSchema<undefined>;
|
|
2004
|
+
readonly message: v.StringSchema<undefined>;
|
|
2005
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2006
|
+
}, undefined>;
|
|
2007
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2008
|
+
readonly type: v.LiteralSchema<"openPageResult", undefined>;
|
|
2009
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2010
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2011
|
+
readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2012
|
+
}, undefined>, v.ObjectSchema<{
|
|
2013
|
+
readonly type: v.LiteralSchema<"openPageResult", undefined>;
|
|
2014
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2015
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2016
|
+
readonly error: v.ObjectSchema<{
|
|
2017
|
+
readonly code: v.StringSchema<undefined>;
|
|
2018
|
+
readonly message: v.StringSchema<undefined>;
|
|
2019
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2020
|
+
}, undefined>;
|
|
2021
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2022
|
+
readonly type: v.LiteralSchema<"openExternalUrlResult", undefined>;
|
|
2023
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2024
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2025
|
+
}, undefined>, v.ObjectSchema<{
|
|
2026
|
+
readonly type: v.LiteralSchema<"openExternalUrlResult", undefined>;
|
|
2027
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2028
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2029
|
+
readonly error: v.ObjectSchema<{
|
|
2030
|
+
readonly code: v.StringSchema<undefined>;
|
|
2031
|
+
readonly message: v.StringSchema<undefined>;
|
|
2032
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2033
|
+
}, undefined>;
|
|
2034
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
2035
|
+
readonly type: v.LiteralSchema<"invalidSandboxMessage", undefined>;
|
|
2036
|
+
readonly reason: v.StringSchema<undefined>;
|
|
2037
|
+
}, undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2038
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
2039
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
2040
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2041
|
+
readonly items: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1858
2042
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
1859
2043
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1860
2044
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -1875,7 +2059,7 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
1875
2059
|
}, undefined>, v.ObjectSchema<{
|
|
1876
2060
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1877
2061
|
}, undefined>], undefined>;
|
|
1878
|
-
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2062
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1879
2063
|
readonly id: v.StringSchema<undefined>;
|
|
1880
2064
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1881
2065
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -2027,10 +2211,21 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2027
2211
|
readonly id: v.StringSchema<undefined>;
|
|
2028
2212
|
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2029
2213
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2030
|
-
}, undefined>], undefined>, undefined>;
|
|
2031
|
-
readonly
|
|
2032
|
-
|
|
2033
|
-
|
|
2214
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
2215
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2216
|
+
readonly id: v.StringSchema<undefined>;
|
|
2217
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2218
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2219
|
+
}, undefined>, undefined>, null>;
|
|
2220
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2221
|
+
readonly id: v.StringSchema<undefined>;
|
|
2222
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2223
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2224
|
+
}, undefined>, undefined>, null>;
|
|
2225
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2226
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2227
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2228
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2034
2229
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
2035
2230
|
readonly emoji: v.StringSchema<undefined>;
|
|
2036
2231
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -2051,8 +2246,8 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2051
2246
|
readonly url: v.StringSchema<undefined>;
|
|
2052
2247
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2053
2248
|
}, undefined>;
|
|
2054
|
-
}, undefined>], undefined>, undefined>;
|
|
2055
|
-
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2249
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
2250
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2056
2251
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2057
2252
|
readonly external: v.ObjectSchema<{
|
|
2058
2253
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -2063,15 +2258,81 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2063
2258
|
readonly url: v.StringSchema<undefined>;
|
|
2064
2259
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2065
2260
|
}, undefined>;
|
|
2066
|
-
}, undefined>], undefined>, undefined>;
|
|
2067
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2068
|
-
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2261
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
2262
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2263
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2069
2264
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
2070
2265
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
2071
|
-
}, undefined
|
|
2266
|
+
}, undefined>, v.ObjectSchema<{
|
|
2267
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2268
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
2269
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
2270
|
+
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.BooleanSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2271
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
2272
|
+
readonly start_date: v.StringSchema<undefined>;
|
|
2273
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2274
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
2275
|
+
readonly value: v.NumberSchema<undefined>;
|
|
2276
|
+
readonly time: v.StringSchema<undefined>;
|
|
2277
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2278
|
+
}, undefined>, v.ObjectSchema<{
|
|
2279
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
2280
|
+
}, undefined>], undefined>, undefined>;
|
|
2281
|
+
}, undefined>, v.ObjectSchema<{
|
|
2282
|
+
readonly type: v.LiteralSchema<"daterange", undefined>;
|
|
2283
|
+
readonly start_date: v.StringSchema<undefined>;
|
|
2284
|
+
readonly end_date: v.StringSchema<undefined>;
|
|
2285
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2286
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
2287
|
+
readonly value: v.NumberSchema<undefined>;
|
|
2288
|
+
readonly time: v.StringSchema<undefined>;
|
|
2289
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2290
|
+
}, undefined>, v.ObjectSchema<{
|
|
2291
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
2292
|
+
}, undefined>], undefined>, undefined>;
|
|
2293
|
+
}, undefined>, v.ObjectSchema<{
|
|
2294
|
+
readonly type: v.LiteralSchema<"datetime", undefined>;
|
|
2295
|
+
readonly start_date: v.StringSchema<undefined>;
|
|
2296
|
+
readonly start_time: v.StringSchema<undefined>;
|
|
2297
|
+
readonly time_zone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2298
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
2299
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
2300
|
+
readonly value: v.NumberSchema<undefined>;
|
|
2301
|
+
readonly time: v.StringSchema<undefined>;
|
|
2302
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2303
|
+
}, undefined>, v.ObjectSchema<{
|
|
2304
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
2305
|
+
readonly value: v.NumberSchema<undefined>;
|
|
2306
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
2307
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
2308
|
+
}, undefined>], undefined>, undefined>;
|
|
2309
|
+
}, undefined>, v.ObjectSchema<{
|
|
2310
|
+
readonly type: v.LiteralSchema<"datetimerange", undefined>;
|
|
2311
|
+
readonly start_date: v.StringSchema<undefined>;
|
|
2312
|
+
readonly start_time: v.StringSchema<undefined>;
|
|
2313
|
+
readonly end_date: v.StringSchema<undefined>;
|
|
2314
|
+
readonly end_time: v.StringSchema<undefined>;
|
|
2315
|
+
readonly time_zone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2316
|
+
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
2317
|
+
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
2318
|
+
readonly value: v.NumberSchema<undefined>;
|
|
2319
|
+
readonly time: v.StringSchema<undefined>;
|
|
2320
|
+
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2321
|
+
}, undefined>, v.ObjectSchema<{
|
|
2322
|
+
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
2323
|
+
readonly value: v.NumberSchema<undefined>;
|
|
2324
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
2325
|
+
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
2326
|
+
}, undefined>], undefined>, undefined>;
|
|
2327
|
+
}, undefined>], undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ArraySchema<v.ObjectSchema<{
|
|
2328
|
+
readonly id: v.StringSchema<undefined>;
|
|
2329
|
+
readonly table: v.StringSchema<undefined>;
|
|
2330
|
+
}, undefined>, undefined>], undefined>, undefined>, undefined>;
|
|
2331
|
+
}, undefined>], undefined>, undefined>;
|
|
2332
|
+
readonly hasMore: v.BooleanSchema<undefined>;
|
|
2072
2333
|
}, undefined>, v.ObjectSchema<{
|
|
2073
|
-
readonly type: v.LiteralSchema<"
|
|
2074
|
-
readonly
|
|
2334
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
2335
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
2075
2336
|
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2076
2337
|
readonly error: v.ObjectSchema<{
|
|
2077
2338
|
readonly code: v.StringSchema<undefined>;
|
|
@@ -2082,7 +2343,7 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2082
2343
|
readonly type: v.LiteralSchema<"getPageResult", undefined>;
|
|
2083
2344
|
readonly requestId: v.StringSchema<undefined>;
|
|
2084
2345
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2085
|
-
readonly page: v.ObjectSchema<{
|
|
2346
|
+
readonly page: v.UnionSchema<[v.ObjectSchema<{
|
|
2086
2347
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
2087
2348
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2088
2349
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -2103,7 +2364,7 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2103
2364
|
}, undefined>, v.ObjectSchema<{
|
|
2104
2365
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
2105
2366
|
}, undefined>], undefined>;
|
|
2106
|
-
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2367
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2107
2368
|
readonly id: v.StringSchema<undefined>;
|
|
2108
2369
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
2109
2370
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -2255,10 +2516,21 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2255
2516
|
readonly id: v.StringSchema<undefined>;
|
|
2256
2517
|
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2257
2518
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2258
|
-
}, undefined>], undefined>, undefined>;
|
|
2259
|
-
readonly
|
|
2260
|
-
|
|
2261
|
-
|
|
2519
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
2520
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2521
|
+
readonly id: v.StringSchema<undefined>;
|
|
2522
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2523
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2524
|
+
}, undefined>, undefined>, null>;
|
|
2525
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2526
|
+
readonly id: v.StringSchema<undefined>;
|
|
2527
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2528
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2529
|
+
}, undefined>, undefined>, null>;
|
|
2530
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2531
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2532
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2533
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2262
2534
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
2263
2535
|
readonly emoji: v.StringSchema<undefined>;
|
|
2264
2536
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -2279,8 +2551,8 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2279
2551
|
readonly url: v.StringSchema<undefined>;
|
|
2280
2552
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2281
2553
|
}, undefined>;
|
|
2282
|
-
}, undefined>], undefined>, undefined>;
|
|
2283
|
-
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2554
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
2555
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2284
2556
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2285
2557
|
readonly external: v.ObjectSchema<{
|
|
2286
2558
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -2291,106 +2563,12 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2291
2563
|
readonly url: v.StringSchema<undefined>;
|
|
2292
2564
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2293
2565
|
}, undefined>;
|
|
2294
|
-
}, undefined>], undefined>, undefined>;
|
|
2295
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2296
|
-
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2566
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
2567
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2568
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2297
2569
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
2298
2570
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
2299
|
-
}, undefined
|
|
2300
|
-
}, undefined>, v.ObjectSchema<{
|
|
2301
|
-
readonly type: v.LiteralSchema<"getPageResult", undefined>;
|
|
2302
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2303
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2304
|
-
readonly error: v.ObjectSchema<{
|
|
2305
|
-
readonly code: v.StringSchema<undefined>;
|
|
2306
|
-
readonly message: v.StringSchema<undefined>;
|
|
2307
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2308
|
-
}, undefined>;
|
|
2309
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2310
|
-
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
2311
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2312
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2313
|
-
readonly user: v.ObjectSchema<{
|
|
2314
|
-
readonly object: v.LiteralSchema<"user", undefined>;
|
|
2315
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
2316
|
-
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2317
|
-
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2318
|
-
readonly type: v.LiteralSchema<"person", undefined>;
|
|
2319
|
-
readonly person: v.ObjectSchema<{
|
|
2320
|
-
readonly email: v.StringSchema<undefined>;
|
|
2321
|
-
}, undefined>;
|
|
2322
|
-
}, undefined>;
|
|
2323
|
-
}, undefined>, v.ObjectSchema<{
|
|
2324
|
-
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
2325
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2326
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2327
|
-
readonly error: v.ObjectSchema<{
|
|
2328
|
-
readonly code: v.StringSchema<undefined>;
|
|
2329
|
-
readonly message: v.StringSchema<undefined>;
|
|
2330
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2331
|
-
}, undefined>;
|
|
2332
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2333
|
-
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
2334
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2335
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2336
|
-
readonly list: v.ObjectSchema<{
|
|
2337
|
-
readonly object: v.LiteralSchema<"list", undefined>;
|
|
2338
|
-
readonly results: v.ArraySchema<v.ObjectSchema<{
|
|
2339
|
-
readonly object: v.LiteralSchema<"user", undefined>;
|
|
2340
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
2341
|
-
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2342
|
-
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2343
|
-
readonly type: v.LiteralSchema<"person", undefined>;
|
|
2344
|
-
readonly person: v.ObjectSchema<{
|
|
2345
|
-
readonly email: v.StringSchema<undefined>;
|
|
2346
|
-
}, undefined>;
|
|
2347
|
-
}, undefined>, undefined>;
|
|
2348
|
-
readonly next_cursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2349
|
-
readonly has_more: v.BooleanSchema<undefined>;
|
|
2350
|
-
readonly type: v.LiteralSchema<"user", undefined>;
|
|
2351
|
-
readonly user: v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>;
|
|
2352
|
-
}, undefined>;
|
|
2353
|
-
}, undefined>, v.ObjectSchema<{
|
|
2354
|
-
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
2355
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2356
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2357
|
-
readonly error: v.ObjectSchema<{
|
|
2358
|
-
readonly code: v.StringSchema<undefined>;
|
|
2359
|
-
readonly message: v.StringSchema<undefined>;
|
|
2360
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2361
|
-
}, undefined>;
|
|
2362
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2363
|
-
readonly type: v.LiteralSchema<"openPageResult", undefined>;
|
|
2364
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2365
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2366
|
-
readonly pageId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2367
|
-
}, undefined>, v.ObjectSchema<{
|
|
2368
|
-
readonly type: v.LiteralSchema<"openPageResult", undefined>;
|
|
2369
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2370
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2371
|
-
readonly error: v.ObjectSchema<{
|
|
2372
|
-
readonly code: v.StringSchema<undefined>;
|
|
2373
|
-
readonly message: v.StringSchema<undefined>;
|
|
2374
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2375
|
-
}, undefined>;
|
|
2376
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2377
|
-
readonly type: v.LiteralSchema<"openExternalUrlResult", undefined>;
|
|
2378
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2379
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2380
|
-
}, undefined>, v.ObjectSchema<{
|
|
2381
|
-
readonly type: v.LiteralSchema<"openExternalUrlResult", undefined>;
|
|
2382
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2383
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2384
|
-
readonly error: v.ObjectSchema<{
|
|
2385
|
-
readonly code: v.StringSchema<undefined>;
|
|
2386
|
-
readonly message: v.StringSchema<undefined>;
|
|
2387
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2388
|
-
}, undefined>;
|
|
2389
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2390
|
-
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
2391
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
2392
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2393
|
-
readonly page: v.ObjectSchema<{
|
|
2571
|
+
}, undefined>, v.ObjectSchema<{
|
|
2394
2572
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
2395
2573
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2396
2574
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -2604,9 +2782,9 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2604
2782
|
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2605
2783
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
2606
2784
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
2607
|
-
}, undefined>;
|
|
2785
|
+
}, undefined>], undefined>;
|
|
2608
2786
|
}, undefined>, v.ObjectSchema<{
|
|
2609
|
-
readonly type: v.LiteralSchema<"
|
|
2787
|
+
readonly type: v.LiteralSchema<"getPageResult", undefined>;
|
|
2610
2788
|
readonly requestId: v.StringSchema<undefined>;
|
|
2611
2789
|
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2612
2790
|
readonly error: v.ObjectSchema<{
|
|
@@ -2614,18 +2792,32 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2614
2792
|
readonly message: v.StringSchema<undefined>;
|
|
2615
2793
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2616
2794
|
}, undefined>;
|
|
2617
|
-
}, undefined>], undefined>, v.ObjectSchema<{
|
|
2618
|
-
readonly type: v.LiteralSchema<"
|
|
2619
|
-
readonly
|
|
2620
|
-
}, undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2621
|
-
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
2622
|
-
readonly subscriptionId: v.StringSchema<undefined>;
|
|
2795
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2796
|
+
readonly type: v.LiteralSchema<"createPageResult", undefined>;
|
|
2797
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2623
2798
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2624
|
-
readonly
|
|
2799
|
+
readonly page: v.UnionSchema<[v.ObjectSchema<{
|
|
2800
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
2625
2801
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2626
|
-
readonly
|
|
2627
|
-
|
|
2628
|
-
|
|
2802
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2803
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
2804
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2805
|
+
}, undefined>, v.ObjectSchema<{
|
|
2806
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
2807
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
2808
|
+
}, undefined>, v.ObjectSchema<{
|
|
2809
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
2810
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
2811
|
+
}, undefined>, v.ObjectSchema<{
|
|
2812
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
2813
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
2814
|
+
}, undefined>, v.ObjectSchema<{
|
|
2815
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
2816
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
2817
|
+
}, undefined>, v.ObjectSchema<{
|
|
2818
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
2819
|
+
}, undefined>], undefined>;
|
|
2820
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2629
2821
|
readonly id: v.StringSchema<undefined>;
|
|
2630
2822
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
2631
2823
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -2778,76 +2970,728 @@ export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [
|
|
|
2778
2970
|
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2779
2971
|
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2780
2972
|
}, undefined>], undefined>, undefined>, undefined>;
|
|
2781
|
-
|
|
2782
|
-
|
|
2973
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2974
|
+
readonly id: v.StringSchema<undefined>;
|
|
2975
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2976
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2977
|
+
}, undefined>, undefined>, null>;
|
|
2978
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
2979
|
+
readonly id: v.StringSchema<undefined>;
|
|
2980
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2981
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2982
|
+
}, undefined>, undefined>, null>;
|
|
2983
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2984
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2985
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2986
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2987
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
2988
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
2989
|
+
}, undefined>, v.ObjectSchema<{
|
|
2990
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
2991
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
2992
|
+
readonly id: v.StringSchema<undefined>;
|
|
2993
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2994
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2995
|
+
}, undefined>;
|
|
2996
|
+
}, undefined>, v.ObjectSchema<{
|
|
2997
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2998
|
+
readonly external: v.ObjectSchema<{
|
|
2999
|
+
readonly url: v.StringSchema<undefined>;
|
|
3000
|
+
}, undefined>;
|
|
3001
|
+
}, undefined>, v.ObjectSchema<{
|
|
3002
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3003
|
+
readonly file: v.ObjectSchema<{
|
|
3004
|
+
readonly url: v.StringSchema<undefined>;
|
|
3005
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3006
|
+
}, undefined>;
|
|
3007
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
3008
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3009
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3010
|
+
readonly external: v.ObjectSchema<{
|
|
3011
|
+
readonly url: v.StringSchema<undefined>;
|
|
3012
|
+
}, undefined>;
|
|
3013
|
+
}, undefined>, v.ObjectSchema<{
|
|
3014
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3015
|
+
readonly file: v.ObjectSchema<{
|
|
3016
|
+
readonly url: v.StringSchema<undefined>;
|
|
3017
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3018
|
+
}, undefined>;
|
|
3019
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
3020
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3021
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
2783
3022
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
2784
3023
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
3024
|
+
}, undefined>, v.ObjectSchema<{
|
|
3025
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
3026
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
3027
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3028
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
3029
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
3030
|
+
}, undefined>, v.ObjectSchema<{
|
|
3031
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
3032
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
3033
|
+
}, undefined>, v.ObjectSchema<{
|
|
3034
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
3035
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
3036
|
+
}, undefined>, v.ObjectSchema<{
|
|
3037
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
3038
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
3039
|
+
}, undefined>, v.ObjectSchema<{
|
|
3040
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
3041
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
3042
|
+
}, undefined>, v.ObjectSchema<{
|
|
3043
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
3044
|
+
}, undefined>], undefined>;
|
|
3045
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3046
|
+
readonly id: v.StringSchema<undefined>;
|
|
3047
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
3048
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
3049
|
+
}, undefined>, v.ObjectSchema<{
|
|
3050
|
+
readonly id: v.StringSchema<undefined>;
|
|
3051
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
3052
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
3053
|
+
}, undefined>, v.ObjectSchema<{
|
|
3054
|
+
readonly id: v.StringSchema<undefined>;
|
|
3055
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
3056
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
3057
|
+
}, undefined>, v.ObjectSchema<{
|
|
3058
|
+
readonly id: v.StringSchema<undefined>;
|
|
3059
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
3060
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3061
|
+
}, undefined>, v.ObjectSchema<{
|
|
3062
|
+
readonly id: v.StringSchema<undefined>;
|
|
3063
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
3064
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3065
|
+
}, undefined>, v.ObjectSchema<{
|
|
3066
|
+
readonly id: v.StringSchema<undefined>;
|
|
3067
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
3068
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3069
|
+
}, undefined>, v.ObjectSchema<{
|
|
3070
|
+
readonly id: v.StringSchema<undefined>;
|
|
3071
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
3072
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
3073
|
+
}, undefined>, v.ObjectSchema<{
|
|
3074
|
+
readonly id: v.StringSchema<undefined>;
|
|
3075
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
3076
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3077
|
+
readonly id: v.StringSchema<undefined>;
|
|
3078
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3079
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3080
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2793
3081
|
}, undefined>, v.ObjectSchema<{
|
|
2794
|
-
readonly
|
|
3082
|
+
readonly name: v.StringSchema<undefined>;
|
|
3083
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3084
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3085
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2795
3086
|
}, undefined>], undefined>, undefined>;
|
|
2796
3087
|
}, undefined>, v.ObjectSchema<{
|
|
2797
|
-
readonly
|
|
2798
|
-
readonly
|
|
2799
|
-
readonly
|
|
2800
|
-
|
|
2801
|
-
readonly
|
|
2802
|
-
readonly
|
|
2803
|
-
readonly
|
|
2804
|
-
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3088
|
+
readonly id: v.StringSchema<undefined>;
|
|
3089
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
3090
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3091
|
+
readonly id: v.StringSchema<undefined>;
|
|
3092
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3093
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3094
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2805
3095
|
}, undefined>, v.ObjectSchema<{
|
|
2806
|
-
readonly
|
|
3096
|
+
readonly name: v.StringSchema<undefined>;
|
|
3097
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3098
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3099
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2807
3100
|
}, undefined>], undefined>, undefined>;
|
|
2808
3101
|
}, undefined>, v.ObjectSchema<{
|
|
2809
|
-
readonly
|
|
2810
|
-
readonly
|
|
2811
|
-
readonly
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
readonly
|
|
2815
|
-
readonly
|
|
2816
|
-
readonly time: v.StringSchema<undefined>;
|
|
2817
|
-
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3102
|
+
readonly id: v.StringSchema<undefined>;
|
|
3103
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
3104
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3105
|
+
readonly id: v.StringSchema<undefined>;
|
|
3106
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3107
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3108
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2818
3109
|
}, undefined>, v.ObjectSchema<{
|
|
2819
|
-
readonly
|
|
2820
|
-
readonly
|
|
2821
|
-
|
|
2822
|
-
readonly
|
|
3110
|
+
readonly name: v.StringSchema<undefined>;
|
|
3111
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3112
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3113
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2823
3114
|
}, undefined>], undefined>, undefined>;
|
|
2824
3115
|
}, undefined>, v.ObjectSchema<{
|
|
2825
|
-
readonly
|
|
2826
|
-
readonly
|
|
2827
|
-
readonly
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
3116
|
+
readonly id: v.StringSchema<undefined>;
|
|
3117
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
3118
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
3119
|
+
readonly start: v.StringSchema<undefined>;
|
|
3120
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3121
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3122
|
+
}, undefined>, undefined>;
|
|
3123
|
+
}, undefined>, v.ObjectSchema<{
|
|
3124
|
+
readonly id: v.StringSchema<undefined>;
|
|
3125
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
3126
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3127
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
3128
|
+
readonly id: v.StringSchema<undefined>;
|
|
3129
|
+
}, undefined>, v.ObjectSchema<{
|
|
3130
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
3131
|
+
readonly id: v.StringSchema<undefined>;
|
|
3132
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3133
|
+
}, undefined>], undefined>, undefined>;
|
|
3134
|
+
}, undefined>, v.ObjectSchema<{
|
|
3135
|
+
readonly id: v.StringSchema<undefined>;
|
|
3136
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
3137
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
3138
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
3139
|
+
readonly id: v.StringSchema<undefined>;
|
|
3140
|
+
}, undefined>, undefined>;
|
|
3141
|
+
}, undefined>, v.ObjectSchema<{
|
|
3142
|
+
readonly id: v.StringSchema<undefined>;
|
|
3143
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
3144
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3145
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3146
|
+
readonly name: v.StringSchema<undefined>;
|
|
3147
|
+
readonly external: v.ObjectSchema<{
|
|
3148
|
+
readonly url: v.StringSchema<undefined>;
|
|
3149
|
+
}, undefined>;
|
|
3150
|
+
}, undefined>, v.ObjectSchema<{
|
|
3151
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3152
|
+
readonly name: v.StringSchema<undefined>;
|
|
3153
|
+
readonly file: v.ObjectSchema<{
|
|
3154
|
+
readonly url: v.StringSchema<undefined>;
|
|
3155
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3156
|
+
}, undefined>;
|
|
3157
|
+
}, undefined>], undefined>, undefined>;
|
|
3158
|
+
}, undefined>, v.ObjectSchema<{
|
|
3159
|
+
readonly id: v.StringSchema<undefined>;
|
|
3160
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
3161
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
3162
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
3163
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
3164
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3165
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3166
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3167
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3168
|
+
}, undefined>, undefined>;
|
|
3169
|
+
}, undefined>, v.ObjectSchema<{
|
|
3170
|
+
readonly id: v.StringSchema<undefined>;
|
|
3171
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
3172
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3173
|
+
}, undefined>, v.ObjectSchema<{
|
|
3174
|
+
readonly id: v.StringSchema<undefined>;
|
|
3175
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
3176
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3177
|
+
}, undefined>, v.ObjectSchema<{
|
|
3178
|
+
readonly id: v.StringSchema<undefined>;
|
|
3179
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
3180
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
3181
|
+
readonly id: v.StringSchema<undefined>;
|
|
3182
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3183
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3184
|
+
}, undefined>, undefined>;
|
|
3185
|
+
}, undefined>, v.ObjectSchema<{
|
|
3186
|
+
readonly id: v.StringSchema<undefined>;
|
|
3187
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
3188
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
3189
|
+
readonly id: v.StringSchema<undefined>;
|
|
3190
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3191
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3192
|
+
}, undefined>, undefined>;
|
|
3193
|
+
}, undefined>, v.ObjectSchema<{
|
|
3194
|
+
readonly id: v.StringSchema<undefined>;
|
|
3195
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3196
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3197
|
+
}, undefined>], undefined>, undefined>;
|
|
3198
|
+
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3199
|
+
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3200
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3201
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
3202
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
3203
|
+
}, undefined>, v.ObjectSchema<{
|
|
3204
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
3205
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
3206
|
+
readonly id: v.StringSchema<undefined>;
|
|
3207
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3208
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3209
|
+
}, undefined>;
|
|
3210
|
+
}, undefined>, v.ObjectSchema<{
|
|
3211
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3212
|
+
readonly external: v.ObjectSchema<{
|
|
3213
|
+
readonly url: v.StringSchema<undefined>;
|
|
3214
|
+
}, undefined>;
|
|
3215
|
+
}, undefined>, v.ObjectSchema<{
|
|
3216
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3217
|
+
readonly file: v.ObjectSchema<{
|
|
3218
|
+
readonly url: v.StringSchema<undefined>;
|
|
3219
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3220
|
+
}, undefined>;
|
|
3221
|
+
}, undefined>], undefined>, undefined>;
|
|
3222
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3223
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3224
|
+
readonly external: v.ObjectSchema<{
|
|
3225
|
+
readonly url: v.StringSchema<undefined>;
|
|
3226
|
+
}, undefined>;
|
|
3227
|
+
}, undefined>, v.ObjectSchema<{
|
|
3228
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3229
|
+
readonly file: v.ObjectSchema<{
|
|
3230
|
+
readonly url: v.StringSchema<undefined>;
|
|
3231
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3232
|
+
}, undefined>;
|
|
3233
|
+
}, undefined>], undefined>, undefined>;
|
|
3234
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3235
|
+
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3236
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
3237
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
3238
|
+
}, undefined>], undefined>;
|
|
3239
|
+
}, undefined>, v.ObjectSchema<{
|
|
3240
|
+
readonly type: v.LiteralSchema<"createPageResult", undefined>;
|
|
3241
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
3242
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
3243
|
+
readonly error: v.ObjectSchema<{
|
|
3244
|
+
readonly code: v.StringSchema<undefined>;
|
|
3245
|
+
readonly message: v.StringSchema<undefined>;
|
|
3246
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
3247
|
+
}, undefined>;
|
|
3248
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
3249
|
+
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
3250
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
3251
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
3252
|
+
readonly page: v.UnionSchema<[v.ObjectSchema<{
|
|
3253
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
3254
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
3255
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3256
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
3257
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
3258
|
+
}, undefined>, v.ObjectSchema<{
|
|
3259
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
3260
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
3261
|
+
}, undefined>, v.ObjectSchema<{
|
|
3262
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
3263
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
3264
|
+
}, undefined>, v.ObjectSchema<{
|
|
3265
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
3266
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
3267
|
+
}, undefined>, v.ObjectSchema<{
|
|
3268
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
3269
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
3270
|
+
}, undefined>, v.ObjectSchema<{
|
|
3271
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
3272
|
+
}, undefined>], undefined>;
|
|
3273
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3274
|
+
readonly id: v.StringSchema<undefined>;
|
|
3275
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
3276
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
3277
|
+
}, undefined>, v.ObjectSchema<{
|
|
3278
|
+
readonly id: v.StringSchema<undefined>;
|
|
3279
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
3280
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
3281
|
+
}, undefined>, v.ObjectSchema<{
|
|
3282
|
+
readonly id: v.StringSchema<undefined>;
|
|
3283
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
3284
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
3285
|
+
}, undefined>, v.ObjectSchema<{
|
|
3286
|
+
readonly id: v.StringSchema<undefined>;
|
|
3287
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
3288
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3289
|
+
}, undefined>, v.ObjectSchema<{
|
|
3290
|
+
readonly id: v.StringSchema<undefined>;
|
|
3291
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
3292
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3293
|
+
}, undefined>, v.ObjectSchema<{
|
|
3294
|
+
readonly id: v.StringSchema<undefined>;
|
|
3295
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
3296
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3297
|
+
}, undefined>, v.ObjectSchema<{
|
|
3298
|
+
readonly id: v.StringSchema<undefined>;
|
|
3299
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
3300
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
3301
|
+
}, undefined>, v.ObjectSchema<{
|
|
3302
|
+
readonly id: v.StringSchema<undefined>;
|
|
3303
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
3304
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3305
|
+
readonly id: v.StringSchema<undefined>;
|
|
3306
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3307
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3308
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3309
|
+
}, undefined>, v.ObjectSchema<{
|
|
3310
|
+
readonly name: v.StringSchema<undefined>;
|
|
3311
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3312
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3313
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3314
|
+
}, undefined>], undefined>, undefined>;
|
|
3315
|
+
}, undefined>, v.ObjectSchema<{
|
|
3316
|
+
readonly id: v.StringSchema<undefined>;
|
|
3317
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
3318
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3319
|
+
readonly id: v.StringSchema<undefined>;
|
|
3320
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3321
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3322
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3323
|
+
}, undefined>, v.ObjectSchema<{
|
|
3324
|
+
readonly name: v.StringSchema<undefined>;
|
|
3325
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3326
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3327
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3328
|
+
}, undefined>], undefined>, undefined>;
|
|
3329
|
+
}, undefined>, v.ObjectSchema<{
|
|
3330
|
+
readonly id: v.StringSchema<undefined>;
|
|
3331
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
3332
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3333
|
+
readonly id: v.StringSchema<undefined>;
|
|
3334
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3335
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3336
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3337
|
+
}, undefined>, v.ObjectSchema<{
|
|
3338
|
+
readonly name: v.StringSchema<undefined>;
|
|
3339
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3340
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3341
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3342
|
+
}, undefined>], undefined>, undefined>;
|
|
3343
|
+
}, undefined>, v.ObjectSchema<{
|
|
3344
|
+
readonly id: v.StringSchema<undefined>;
|
|
3345
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
3346
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
3347
|
+
readonly start: v.StringSchema<undefined>;
|
|
3348
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3349
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3350
|
+
}, undefined>, undefined>;
|
|
3351
|
+
}, undefined>, v.ObjectSchema<{
|
|
3352
|
+
readonly id: v.StringSchema<undefined>;
|
|
3353
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
3354
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3355
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
3356
|
+
readonly id: v.StringSchema<undefined>;
|
|
3357
|
+
}, undefined>, v.ObjectSchema<{
|
|
3358
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
3359
|
+
readonly id: v.StringSchema<undefined>;
|
|
3360
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3361
|
+
}, undefined>], undefined>, undefined>;
|
|
3362
|
+
}, undefined>, v.ObjectSchema<{
|
|
3363
|
+
readonly id: v.StringSchema<undefined>;
|
|
3364
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
3365
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
3366
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
3367
|
+
readonly id: v.StringSchema<undefined>;
|
|
3368
|
+
}, undefined>, undefined>;
|
|
3369
|
+
}, undefined>, v.ObjectSchema<{
|
|
3370
|
+
readonly id: v.StringSchema<undefined>;
|
|
3371
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
3372
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3373
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3374
|
+
readonly name: v.StringSchema<undefined>;
|
|
3375
|
+
readonly external: v.ObjectSchema<{
|
|
3376
|
+
readonly url: v.StringSchema<undefined>;
|
|
3377
|
+
}, undefined>;
|
|
3378
|
+
}, undefined>, v.ObjectSchema<{
|
|
3379
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3380
|
+
readonly name: v.StringSchema<undefined>;
|
|
3381
|
+
readonly file: v.ObjectSchema<{
|
|
3382
|
+
readonly url: v.StringSchema<undefined>;
|
|
3383
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3384
|
+
}, undefined>;
|
|
3385
|
+
}, undefined>], undefined>, undefined>;
|
|
3386
|
+
}, undefined>, v.ObjectSchema<{
|
|
3387
|
+
readonly id: v.StringSchema<undefined>;
|
|
3388
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
3389
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
3390
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
3391
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
3392
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3393
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3394
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3395
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3396
|
+
}, undefined>, undefined>;
|
|
3397
|
+
}, undefined>, v.ObjectSchema<{
|
|
3398
|
+
readonly id: v.StringSchema<undefined>;
|
|
3399
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
3400
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3401
|
+
}, undefined>, v.ObjectSchema<{
|
|
3402
|
+
readonly id: v.StringSchema<undefined>;
|
|
3403
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
3404
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3405
|
+
}, undefined>, v.ObjectSchema<{
|
|
3406
|
+
readonly id: v.StringSchema<undefined>;
|
|
3407
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
3408
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
3409
|
+
readonly id: v.StringSchema<undefined>;
|
|
3410
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3411
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3412
|
+
}, undefined>, undefined>;
|
|
3413
|
+
}, undefined>, v.ObjectSchema<{
|
|
3414
|
+
readonly id: v.StringSchema<undefined>;
|
|
3415
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
3416
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
3417
|
+
readonly id: v.StringSchema<undefined>;
|
|
3418
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3419
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3420
|
+
}, undefined>, undefined>;
|
|
3421
|
+
}, undefined>, v.ObjectSchema<{
|
|
3422
|
+
readonly id: v.StringSchema<undefined>;
|
|
3423
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3424
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3425
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
3426
|
+
readonly created_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3427
|
+
readonly id: v.StringSchema<undefined>;
|
|
3428
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3429
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3430
|
+
}, undefined>, undefined>, null>;
|
|
3431
|
+
readonly last_edited_by: v.OptionalSchema<v.NullableSchema<v.ObjectSchema<{
|
|
3432
|
+
readonly id: v.StringSchema<undefined>;
|
|
3433
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3434
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3435
|
+
}, undefined>, undefined>, null>;
|
|
3436
|
+
readonly last_visited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3437
|
+
readonly created_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3438
|
+
readonly last_edited_time: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3439
|
+
readonly icon: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3440
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
3441
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
3442
|
+
}, undefined>, v.ObjectSchema<{
|
|
3443
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
3444
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
3445
|
+
readonly id: v.StringSchema<undefined>;
|
|
3446
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3447
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3448
|
+
}, undefined>;
|
|
3449
|
+
}, undefined>, v.ObjectSchema<{
|
|
3450
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3451
|
+
readonly external: v.ObjectSchema<{
|
|
3452
|
+
readonly url: v.StringSchema<undefined>;
|
|
3453
|
+
}, undefined>;
|
|
3454
|
+
}, undefined>, v.ObjectSchema<{
|
|
3455
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3456
|
+
readonly file: v.ObjectSchema<{
|
|
3457
|
+
readonly url: v.StringSchema<undefined>;
|
|
3458
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3459
|
+
}, undefined>;
|
|
3460
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
3461
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3462
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3463
|
+
readonly external: v.ObjectSchema<{
|
|
3464
|
+
readonly url: v.StringSchema<undefined>;
|
|
3465
|
+
}, undefined>;
|
|
3466
|
+
}, undefined>, v.ObjectSchema<{
|
|
3467
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3468
|
+
readonly file: v.ObjectSchema<{
|
|
3469
|
+
readonly url: v.StringSchema<undefined>;
|
|
3470
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3471
|
+
}, undefined>;
|
|
3472
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
3473
|
+
readonly url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3474
|
+
readonly public_url: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, null>;
|
|
3475
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
3476
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
3477
|
+
}, undefined>, v.ObjectSchema<{
|
|
3478
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
3479
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
3480
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3481
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
3482
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
3483
|
+
}, undefined>, v.ObjectSchema<{
|
|
3484
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
3485
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
3486
|
+
}, undefined>, v.ObjectSchema<{
|
|
3487
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
3488
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
3489
|
+
}, undefined>, v.ObjectSchema<{
|
|
3490
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
3491
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
3492
|
+
}, undefined>, v.ObjectSchema<{
|
|
3493
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
3494
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
3495
|
+
}, undefined>, v.ObjectSchema<{
|
|
3496
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
3497
|
+
}, undefined>], undefined>;
|
|
3498
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3499
|
+
readonly id: v.StringSchema<undefined>;
|
|
3500
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
3501
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
3502
|
+
}, undefined>, v.ObjectSchema<{
|
|
3503
|
+
readonly id: v.StringSchema<undefined>;
|
|
3504
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
3505
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
3506
|
+
}, undefined>, v.ObjectSchema<{
|
|
3507
|
+
readonly id: v.StringSchema<undefined>;
|
|
3508
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
3509
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
3510
|
+
}, undefined>, v.ObjectSchema<{
|
|
3511
|
+
readonly id: v.StringSchema<undefined>;
|
|
3512
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
3513
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3514
|
+
}, undefined>, v.ObjectSchema<{
|
|
3515
|
+
readonly id: v.StringSchema<undefined>;
|
|
3516
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
3517
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3518
|
+
}, undefined>, v.ObjectSchema<{
|
|
3519
|
+
readonly id: v.StringSchema<undefined>;
|
|
3520
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
3521
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3522
|
+
}, undefined>, v.ObjectSchema<{
|
|
3523
|
+
readonly id: v.StringSchema<undefined>;
|
|
3524
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
3525
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
3526
|
+
}, undefined>, v.ObjectSchema<{
|
|
3527
|
+
readonly id: v.StringSchema<undefined>;
|
|
3528
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
3529
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3530
|
+
readonly id: v.StringSchema<undefined>;
|
|
3531
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3532
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3533
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2836
3534
|
}, undefined>, v.ObjectSchema<{
|
|
2837
|
-
readonly
|
|
2838
|
-
readonly
|
|
2839
|
-
|
|
2840
|
-
readonly
|
|
3535
|
+
readonly name: v.StringSchema<undefined>;
|
|
3536
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3537
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3538
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2841
3539
|
}, undefined>], undefined>, undefined>;
|
|
2842
|
-
}, undefined
|
|
3540
|
+
}, undefined>, v.ObjectSchema<{
|
|
2843
3541
|
readonly id: v.StringSchema<undefined>;
|
|
2844
|
-
readonly
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
3542
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
3543
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3544
|
+
readonly id: v.StringSchema<undefined>;
|
|
3545
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3546
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3547
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3548
|
+
}, undefined>, v.ObjectSchema<{
|
|
3549
|
+
readonly name: v.StringSchema<undefined>;
|
|
3550
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3551
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3552
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3553
|
+
}, undefined>], undefined>, undefined>;
|
|
3554
|
+
}, undefined>, v.ObjectSchema<{
|
|
3555
|
+
readonly id: v.StringSchema<undefined>;
|
|
3556
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
3557
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3558
|
+
readonly id: v.StringSchema<undefined>;
|
|
3559
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3560
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3561
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3562
|
+
}, undefined>, v.ObjectSchema<{
|
|
3563
|
+
readonly name: v.StringSchema<undefined>;
|
|
3564
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3565
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3566
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3567
|
+
}, undefined>], undefined>, undefined>;
|
|
3568
|
+
}, undefined>, v.ObjectSchema<{
|
|
3569
|
+
readonly id: v.StringSchema<undefined>;
|
|
3570
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
3571
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
3572
|
+
readonly start: v.StringSchema<undefined>;
|
|
3573
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3574
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3575
|
+
}, undefined>, undefined>;
|
|
3576
|
+
}, undefined>, v.ObjectSchema<{
|
|
3577
|
+
readonly id: v.StringSchema<undefined>;
|
|
3578
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
3579
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3580
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
3581
|
+
readonly id: v.StringSchema<undefined>;
|
|
3582
|
+
}, undefined>, v.ObjectSchema<{
|
|
3583
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
3584
|
+
readonly id: v.StringSchema<undefined>;
|
|
3585
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3586
|
+
}, undefined>], undefined>, undefined>;
|
|
3587
|
+
}, undefined>, v.ObjectSchema<{
|
|
3588
|
+
readonly id: v.StringSchema<undefined>;
|
|
3589
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
3590
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
3591
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
3592
|
+
readonly id: v.StringSchema<undefined>;
|
|
3593
|
+
}, undefined>, undefined>;
|
|
3594
|
+
}, undefined>, v.ObjectSchema<{
|
|
3595
|
+
readonly id: v.StringSchema<undefined>;
|
|
3596
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
3597
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
3598
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3599
|
+
readonly name: v.StringSchema<undefined>;
|
|
3600
|
+
readonly external: v.ObjectSchema<{
|
|
3601
|
+
readonly url: v.StringSchema<undefined>;
|
|
3602
|
+
}, undefined>;
|
|
3603
|
+
}, undefined>, v.ObjectSchema<{
|
|
3604
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3605
|
+
readonly name: v.StringSchema<undefined>;
|
|
3606
|
+
readonly file: v.ObjectSchema<{
|
|
3607
|
+
readonly url: v.StringSchema<undefined>;
|
|
3608
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3609
|
+
}, undefined>;
|
|
3610
|
+
}, undefined>], undefined>, undefined>;
|
|
3611
|
+
}, undefined>, v.ObjectSchema<{
|
|
3612
|
+
readonly id: v.StringSchema<undefined>;
|
|
3613
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
3614
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
3615
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
3616
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
3617
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3618
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3619
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3620
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
3621
|
+
}, undefined>, undefined>;
|
|
3622
|
+
}, undefined>, v.ObjectSchema<{
|
|
3623
|
+
readonly id: v.StringSchema<undefined>;
|
|
3624
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
3625
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3626
|
+
}, undefined>, v.ObjectSchema<{
|
|
3627
|
+
readonly id: v.StringSchema<undefined>;
|
|
3628
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
3629
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3630
|
+
}, undefined>, v.ObjectSchema<{
|
|
3631
|
+
readonly id: v.StringSchema<undefined>;
|
|
3632
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
3633
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
3634
|
+
readonly id: v.StringSchema<undefined>;
|
|
3635
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3636
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3637
|
+
}, undefined>, undefined>;
|
|
3638
|
+
}, undefined>, v.ObjectSchema<{
|
|
3639
|
+
readonly id: v.StringSchema<undefined>;
|
|
3640
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
3641
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
3642
|
+
readonly id: v.StringSchema<undefined>;
|
|
3643
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
3644
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3645
|
+
}, undefined>, undefined>;
|
|
3646
|
+
}, undefined>, v.ObjectSchema<{
|
|
3647
|
+
readonly id: v.StringSchema<undefined>;
|
|
3648
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
3649
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
3650
|
+
}, undefined>], undefined>, undefined>;
|
|
3651
|
+
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3652
|
+
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3653
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3654
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
3655
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
3656
|
+
}, undefined>, v.ObjectSchema<{
|
|
3657
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
3658
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
3659
|
+
readonly id: v.StringSchema<undefined>;
|
|
3660
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3661
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3662
|
+
}, undefined>;
|
|
3663
|
+
}, undefined>, v.ObjectSchema<{
|
|
3664
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3665
|
+
readonly external: v.ObjectSchema<{
|
|
3666
|
+
readonly url: v.StringSchema<undefined>;
|
|
3667
|
+
}, undefined>;
|
|
3668
|
+
}, undefined>, v.ObjectSchema<{
|
|
3669
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3670
|
+
readonly file: v.ObjectSchema<{
|
|
3671
|
+
readonly url: v.StringSchema<undefined>;
|
|
3672
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3673
|
+
}, undefined>;
|
|
3674
|
+
}, undefined>], undefined>, undefined>;
|
|
3675
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
3676
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
3677
|
+
readonly external: v.ObjectSchema<{
|
|
3678
|
+
readonly url: v.StringSchema<undefined>;
|
|
3679
|
+
}, undefined>;
|
|
3680
|
+
}, undefined>, v.ObjectSchema<{
|
|
3681
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
3682
|
+
readonly file: v.ObjectSchema<{
|
|
3683
|
+
readonly url: v.StringSchema<undefined>;
|
|
3684
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3685
|
+
}, undefined>;
|
|
3686
|
+
}, undefined>], undefined>, undefined>;
|
|
3687
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3688
|
+
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
3689
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
3690
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
3691
|
+
}, undefined>], undefined>;
|
|
2848
3692
|
}, undefined>, v.ObjectSchema<{
|
|
2849
|
-
readonly type: v.LiteralSchema<"
|
|
2850
|
-
readonly
|
|
3693
|
+
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
3694
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2851
3695
|
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2852
3696
|
readonly error: v.ObjectSchema<{
|
|
2853
3697
|
readonly code: v.StringSchema<undefined>;
|