@notionhq/custom-blocks 0.2.23 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -5
- package/dist/bridge/SandboxBridge.d.ts +15 -14
- package/dist/bridge/SandboxBridge.d.ts.map +1 -1
- package/dist/bridge/SandboxBridge.js +117 -35
- package/dist/bridge/dataSources/resolve.d.ts +1 -3
- package/dist/bridge/dataSources/resolve.d.ts.map +1 -1
- package/dist/bridge/dataSources/resolve.js +1 -11
- package/dist/bridge/dataSources/resolveProperty.d.ts +3 -3
- package/dist/bridge/dataSources/resolveProperty.d.ts.map +1 -1
- package/dist/bridge/dataSources/resolveProperty.js +1 -1
- package/dist/bridge/dataSources/subscribe.d.ts +2 -1
- package/dist/bridge/dataSources/subscribe.d.ts.map +1 -1
- package/dist/bridge/dataSources/subscribe.js +6 -1
- package/dist/bridge/hostState.d.ts +11 -39
- package/dist/bridge/hostState.d.ts.map +1 -1
- package/dist/bridge/hostState.js +5 -50
- package/dist/bridge/page.d.ts +14 -0
- package/dist/bridge/page.d.ts.map +1 -0
- package/dist/bridge/page.js +59 -0
- package/dist/bridge/sandboxClient.d.ts +8 -14
- package/dist/bridge/sandboxClient.d.ts.map +1 -1
- package/dist/bridge/sandboxClient.js +13 -21
- package/dist/dataSources.d.ts +8 -0
- package/dist/dataSources.d.ts.map +1 -0
- package/dist/dataSources.js +103 -0
- package/dist/index.d.ts +6 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/protocol/dataSources/dataSourcePage.d.ts +3 -5
- package/dist/protocol/dataSources/dataSourcePage.js +2 -3
- package/dist/protocol/dataSources/propertySchema.d.ts +1 -0
- package/dist/protocol/index.d.ts +1 -0
- package/dist/protocol/index.js +1 -0
- package/dist/protocol/messages/createPage.d.ts +28 -0
- package/dist/protocol/messages/createPageResult.d.ts +496 -1
- package/dist/protocol/messages/createPageResult.js +17 -2
- package/dist/protocol/messages/getPage.d.ts +496 -1
- package/dist/protocol/messages/getPage.js +18 -3
- package/dist/protocol/messages/hostToSandbox.d.ts +2647 -154
- package/dist/protocol/messages/hostToSandbox.js +24 -12
- package/dist/protocol/messages/openExternalUrl.d.ts +32 -0
- package/dist/protocol/messages/openExternalUrl.js +26 -0
- package/dist/protocol/messages/queryDataSourceResult.d.ts +468 -1
- package/dist/protocol/messages/queryDataSourceResult.js +18 -2
- package/dist/protocol/messages/sandboxToHost.d.ts +62 -0
- package/dist/protocol/messages/sandboxToHost.js +2 -0
- package/dist/protocol/messages/updatePage.d.ts +29 -0
- package/dist/protocol/messages/updatePage.js +2 -1
- package/dist/protocol/messages/updatePageResult.d.ts +495 -1
- package/dist/protocol/messages/updatePageResult.js +16 -2
- package/dist/protocol/pages/page.d.ts +470 -3
- package/dist/protocol/pages/page.js +53 -1
- package/dist/protocol/protocolVersion.d.ts +2 -1
- package/dist/protocol/protocolVersion.js +4 -1
- package/dist/react/useDataSource.d.ts +1 -1
- package/dist/react/useDataSource.d.ts.map +1 -1
- package/dist/react/useDataSource.js +1 -3
- package/dist/types.d.ts +55 -96
- package/dist/types.d.ts.map +1 -1
- package/dist/version.js +1 -1
- package/docs/block-location.md +3 -3
- package/docs/data-sources.md +159 -122
- package/docs/errors.md +9 -9
- package/docs/links.md +44 -0
- package/docs/pages.md +121 -191
- package/package.json +1 -1
- package/src/bridge/SandboxBridge.ts +189 -62
- package/src/bridge/dataSources/resolve.ts +1 -20
- package/src/bridge/dataSources/resolveProperty.ts +4 -4
- package/src/bridge/dataSources/subscribe.ts +10 -5
- package/src/bridge/hostState.ts +21 -100
- package/src/bridge/page.ts +90 -0
- package/src/bridge/sandboxClient.ts +15 -25
- package/src/dataSources.ts +140 -0
- package/src/index.ts +9 -19
- package/src/react/useDataSource.ts +1 -3
- package/src/types.ts +61 -109
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
-
/**
|
|
3
|
-
* Discriminated union of every message the host is allowed to send the sandbox.
|
|
4
|
-
*/
|
|
5
2
|
export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.VariantSchema<"status", [v.ObjectSchema<{
|
|
6
3
|
readonly type: v.LiteralSchema<"init", undefined>;
|
|
7
4
|
readonly initializationId: v.StringSchema<undefined>;
|
|
@@ -457,79 +454,22 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
457
454
|
}, undefined>, undefined>;
|
|
458
455
|
}, undefined>;
|
|
459
456
|
}, undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
460
|
-
readonly type: v.LiteralSchema<"
|
|
461
|
-
readonly
|
|
457
|
+
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
458
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
462
459
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
463
|
-
readonly
|
|
464
|
-
readonly
|
|
465
|
-
readonly
|
|
466
|
-
readonly
|
|
467
|
-
readonly
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
readonly
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
readonly time: v.StringSchema<undefined>;
|
|
474
|
-
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
475
|
-
}, undefined>, v.ObjectSchema<{
|
|
476
|
-
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
477
|
-
}, undefined>], undefined>, undefined>;
|
|
478
|
-
}, undefined>, v.ObjectSchema<{
|
|
479
|
-
readonly type: v.LiteralSchema<"daterange", undefined>;
|
|
480
|
-
readonly start_date: v.StringSchema<undefined>;
|
|
481
|
-
readonly end_date: v.StringSchema<undefined>;
|
|
482
|
-
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
483
|
-
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
484
|
-
readonly value: v.NumberSchema<undefined>;
|
|
485
|
-
readonly time: v.StringSchema<undefined>;
|
|
486
|
-
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
487
|
-
}, undefined>, v.ObjectSchema<{
|
|
488
|
-
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
489
|
-
}, undefined>], undefined>, undefined>;
|
|
490
|
-
}, undefined>, v.ObjectSchema<{
|
|
491
|
-
readonly type: v.LiteralSchema<"datetime", undefined>;
|
|
492
|
-
readonly start_date: v.StringSchema<undefined>;
|
|
493
|
-
readonly start_time: v.StringSchema<undefined>;
|
|
494
|
-
readonly time_zone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
495
|
-
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
496
|
-
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
497
|
-
readonly value: v.NumberSchema<undefined>;
|
|
498
|
-
readonly time: v.StringSchema<undefined>;
|
|
499
|
-
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
500
|
-
}, undefined>, v.ObjectSchema<{
|
|
501
|
-
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
502
|
-
readonly value: v.NumberSchema<undefined>;
|
|
503
|
-
}, undefined>], undefined>, v.ObjectSchema<{
|
|
504
|
-
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
505
|
-
}, undefined>], undefined>, undefined>;
|
|
506
|
-
}, undefined>, v.ObjectSchema<{
|
|
507
|
-
readonly type: v.LiteralSchema<"datetimerange", undefined>;
|
|
508
|
-
readonly start_date: v.StringSchema<undefined>;
|
|
509
|
-
readonly start_time: v.StringSchema<undefined>;
|
|
510
|
-
readonly end_date: v.StringSchema<undefined>;
|
|
511
|
-
readonly end_time: v.StringSchema<undefined>;
|
|
512
|
-
readonly time_zone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
513
|
-
readonly reminder: v.OptionalSchema<v.UnionSchema<[v.UnionSchema<[v.ObjectSchema<{
|
|
514
|
-
readonly unit: v.PicklistSchema<["year", "month", "week", "day"], undefined>;
|
|
515
|
-
readonly value: v.NumberSchema<undefined>;
|
|
516
|
-
readonly time: v.StringSchema<undefined>;
|
|
517
|
-
readonly defaultTimeZone: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
518
|
-
}, undefined>, v.ObjectSchema<{
|
|
519
|
-
readonly unit: v.PicklistSchema<["hour", "minute"], undefined>;
|
|
520
|
-
readonly value: v.NumberSchema<undefined>;
|
|
521
|
-
}, undefined>], undefined>, v.ObjectSchema<{
|
|
522
|
-
readonly unit: v.LiteralSchema<"none", undefined>;
|
|
523
|
-
}, undefined>], undefined>, undefined>;
|
|
524
|
-
}, undefined>], undefined>, v.ArraySchema<v.StringSchema<undefined>, undefined>, v.ArraySchema<v.ObjectSchema<{
|
|
525
|
-
readonly id: v.StringSchema<undefined>;
|
|
526
|
-
readonly table: v.StringSchema<undefined>;
|
|
527
|
-
}, undefined>, undefined>], undefined>, undefined>, undefined>;
|
|
528
|
-
}, undefined>, undefined>;
|
|
529
|
-
readonly hasMore: v.BooleanSchema<undefined>;
|
|
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>;
|
|
530
470
|
}, undefined>, v.ObjectSchema<{
|
|
531
|
-
readonly type: v.LiteralSchema<"
|
|
532
|
-
readonly
|
|
471
|
+
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
472
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
533
473
|
readonly status: v.LiteralSchema<"error", undefined>;
|
|
534
474
|
readonly error: v.ObjectSchema<{
|
|
535
475
|
readonly code: v.StringSchema<undefined>;
|
|
@@ -537,10 +477,70 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
537
477
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
538
478
|
}, undefined>;
|
|
539
479
|
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
540
|
-
readonly type: v.LiteralSchema<"
|
|
480
|
+
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
541
481
|
readonly requestId: v.StringSchema<undefined>;
|
|
542
482
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
543
|
-
readonly
|
|
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<{
|
|
544
544
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
545
545
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
546
546
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -561,7 +561,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
561
561
|
}, undefined>, v.ObjectSchema<{
|
|
562
562
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
563
563
|
}, undefined>], undefined>;
|
|
564
|
-
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<{
|
|
565
565
|
readonly id: v.StringSchema<undefined>;
|
|
566
566
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
567
567
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -685,10 +685,49 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
685
685
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
686
686
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
687
687
|
}, undefined>, undefined>;
|
|
688
|
-
}, undefined
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
688
|
+
}, undefined>, v.ObjectSchema<{
|
|
689
|
+
readonly id: v.StringSchema<undefined>;
|
|
690
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
691
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
692
|
+
}, undefined>, v.ObjectSchema<{
|
|
693
|
+
readonly id: v.StringSchema<undefined>;
|
|
694
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
695
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
696
|
+
}, undefined>, v.ObjectSchema<{
|
|
697
|
+
readonly id: v.StringSchema<undefined>;
|
|
698
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
699
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
700
|
+
readonly id: v.StringSchema<undefined>;
|
|
701
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
702
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
703
|
+
}, undefined>, undefined>;
|
|
704
|
+
}, undefined>, v.ObjectSchema<{
|
|
705
|
+
readonly id: v.StringSchema<undefined>;
|
|
706
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
707
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
708
|
+
readonly id: v.StringSchema<undefined>;
|
|
709
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
710
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
711
|
+
}, undefined>, undefined>;
|
|
712
|
+
}, undefined>, v.ObjectSchema<{
|
|
713
|
+
readonly id: v.StringSchema<undefined>;
|
|
714
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
715
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
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<{
|
|
692
731
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
693
732
|
readonly emoji: v.StringSchema<undefined>;
|
|
694
733
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -709,8 +748,8 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
709
748
|
readonly url: v.StringSchema<undefined>;
|
|
710
749
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
711
750
|
}, undefined>;
|
|
712
|
-
}, undefined>], undefined>, undefined>;
|
|
713
|
-
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<{
|
|
714
753
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
715
754
|
readonly external: v.ObjectSchema<{
|
|
716
755
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -721,15 +760,16 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
721
760
|
readonly url: v.StringSchema<undefined>;
|
|
722
761
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
723
762
|
}, undefined>;
|
|
724
|
-
}, undefined>], undefined>, undefined>;
|
|
725
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
726
|
-
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>;
|
|
727
766
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
728
767
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
729
|
-
}, undefined>;
|
|
768
|
+
}, undefined>, undefined>;
|
|
769
|
+
readonly hasMore: v.BooleanSchema<undefined>;
|
|
730
770
|
}, undefined>, v.ObjectSchema<{
|
|
731
|
-
readonly type: v.LiteralSchema<"
|
|
732
|
-
readonly
|
|
771
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
772
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
733
773
|
readonly status: v.LiteralSchema<"error", undefined>;
|
|
734
774
|
readonly error: v.ObjectSchema<{
|
|
735
775
|
readonly code: v.StringSchema<undefined>;
|
|
@@ -761,7 +801,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
761
801
|
}, undefined>, v.ObjectSchema<{
|
|
762
802
|
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
763
803
|
}, undefined>], undefined>;
|
|
764
|
-
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<{
|
|
765
805
|
readonly id: v.StringSchema<undefined>;
|
|
766
806
|
readonly type: v.LiteralSchema<"title", undefined>;
|
|
767
807
|
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
@@ -885,10 +925,49 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
885
925
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
886
926
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
887
927
|
}, undefined>, undefined>;
|
|
888
|
-
}, undefined
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
928
|
+
}, undefined>, v.ObjectSchema<{
|
|
929
|
+
readonly id: v.StringSchema<undefined>;
|
|
930
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
931
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
932
|
+
}, undefined>, v.ObjectSchema<{
|
|
933
|
+
readonly id: v.StringSchema<undefined>;
|
|
934
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
935
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
936
|
+
}, undefined>, v.ObjectSchema<{
|
|
937
|
+
readonly id: v.StringSchema<undefined>;
|
|
938
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
939
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
940
|
+
readonly id: v.StringSchema<undefined>;
|
|
941
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
942
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
943
|
+
}, undefined>, undefined>;
|
|
944
|
+
}, undefined>, v.ObjectSchema<{
|
|
945
|
+
readonly id: v.StringSchema<undefined>;
|
|
946
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
947
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
948
|
+
readonly id: v.StringSchema<undefined>;
|
|
949
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
950
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
951
|
+
}, undefined>, undefined>;
|
|
952
|
+
}, undefined>, v.ObjectSchema<{
|
|
953
|
+
readonly id: v.StringSchema<undefined>;
|
|
954
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
955
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
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<{
|
|
892
971
|
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
893
972
|
readonly emoji: v.StringSchema<undefined>;
|
|
894
973
|
}, undefined>, v.ObjectSchema<{
|
|
@@ -909,8 +988,8 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
909
988
|
readonly url: v.StringSchema<undefined>;
|
|
910
989
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
911
990
|
}, undefined>;
|
|
912
|
-
}, undefined>], undefined>, undefined>;
|
|
913
|
-
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<{
|
|
914
993
|
readonly type: v.LiteralSchema<"external", undefined>;
|
|
915
994
|
readonly external: v.ObjectSchema<{
|
|
916
995
|
readonly url: v.StringSchema<undefined>;
|
|
@@ -921,9 +1000,9 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
921
1000
|
readonly url: v.StringSchema<undefined>;
|
|
922
1001
|
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
923
1002
|
}, undefined>;
|
|
924
|
-
}, undefined>], undefined>, undefined>;
|
|
925
|
-
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
926
|
-
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>;
|
|
927
1006
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
928
1007
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
929
1008
|
}, undefined>;
|
|
@@ -937,65 +1016,2228 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
937
1016
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
938
1017
|
}, undefined>;
|
|
939
1018
|
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
940
|
-
readonly type: v.LiteralSchema<"
|
|
941
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
942
|
-
readonly status: v.LiteralSchema<"success", undefined>;
|
|
943
|
-
readonly user: v.ObjectSchema<{
|
|
944
|
-
readonly object: v.LiteralSchema<"user", undefined>;
|
|
945
|
-
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
946
|
-
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
947
|
-
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
948
|
-
readonly type: v.LiteralSchema<"person", undefined>;
|
|
949
|
-
readonly person: v.ObjectSchema<{
|
|
950
|
-
readonly email: v.StringSchema<undefined>;
|
|
951
|
-
}, undefined>;
|
|
952
|
-
}, undefined>;
|
|
953
|
-
}, undefined>, v.ObjectSchema<{
|
|
954
|
-
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
955
|
-
readonly requestId: v.StringSchema<undefined>;
|
|
956
|
-
readonly status: v.LiteralSchema<"error", undefined>;
|
|
957
|
-
readonly error: v.ObjectSchema<{
|
|
958
|
-
readonly code: v.StringSchema<undefined>;
|
|
959
|
-
readonly message: v.StringSchema<undefined>;
|
|
960
|
-
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
961
|
-
}, undefined>;
|
|
962
|
-
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
963
|
-
readonly type: v.LiteralSchema<"listUsersResult", undefined>;
|
|
1019
|
+
readonly type: v.LiteralSchema<"createPageResult", undefined>;
|
|
964
1020
|
readonly requestId: v.StringSchema<undefined>;
|
|
965
1021
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
966
|
-
readonly
|
|
967
|
-
readonly object: v.LiteralSchema<"
|
|
968
|
-
readonly
|
|
969
|
-
|
|
970
|
-
readonly
|
|
971
|
-
readonly
|
|
972
|
-
|
|
973
|
-
readonly type: v.LiteralSchema<"
|
|
974
|
-
readonly
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
1022
|
+
readonly page: v.ObjectSchema<{
|
|
1023
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
1024
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1025
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1026
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1027
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1028
|
+
}, undefined>, v.ObjectSchema<{
|
|
1029
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1030
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1031
|
+
}, undefined>, v.ObjectSchema<{
|
|
1032
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
1033
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
1034
|
+
}, undefined>, v.ObjectSchema<{
|
|
1035
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
1036
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1037
|
+
}, undefined>, v.ObjectSchema<{
|
|
1038
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
1039
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
1040
|
+
}, undefined>, v.ObjectSchema<{
|
|
1041
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1042
|
+
}, undefined>], undefined>;
|
|
1043
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1044
|
+
readonly id: v.StringSchema<undefined>;
|
|
1045
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1046
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1047
|
+
}, undefined>, v.ObjectSchema<{
|
|
1048
|
+
readonly id: v.StringSchema<undefined>;
|
|
1049
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
1050
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1051
|
+
}, undefined>, v.ObjectSchema<{
|
|
1052
|
+
readonly id: v.StringSchema<undefined>;
|
|
1053
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
1054
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1055
|
+
}, undefined>, v.ObjectSchema<{
|
|
1056
|
+
readonly id: v.StringSchema<undefined>;
|
|
1057
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
1058
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1059
|
+
}, undefined>, v.ObjectSchema<{
|
|
1060
|
+
readonly id: v.StringSchema<undefined>;
|
|
1061
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
1062
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1063
|
+
}, undefined>, v.ObjectSchema<{
|
|
1064
|
+
readonly id: v.StringSchema<undefined>;
|
|
1065
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
1066
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1067
|
+
}, undefined>, v.ObjectSchema<{
|
|
1068
|
+
readonly id: v.StringSchema<undefined>;
|
|
1069
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
1070
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
1071
|
+
}, undefined>, v.ObjectSchema<{
|
|
1072
|
+
readonly id: v.StringSchema<undefined>;
|
|
1073
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
1074
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1075
|
+
readonly id: v.StringSchema<undefined>;
|
|
1076
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1077
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1078
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1079
|
+
}, undefined>, v.ObjectSchema<{
|
|
1080
|
+
readonly name: v.StringSchema<undefined>;
|
|
1081
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1082
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1083
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1084
|
+
}, undefined>], undefined>, undefined>;
|
|
1085
|
+
}, undefined>, v.ObjectSchema<{
|
|
1086
|
+
readonly id: v.StringSchema<undefined>;
|
|
1087
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
1088
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1089
|
+
readonly id: v.StringSchema<undefined>;
|
|
1090
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1091
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1092
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1093
|
+
}, undefined>, v.ObjectSchema<{
|
|
1094
|
+
readonly name: v.StringSchema<undefined>;
|
|
1095
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1096
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1097
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1098
|
+
}, undefined>], undefined>, undefined>;
|
|
1099
|
+
}, undefined>, v.ObjectSchema<{
|
|
1100
|
+
readonly id: v.StringSchema<undefined>;
|
|
1101
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
1102
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1103
|
+
readonly id: v.StringSchema<undefined>;
|
|
1104
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1105
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1106
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1107
|
+
}, undefined>, v.ObjectSchema<{
|
|
1108
|
+
readonly name: v.StringSchema<undefined>;
|
|
1109
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1110
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1111
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1112
|
+
}, undefined>], undefined>, undefined>;
|
|
1113
|
+
}, undefined>, v.ObjectSchema<{
|
|
1114
|
+
readonly id: v.StringSchema<undefined>;
|
|
1115
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
1116
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
1117
|
+
readonly start: v.StringSchema<undefined>;
|
|
1118
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1119
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1120
|
+
}, undefined>, undefined>;
|
|
1121
|
+
}, undefined>, v.ObjectSchema<{
|
|
1122
|
+
readonly id: v.StringSchema<undefined>;
|
|
1123
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
1124
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1125
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
1126
|
+
readonly id: v.StringSchema<undefined>;
|
|
1127
|
+
}, undefined>, v.ObjectSchema<{
|
|
1128
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
1129
|
+
readonly id: v.StringSchema<undefined>;
|
|
1130
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1131
|
+
}, undefined>], undefined>, undefined>;
|
|
1132
|
+
}, undefined>, v.ObjectSchema<{
|
|
1133
|
+
readonly id: v.StringSchema<undefined>;
|
|
1134
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
1135
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1136
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
1137
|
+
readonly id: v.StringSchema<undefined>;
|
|
1138
|
+
}, undefined>, undefined>;
|
|
1139
|
+
}, undefined>, v.ObjectSchema<{
|
|
1140
|
+
readonly id: v.StringSchema<undefined>;
|
|
1141
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1142
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1143
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1144
|
+
readonly name: v.StringSchema<undefined>;
|
|
1145
|
+
readonly external: v.ObjectSchema<{
|
|
1146
|
+
readonly url: v.StringSchema<undefined>;
|
|
1147
|
+
}, undefined>;
|
|
1148
|
+
}, undefined>, v.ObjectSchema<{
|
|
1149
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1150
|
+
readonly name: v.StringSchema<undefined>;
|
|
1151
|
+
readonly file: v.ObjectSchema<{
|
|
1152
|
+
readonly url: v.StringSchema<undefined>;
|
|
1153
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1154
|
+
}, undefined>;
|
|
1155
|
+
}, undefined>], undefined>, undefined>;
|
|
1156
|
+
}, undefined>, v.ObjectSchema<{
|
|
1157
|
+
readonly id: v.StringSchema<undefined>;
|
|
1158
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
1159
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
1160
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
1161
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
1162
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1163
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1164
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1165
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1166
|
+
}, undefined>, undefined>;
|
|
1167
|
+
}, undefined>, v.ObjectSchema<{
|
|
1168
|
+
readonly id: v.StringSchema<undefined>;
|
|
1169
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
1170
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1171
|
+
}, undefined>, v.ObjectSchema<{
|
|
1172
|
+
readonly id: v.StringSchema<undefined>;
|
|
1173
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
1174
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1175
|
+
}, undefined>, v.ObjectSchema<{
|
|
1176
|
+
readonly id: v.StringSchema<undefined>;
|
|
1177
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
1178
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
1179
|
+
readonly id: v.StringSchema<undefined>;
|
|
1180
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1181
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1182
|
+
}, undefined>, undefined>;
|
|
1183
|
+
}, undefined>, v.ObjectSchema<{
|
|
1184
|
+
readonly id: v.StringSchema<undefined>;
|
|
1185
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
1186
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
1187
|
+
readonly id: v.StringSchema<undefined>;
|
|
1188
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1189
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1190
|
+
}, undefined>, undefined>;
|
|
1191
|
+
}, undefined>, v.ObjectSchema<{
|
|
1192
|
+
readonly id: v.StringSchema<undefined>;
|
|
1193
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1194
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
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<{
|
|
1210
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1211
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1212
|
+
}, undefined>, v.ObjectSchema<{
|
|
1213
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
1214
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
1215
|
+
readonly id: v.StringSchema<undefined>;
|
|
1216
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1217
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1218
|
+
}, undefined>;
|
|
1219
|
+
}, undefined>, v.ObjectSchema<{
|
|
1220
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1221
|
+
readonly external: v.ObjectSchema<{
|
|
1222
|
+
readonly url: v.StringSchema<undefined>;
|
|
1223
|
+
}, undefined>;
|
|
1224
|
+
}, undefined>, v.ObjectSchema<{
|
|
1225
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1226
|
+
readonly file: v.ObjectSchema<{
|
|
1227
|
+
readonly url: v.StringSchema<undefined>;
|
|
1228
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1229
|
+
}, undefined>;
|
|
1230
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
1231
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1232
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1233
|
+
readonly external: v.ObjectSchema<{
|
|
1234
|
+
readonly url: v.StringSchema<undefined>;
|
|
1235
|
+
}, undefined>;
|
|
1236
|
+
}, undefined>, v.ObjectSchema<{
|
|
1237
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1238
|
+
readonly file: v.ObjectSchema<{
|
|
1239
|
+
readonly url: v.StringSchema<undefined>;
|
|
1240
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1241
|
+
}, 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>;
|
|
1245
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
1246
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
1247
|
+
}, undefined>;
|
|
1248
|
+
}, undefined>, v.ObjectSchema<{
|
|
1249
|
+
readonly type: v.LiteralSchema<"createPageResult", undefined>;
|
|
1250
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
1251
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
1252
|
+
readonly error: v.ObjectSchema<{
|
|
988
1253
|
readonly code: v.StringSchema<undefined>;
|
|
989
1254
|
readonly message: v.StringSchema<undefined>;
|
|
990
1255
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
991
1256
|
}, undefined>;
|
|
992
1257
|
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
993
|
-
readonly type: v.LiteralSchema<"
|
|
1258
|
+
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
994
1259
|
readonly requestId: v.StringSchema<undefined>;
|
|
995
1260
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
996
|
-
readonly
|
|
1261
|
+
readonly page: v.ObjectSchema<{
|
|
1262
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
1263
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
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<{
|
|
1283
|
+
readonly id: v.StringSchema<undefined>;
|
|
1284
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1285
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1286
|
+
}, undefined>, v.ObjectSchema<{
|
|
1287
|
+
readonly id: v.StringSchema<undefined>;
|
|
1288
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
1289
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
1290
|
+
}, undefined>, v.ObjectSchema<{
|
|
1291
|
+
readonly id: v.StringSchema<undefined>;
|
|
1292
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
1293
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
1294
|
+
}, undefined>, v.ObjectSchema<{
|
|
1295
|
+
readonly id: v.StringSchema<undefined>;
|
|
1296
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
1297
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1298
|
+
}, undefined>, v.ObjectSchema<{
|
|
1299
|
+
readonly id: v.StringSchema<undefined>;
|
|
1300
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
1301
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1302
|
+
}, undefined>, v.ObjectSchema<{
|
|
1303
|
+
readonly id: v.StringSchema<undefined>;
|
|
1304
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
1305
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1306
|
+
}, undefined>, v.ObjectSchema<{
|
|
1307
|
+
readonly id: v.StringSchema<undefined>;
|
|
1308
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
1309
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
1310
|
+
}, undefined>, v.ObjectSchema<{
|
|
1311
|
+
readonly id: v.StringSchema<undefined>;
|
|
1312
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
1313
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1314
|
+
readonly id: v.StringSchema<undefined>;
|
|
1315
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1316
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1317
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1318
|
+
}, undefined>, v.ObjectSchema<{
|
|
1319
|
+
readonly name: v.StringSchema<undefined>;
|
|
1320
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1321
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1322
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1323
|
+
}, undefined>], undefined>, undefined>;
|
|
1324
|
+
}, undefined>, v.ObjectSchema<{
|
|
1325
|
+
readonly id: v.StringSchema<undefined>;
|
|
1326
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
1327
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1328
|
+
readonly id: v.StringSchema<undefined>;
|
|
1329
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1330
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1331
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1332
|
+
}, undefined>, v.ObjectSchema<{
|
|
1333
|
+
readonly name: v.StringSchema<undefined>;
|
|
1334
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1335
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1336
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1337
|
+
}, undefined>], undefined>, undefined>;
|
|
1338
|
+
}, undefined>, v.ObjectSchema<{
|
|
1339
|
+
readonly id: v.StringSchema<undefined>;
|
|
1340
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
1341
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1342
|
+
readonly id: v.StringSchema<undefined>;
|
|
1343
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1344
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1345
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1346
|
+
}, undefined>, v.ObjectSchema<{
|
|
1347
|
+
readonly name: v.StringSchema<undefined>;
|
|
1348
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1349
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1350
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1351
|
+
}, undefined>], undefined>, undefined>;
|
|
1352
|
+
}, undefined>, v.ObjectSchema<{
|
|
1353
|
+
readonly id: v.StringSchema<undefined>;
|
|
1354
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
1355
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
1356
|
+
readonly start: v.StringSchema<undefined>;
|
|
1357
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1358
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1359
|
+
}, undefined>, undefined>;
|
|
1360
|
+
}, undefined>, v.ObjectSchema<{
|
|
1361
|
+
readonly id: v.StringSchema<undefined>;
|
|
1362
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
1363
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1364
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
1365
|
+
readonly id: v.StringSchema<undefined>;
|
|
1366
|
+
}, undefined>, v.ObjectSchema<{
|
|
1367
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
1368
|
+
readonly id: v.StringSchema<undefined>;
|
|
1369
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1370
|
+
}, undefined>], undefined>, undefined>;
|
|
1371
|
+
}, undefined>, v.ObjectSchema<{
|
|
1372
|
+
readonly id: v.StringSchema<undefined>;
|
|
1373
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
1374
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1375
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
1376
|
+
readonly id: v.StringSchema<undefined>;
|
|
1377
|
+
}, undefined>, undefined>;
|
|
1378
|
+
}, undefined>, v.ObjectSchema<{
|
|
1379
|
+
readonly id: v.StringSchema<undefined>;
|
|
1380
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1381
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
1382
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1383
|
+
readonly name: v.StringSchema<undefined>;
|
|
1384
|
+
readonly external: v.ObjectSchema<{
|
|
1385
|
+
readonly url: v.StringSchema<undefined>;
|
|
1386
|
+
}, undefined>;
|
|
1387
|
+
}, undefined>, v.ObjectSchema<{
|
|
1388
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
1389
|
+
readonly name: v.StringSchema<undefined>;
|
|
1390
|
+
readonly file: v.ObjectSchema<{
|
|
1391
|
+
readonly url: v.StringSchema<undefined>;
|
|
1392
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1393
|
+
}, undefined>;
|
|
1394
|
+
}, undefined>], undefined>, undefined>;
|
|
1395
|
+
}, undefined>, v.ObjectSchema<{
|
|
1396
|
+
readonly id: v.StringSchema<undefined>;
|
|
1397
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
1398
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
1399
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
1400
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
1401
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1402
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1403
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1404
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1405
|
+
}, undefined>, undefined>;
|
|
1406
|
+
}, undefined>, v.ObjectSchema<{
|
|
1407
|
+
readonly id: v.StringSchema<undefined>;
|
|
1408
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
1409
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1410
|
+
}, undefined>, v.ObjectSchema<{
|
|
1411
|
+
readonly id: v.StringSchema<undefined>;
|
|
1412
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
1413
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1414
|
+
}, undefined>, v.ObjectSchema<{
|
|
1415
|
+
readonly id: v.StringSchema<undefined>;
|
|
1416
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
1417
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
1418
|
+
readonly id: v.StringSchema<undefined>;
|
|
1419
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1420
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1421
|
+
}, undefined>, undefined>;
|
|
1422
|
+
}, undefined>, v.ObjectSchema<{
|
|
1423
|
+
readonly id: v.StringSchema<undefined>;
|
|
1424
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
1425
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
1426
|
+
readonly id: v.StringSchema<undefined>;
|
|
1427
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
1428
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1429
|
+
}, undefined>, undefined>;
|
|
1430
|
+
}, undefined>, v.ObjectSchema<{
|
|
1431
|
+
readonly id: v.StringSchema<undefined>;
|
|
1432
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1433
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1434
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
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
|
+
/**
|
|
1498
|
+
* Discriminated union of every message the host is allowed to send the sandbox.
|
|
1499
|
+
*/
|
|
1500
|
+
export declare const hostToSandboxMessageLegacySchema: v.VariantSchema<"type", [v.VariantSchema<"status", [v.ObjectSchema<{
|
|
1501
|
+
readonly type: v.LiteralSchema<"init", undefined>;
|
|
1502
|
+
readonly initializationId: v.StringSchema<undefined>;
|
|
1503
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
1504
|
+
readonly theme: v.PicklistSchema<["light", "dark"], undefined>;
|
|
1505
|
+
readonly contrastMode: v.PicklistSchema<["standard", "high"], undefined>;
|
|
1506
|
+
readonly blockId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1507
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1508
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1509
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1510
|
+
}, undefined>, v.ObjectSchema<{
|
|
1511
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1512
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1513
|
+
}, undefined>, v.ObjectSchema<{
|
|
1514
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
1515
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
1516
|
+
}, undefined>, v.ObjectSchema<{
|
|
1517
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
1518
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1519
|
+
}, undefined>, v.ObjectSchema<{
|
|
1520
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
1521
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
1522
|
+
}, undefined>, v.ObjectSchema<{
|
|
1523
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1524
|
+
}, undefined>], undefined>;
|
|
1525
|
+
readonly page: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1526
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1527
|
+
}, undefined>, v.ObjectSchema<{
|
|
1528
|
+
readonly type: v.LiteralSchema<"page", undefined>;
|
|
1529
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1530
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1531
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1532
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1533
|
+
}, undefined>, v.ObjectSchema<{
|
|
1534
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1535
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1536
|
+
}, undefined>, v.ObjectSchema<{
|
|
1537
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
1538
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
1539
|
+
}, undefined>, v.ObjectSchema<{
|
|
1540
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
1541
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1542
|
+
}, undefined>, v.ObjectSchema<{
|
|
1543
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
1544
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
1545
|
+
}, undefined>, v.ObjectSchema<{
|
|
1546
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1547
|
+
}, undefined>], undefined>;
|
|
1548
|
+
}, undefined>], undefined>;
|
|
1549
|
+
readonly manifest: v.ObjectSchema<{
|
|
1550
|
+
readonly version: v.LiteralSchema<1, undefined>;
|
|
1551
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1552
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1553
|
+
readonly slashCommand: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1554
|
+
readonly icon: v.OptionalSchema<v.ObjectSchema<{
|
|
1555
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1556
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1557
|
+
}, undefined>, undefined>;
|
|
1558
|
+
readonly dataSources: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1559
|
+
readonly name: v.StringSchema<undefined>;
|
|
1560
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1561
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1562
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
1563
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
1564
|
+
}, undefined>, v.ObjectSchema<{
|
|
1565
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
1566
|
+
readonly url: v.StringSchema<undefined>;
|
|
1567
|
+
}, undefined>], undefined>, undefined>;
|
|
1568
|
+
readonly properties: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1569
|
+
readonly name: v.StringSchema<undefined>;
|
|
1570
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1571
|
+
readonly type: v.PicklistSchema<readonly ["title", "rich_text", "number", "checkbox", "url", "email", "phone_number", "select", "multi_select", "status", "date", "people", "files", "unique_id", "relation", "place", "formula", "rollup", "button", "verification", "last_visited_time", "location", "created_time", "last_edited_time", "created_by", "last_edited_by"], undefined>;
|
|
1572
|
+
}, undefined>, undefined>, {}>;
|
|
1573
|
+
}, undefined>, undefined>, {}>;
|
|
1574
|
+
}, undefined>;
|
|
1575
|
+
readonly dataSources: v.ObjectSchema<{
|
|
1576
|
+
readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1577
|
+
readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
|
|
1578
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1579
|
+
readonly table: v.StringSchema<undefined>;
|
|
1580
|
+
readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
|
|
1581
|
+
}, undefined>, undefined>;
|
|
1582
|
+
readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
|
|
1583
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
|
|
1584
|
+
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1585
|
+
readonly name: v.StringSchema<undefined>;
|
|
1586
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1587
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1588
|
+
}, undefined>, v.ObjectSchema<{
|
|
1589
|
+
readonly name: v.StringSchema<undefined>;
|
|
1590
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1591
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
1592
|
+
}, undefined>, v.ObjectSchema<{
|
|
1593
|
+
readonly name: v.StringSchema<undefined>;
|
|
1594
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1595
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
1596
|
+
}, undefined>, v.ObjectSchema<{
|
|
1597
|
+
readonly name: v.StringSchema<undefined>;
|
|
1598
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1599
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
1600
|
+
}, undefined>, v.ObjectSchema<{
|
|
1601
|
+
readonly name: v.StringSchema<undefined>;
|
|
1602
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1603
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
1604
|
+
}, undefined>, v.ObjectSchema<{
|
|
1605
|
+
readonly name: v.StringSchema<undefined>;
|
|
1606
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1607
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
1608
|
+
}, undefined>, v.ObjectSchema<{
|
|
1609
|
+
readonly name: v.StringSchema<undefined>;
|
|
1610
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1611
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
1612
|
+
}, undefined>, v.ObjectSchema<{
|
|
1613
|
+
readonly name: v.StringSchema<undefined>;
|
|
1614
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1615
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
1616
|
+
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
1617
|
+
readonly id: v.StringSchema<undefined>;
|
|
1618
|
+
readonly name: v.StringSchema<undefined>;
|
|
1619
|
+
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
1620
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1621
|
+
}, undefined>, undefined>;
|
|
1622
|
+
}, undefined>, v.ObjectSchema<{
|
|
1623
|
+
readonly name: v.StringSchema<undefined>;
|
|
1624
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1625
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
1626
|
+
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
1627
|
+
readonly id: v.StringSchema<undefined>;
|
|
1628
|
+
readonly name: v.StringSchema<undefined>;
|
|
1629
|
+
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
1630
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1631
|
+
}, undefined>, undefined>;
|
|
1632
|
+
}, undefined>, v.ObjectSchema<{
|
|
1633
|
+
readonly name: v.StringSchema<undefined>;
|
|
1634
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1635
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
1636
|
+
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
1637
|
+
readonly id: v.StringSchema<undefined>;
|
|
1638
|
+
readonly name: v.StringSchema<undefined>;
|
|
1639
|
+
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
1640
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1641
|
+
}, undefined>, undefined>;
|
|
1642
|
+
readonly groups: v.ArraySchema<v.ObjectSchema<{
|
|
1643
|
+
readonly id: v.StringSchema<undefined>;
|
|
1644
|
+
readonly name: v.StringSchema<undefined>;
|
|
1645
|
+
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
1646
|
+
readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1647
|
+
}, undefined>, undefined>;
|
|
1648
|
+
}, undefined>, v.ObjectSchema<{
|
|
1649
|
+
readonly name: v.StringSchema<undefined>;
|
|
1650
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1651
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
1652
|
+
}, undefined>, v.ObjectSchema<{
|
|
1653
|
+
readonly name: v.StringSchema<undefined>;
|
|
1654
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1655
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
1656
|
+
}, undefined>, v.ObjectSchema<{
|
|
1657
|
+
readonly name: v.StringSchema<undefined>;
|
|
1658
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1659
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1660
|
+
}, undefined>, v.ObjectSchema<{
|
|
1661
|
+
readonly name: v.StringSchema<undefined>;
|
|
1662
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1663
|
+
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
1664
|
+
}, undefined>, v.ObjectSchema<{
|
|
1665
|
+
readonly name: v.StringSchema<undefined>;
|
|
1666
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1667
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
1668
|
+
readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1669
|
+
readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
|
|
1670
|
+
readonly synced_property_id: v.StringSchema<undefined>;
|
|
1671
|
+
readonly synced_property_name: v.StringSchema<undefined>;
|
|
1672
|
+
}, undefined>, undefined>;
|
|
1673
|
+
}, undefined>, v.ObjectSchema<{
|
|
1674
|
+
readonly name: v.StringSchema<undefined>;
|
|
1675
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1676
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
1677
|
+
}, undefined>, v.ObjectSchema<{
|
|
1678
|
+
readonly name: v.StringSchema<undefined>;
|
|
1679
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1680
|
+
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
1681
|
+
}, undefined>, v.ObjectSchema<{
|
|
1682
|
+
readonly name: v.StringSchema<undefined>;
|
|
1683
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1684
|
+
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
1685
|
+
}, undefined>, v.ObjectSchema<{
|
|
1686
|
+
readonly name: v.StringSchema<undefined>;
|
|
1687
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1688
|
+
readonly type: v.LiteralSchema<"button", undefined>;
|
|
1689
|
+
}, undefined>, v.ObjectSchema<{
|
|
1690
|
+
readonly name: v.StringSchema<undefined>;
|
|
1691
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1692
|
+
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1693
|
+
}, undefined>, v.ObjectSchema<{
|
|
1694
|
+
readonly name: v.StringSchema<undefined>;
|
|
1695
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1696
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1697
|
+
}, undefined>, v.ObjectSchema<{
|
|
1698
|
+
readonly name: v.StringSchema<undefined>;
|
|
1699
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1700
|
+
readonly type: v.LiteralSchema<"location", undefined>;
|
|
1701
|
+
}, undefined>, v.ObjectSchema<{
|
|
1702
|
+
readonly name: v.StringSchema<undefined>;
|
|
1703
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1704
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
1705
|
+
}, undefined>, v.ObjectSchema<{
|
|
1706
|
+
readonly name: v.StringSchema<undefined>;
|
|
1707
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1708
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
1709
|
+
}, undefined>, v.ObjectSchema<{
|
|
1710
|
+
readonly name: v.StringSchema<undefined>;
|
|
1711
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1712
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
1713
|
+
}, undefined>, v.ObjectSchema<{
|
|
1714
|
+
readonly name: v.StringSchema<undefined>;
|
|
1715
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1716
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
1717
|
+
}, undefined>], undefined>, undefined>;
|
|
1718
|
+
}, undefined>, undefined>;
|
|
1719
|
+
readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
1720
|
+
}, undefined>, undefined>;
|
|
1721
|
+
}, undefined>;
|
|
1722
|
+
readonly currentUser: v.ObjectSchema<{
|
|
1723
|
+
readonly object: v.LiteralSchema<"user", undefined>;
|
|
1724
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
1725
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1726
|
+
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1727
|
+
readonly type: v.LiteralSchema<"person", undefined>;
|
|
1728
|
+
readonly person: v.ObjectSchema<{
|
|
1729
|
+
readonly email: v.StringSchema<undefined>;
|
|
1730
|
+
}, undefined>;
|
|
1731
|
+
}, undefined>;
|
|
1732
|
+
}, undefined>, v.ObjectSchema<{
|
|
1733
|
+
readonly type: v.LiteralSchema<"init", undefined>;
|
|
1734
|
+
readonly initializationId: v.StringSchema<undefined>;
|
|
1735
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
1736
|
+
readonly error: v.ObjectSchema<{
|
|
1737
|
+
readonly code: v.StringSchema<undefined>;
|
|
1738
|
+
readonly message: v.StringSchema<undefined>;
|
|
1739
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
1740
|
+
}, undefined>;
|
|
1741
|
+
}, undefined>], undefined>, v.ObjectSchema<{
|
|
1742
|
+
readonly type: v.LiteralSchema<"themeChanged", undefined>;
|
|
1743
|
+
readonly theme: v.PicklistSchema<["light", "dark"], undefined>;
|
|
1744
|
+
}, undefined>, v.ObjectSchema<{
|
|
1745
|
+
readonly type: v.LiteralSchema<"contrastModeChanged", undefined>;
|
|
1746
|
+
readonly contrastMode: v.PicklistSchema<["standard", "high"], undefined>;
|
|
1747
|
+
}, undefined>, v.ObjectSchema<{
|
|
1748
|
+
readonly type: v.LiteralSchema<"parentChanged", undefined>;
|
|
1749
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1750
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1751
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1752
|
+
}, undefined>, v.ObjectSchema<{
|
|
1753
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1754
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1755
|
+
}, undefined>, v.ObjectSchema<{
|
|
1756
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
1757
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
1758
|
+
}, undefined>, v.ObjectSchema<{
|
|
1759
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
1760
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1761
|
+
}, undefined>, v.ObjectSchema<{
|
|
1762
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
1763
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
1764
|
+
}, undefined>, v.ObjectSchema<{
|
|
1765
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1766
|
+
}, undefined>], undefined>;
|
|
1767
|
+
}, undefined>, v.ObjectSchema<{
|
|
1768
|
+
readonly type: v.LiteralSchema<"pageChanged", undefined>;
|
|
1769
|
+
readonly page: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1770
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1771
|
+
}, undefined>, v.ObjectSchema<{
|
|
1772
|
+
readonly type: v.LiteralSchema<"page", undefined>;
|
|
1773
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1774
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1775
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
1776
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1777
|
+
}, undefined>, v.ObjectSchema<{
|
|
1778
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
1779
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1780
|
+
}, undefined>, v.ObjectSchema<{
|
|
1781
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
1782
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
1783
|
+
}, undefined>, v.ObjectSchema<{
|
|
1784
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
1785
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
1786
|
+
}, undefined>, v.ObjectSchema<{
|
|
1787
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
1788
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
1789
|
+
}, undefined>, v.ObjectSchema<{
|
|
1790
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
1791
|
+
}, undefined>], undefined>;
|
|
1792
|
+
}, undefined>], undefined>;
|
|
1793
|
+
}, undefined>, v.ObjectSchema<{
|
|
1794
|
+
readonly type: v.LiteralSchema<"currentUserChanged", undefined>;
|
|
1795
|
+
readonly currentUser: v.ObjectSchema<{
|
|
1796
|
+
readonly object: v.LiteralSchema<"user", undefined>;
|
|
1797
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionUserId">]>;
|
|
1798
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1799
|
+
readonly avatar_url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
1800
|
+
readonly type: v.LiteralSchema<"person", undefined>;
|
|
1801
|
+
readonly person: v.ObjectSchema<{
|
|
1802
|
+
readonly email: v.StringSchema<undefined>;
|
|
1803
|
+
}, undefined>;
|
|
1804
|
+
}, undefined>;
|
|
1805
|
+
}, undefined>, v.ObjectSchema<{
|
|
1806
|
+
readonly type: v.LiteralSchema<"dataSourcesChanged", undefined>;
|
|
1807
|
+
readonly dataSources: v.ObjectSchema<{
|
|
1808
|
+
readonly bindings: v.RecordSchema<v.StringSchema<undefined>, v.ObjectSchema<{
|
|
1809
|
+
readonly collectionPointer: v.OptionalSchema<v.ObjectSchema<{
|
|
1810
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
1811
|
+
readonly table: v.StringSchema<undefined>;
|
|
1812
|
+
readonly spaceId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionSpaceId">]>, undefined>;
|
|
1813
|
+
}, undefined>, undefined>;
|
|
1814
|
+
readonly collectionSchema: v.OptionalSchema<v.ObjectSchema<{
|
|
1815
|
+
readonly id: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>, undefined>;
|
|
1816
|
+
readonly propertiesById: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
1817
|
+
readonly name: v.StringSchema<undefined>;
|
|
1818
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1819
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
1820
|
+
}, undefined>, v.ObjectSchema<{
|
|
1821
|
+
readonly name: v.StringSchema<undefined>;
|
|
1822
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1823
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
1824
|
+
}, undefined>, v.ObjectSchema<{
|
|
1825
|
+
readonly name: v.StringSchema<undefined>;
|
|
1826
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1827
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
1828
|
+
}, undefined>, v.ObjectSchema<{
|
|
1829
|
+
readonly name: v.StringSchema<undefined>;
|
|
1830
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1831
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
1832
|
+
}, undefined>, v.ObjectSchema<{
|
|
1833
|
+
readonly name: v.StringSchema<undefined>;
|
|
1834
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1835
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
1836
|
+
}, undefined>, v.ObjectSchema<{
|
|
1837
|
+
readonly name: v.StringSchema<undefined>;
|
|
1838
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1839
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
1840
|
+
}, undefined>, v.ObjectSchema<{
|
|
1841
|
+
readonly name: v.StringSchema<undefined>;
|
|
1842
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1843
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
1844
|
+
}, undefined>, v.ObjectSchema<{
|
|
1845
|
+
readonly name: v.StringSchema<undefined>;
|
|
1846
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1847
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
1848
|
+
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
1849
|
+
readonly id: v.StringSchema<undefined>;
|
|
1850
|
+
readonly name: v.StringSchema<undefined>;
|
|
1851
|
+
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
1852
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1853
|
+
}, undefined>, undefined>;
|
|
1854
|
+
}, undefined>, v.ObjectSchema<{
|
|
1855
|
+
readonly name: v.StringSchema<undefined>;
|
|
1856
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1857
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
1858
|
+
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
1859
|
+
readonly id: v.StringSchema<undefined>;
|
|
1860
|
+
readonly name: v.StringSchema<undefined>;
|
|
1861
|
+
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
1862
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1863
|
+
}, undefined>, undefined>;
|
|
1864
|
+
}, undefined>, v.ObjectSchema<{
|
|
1865
|
+
readonly name: v.StringSchema<undefined>;
|
|
1866
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1867
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
1868
|
+
readonly options: v.ArraySchema<v.ObjectSchema<{
|
|
1869
|
+
readonly id: v.StringSchema<undefined>;
|
|
1870
|
+
readonly name: v.StringSchema<undefined>;
|
|
1871
|
+
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
1872
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1873
|
+
}, undefined>, undefined>;
|
|
1874
|
+
readonly groups: v.ArraySchema<v.ObjectSchema<{
|
|
1875
|
+
readonly id: v.StringSchema<undefined>;
|
|
1876
|
+
readonly name: v.StringSchema<undefined>;
|
|
1877
|
+
readonly color: v.OptionalSchema<v.PicklistSchema<["default", "gray", "brown", "orange", "yellow", "green", "blue", "purple", "pink", "red", "gray_background", "brown_background", "orange_background", "yellow_background", "green_background", "blue_background", "purple_background", "pink_background", "red_background", "default_background"], undefined>, undefined>;
|
|
1878
|
+
readonly option_ids: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
1879
|
+
}, undefined>, undefined>;
|
|
1880
|
+
}, undefined>, v.ObjectSchema<{
|
|
1881
|
+
readonly name: v.StringSchema<undefined>;
|
|
1882
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1883
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
1884
|
+
}, undefined>, v.ObjectSchema<{
|
|
1885
|
+
readonly name: v.StringSchema<undefined>;
|
|
1886
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1887
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
1888
|
+
}, undefined>, v.ObjectSchema<{
|
|
1889
|
+
readonly name: v.StringSchema<undefined>;
|
|
1890
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1891
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
1892
|
+
}, undefined>, v.ObjectSchema<{
|
|
1893
|
+
readonly name: v.StringSchema<undefined>;
|
|
1894
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1895
|
+
readonly type: v.LiteralSchema<"unique_id", undefined>;
|
|
1896
|
+
}, undefined>, v.ObjectSchema<{
|
|
1897
|
+
readonly name: v.StringSchema<undefined>;
|
|
1898
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1899
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
1900
|
+
readonly data_source_id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1901
|
+
readonly dual_property: v.OptionalSchema<v.ObjectSchema<{
|
|
1902
|
+
readonly synced_property_id: v.StringSchema<undefined>;
|
|
1903
|
+
readonly synced_property_name: v.StringSchema<undefined>;
|
|
1904
|
+
}, undefined>, undefined>;
|
|
1905
|
+
}, undefined>, v.ObjectSchema<{
|
|
1906
|
+
readonly name: v.StringSchema<undefined>;
|
|
1907
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1908
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
1909
|
+
}, undefined>, v.ObjectSchema<{
|
|
1910
|
+
readonly name: v.StringSchema<undefined>;
|
|
1911
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1912
|
+
readonly type: v.LiteralSchema<"formula", undefined>;
|
|
1913
|
+
}, undefined>, v.ObjectSchema<{
|
|
1914
|
+
readonly name: v.StringSchema<undefined>;
|
|
1915
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1916
|
+
readonly type: v.LiteralSchema<"rollup", undefined>;
|
|
1917
|
+
}, undefined>, v.ObjectSchema<{
|
|
1918
|
+
readonly name: v.StringSchema<undefined>;
|
|
1919
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1920
|
+
readonly type: v.LiteralSchema<"button", undefined>;
|
|
1921
|
+
}, undefined>, v.ObjectSchema<{
|
|
1922
|
+
readonly name: v.StringSchema<undefined>;
|
|
1923
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1924
|
+
readonly type: v.LiteralSchema<"verification", undefined>;
|
|
1925
|
+
}, undefined>, v.ObjectSchema<{
|
|
1926
|
+
readonly name: v.StringSchema<undefined>;
|
|
1927
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1928
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
1929
|
+
}, undefined>, v.ObjectSchema<{
|
|
1930
|
+
readonly name: v.StringSchema<undefined>;
|
|
1931
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1932
|
+
readonly type: v.LiteralSchema<"location", undefined>;
|
|
1933
|
+
}, undefined>, v.ObjectSchema<{
|
|
1934
|
+
readonly name: v.StringSchema<undefined>;
|
|
1935
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1936
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
1937
|
+
}, undefined>, v.ObjectSchema<{
|
|
1938
|
+
readonly name: v.StringSchema<undefined>;
|
|
1939
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1940
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
1941
|
+
}, undefined>, v.ObjectSchema<{
|
|
1942
|
+
readonly name: v.StringSchema<undefined>;
|
|
1943
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1944
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
1945
|
+
}, undefined>, v.ObjectSchema<{
|
|
1946
|
+
readonly name: v.StringSchema<undefined>;
|
|
1947
|
+
readonly description: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1948
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
1949
|
+
}, undefined>], undefined>, undefined>;
|
|
1950
|
+
}, undefined>, undefined>;
|
|
1951
|
+
readonly propertyIdsByKey: v.OptionalSchema<v.RecordSchema<v.StringSchema<undefined>, v.OptionalSchema<v.StringSchema<undefined>, undefined>, undefined>, undefined>;
|
|
1952
|
+
}, undefined>, undefined>;
|
|
1953
|
+
}, undefined>;
|
|
1954
|
+
}, undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
1955
|
+
readonly type: v.LiteralSchema<"getUserResult", undefined>;
|
|
1956
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
1957
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
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<{
|
|
2042
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
2043
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2044
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2045
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
2046
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2047
|
+
}, undefined>, v.ObjectSchema<{
|
|
2048
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
2049
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
2050
|
+
}, undefined>, v.ObjectSchema<{
|
|
2051
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
2052
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
2053
|
+
}, undefined>, v.ObjectSchema<{
|
|
2054
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
2055
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
2056
|
+
}, undefined>, v.ObjectSchema<{
|
|
2057
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
2058
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
2059
|
+
}, undefined>, v.ObjectSchema<{
|
|
2060
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
2061
|
+
}, undefined>], undefined>;
|
|
2062
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2063
|
+
readonly id: v.StringSchema<undefined>;
|
|
2064
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
2065
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2066
|
+
}, undefined>, v.ObjectSchema<{
|
|
2067
|
+
readonly id: v.StringSchema<undefined>;
|
|
2068
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
2069
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2070
|
+
}, undefined>, v.ObjectSchema<{
|
|
2071
|
+
readonly id: v.StringSchema<undefined>;
|
|
2072
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
2073
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
2074
|
+
}, undefined>, v.ObjectSchema<{
|
|
2075
|
+
readonly id: v.StringSchema<undefined>;
|
|
2076
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
2077
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2078
|
+
}, undefined>, v.ObjectSchema<{
|
|
2079
|
+
readonly id: v.StringSchema<undefined>;
|
|
2080
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
2081
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2082
|
+
}, undefined>, v.ObjectSchema<{
|
|
2083
|
+
readonly id: v.StringSchema<undefined>;
|
|
2084
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
2085
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2086
|
+
}, undefined>, v.ObjectSchema<{
|
|
2087
|
+
readonly id: v.StringSchema<undefined>;
|
|
2088
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
2089
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
2090
|
+
}, undefined>, v.ObjectSchema<{
|
|
2091
|
+
readonly id: v.StringSchema<undefined>;
|
|
2092
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
2093
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2094
|
+
readonly id: v.StringSchema<undefined>;
|
|
2095
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2096
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2097
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2098
|
+
}, undefined>, v.ObjectSchema<{
|
|
2099
|
+
readonly name: v.StringSchema<undefined>;
|
|
2100
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2101
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2102
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2103
|
+
}, undefined>], undefined>, undefined>;
|
|
2104
|
+
}, undefined>, v.ObjectSchema<{
|
|
2105
|
+
readonly id: v.StringSchema<undefined>;
|
|
2106
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
2107
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2108
|
+
readonly id: v.StringSchema<undefined>;
|
|
2109
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2110
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2111
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2112
|
+
}, undefined>, v.ObjectSchema<{
|
|
2113
|
+
readonly name: v.StringSchema<undefined>;
|
|
2114
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2115
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2116
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2117
|
+
}, undefined>], undefined>, undefined>;
|
|
2118
|
+
}, undefined>, v.ObjectSchema<{
|
|
2119
|
+
readonly id: v.StringSchema<undefined>;
|
|
2120
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
2121
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2122
|
+
readonly id: v.StringSchema<undefined>;
|
|
2123
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2124
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2125
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2126
|
+
}, undefined>, v.ObjectSchema<{
|
|
2127
|
+
readonly name: v.StringSchema<undefined>;
|
|
2128
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2129
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2130
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2131
|
+
}, undefined>], undefined>, undefined>;
|
|
2132
|
+
}, undefined>, v.ObjectSchema<{
|
|
2133
|
+
readonly id: v.StringSchema<undefined>;
|
|
2134
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
2135
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
2136
|
+
readonly start: v.StringSchema<undefined>;
|
|
2137
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2138
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2139
|
+
}, undefined>, undefined>;
|
|
2140
|
+
}, undefined>, v.ObjectSchema<{
|
|
2141
|
+
readonly id: v.StringSchema<undefined>;
|
|
2142
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
2143
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2144
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
2145
|
+
readonly id: v.StringSchema<undefined>;
|
|
2146
|
+
}, undefined>, v.ObjectSchema<{
|
|
2147
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
2148
|
+
readonly id: v.StringSchema<undefined>;
|
|
2149
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2150
|
+
}, undefined>], undefined>, undefined>;
|
|
2151
|
+
}, undefined>, v.ObjectSchema<{
|
|
2152
|
+
readonly id: v.StringSchema<undefined>;
|
|
2153
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
2154
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2155
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
2156
|
+
readonly id: v.StringSchema<undefined>;
|
|
2157
|
+
}, undefined>, undefined>;
|
|
2158
|
+
}, undefined>, v.ObjectSchema<{
|
|
2159
|
+
readonly id: v.StringSchema<undefined>;
|
|
2160
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2161
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2162
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2163
|
+
readonly name: v.StringSchema<undefined>;
|
|
2164
|
+
readonly external: v.ObjectSchema<{
|
|
2165
|
+
readonly url: v.StringSchema<undefined>;
|
|
2166
|
+
}, undefined>;
|
|
2167
|
+
}, undefined>, v.ObjectSchema<{
|
|
2168
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2169
|
+
readonly name: v.StringSchema<undefined>;
|
|
2170
|
+
readonly file: v.ObjectSchema<{
|
|
2171
|
+
readonly url: v.StringSchema<undefined>;
|
|
2172
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2173
|
+
}, undefined>;
|
|
2174
|
+
}, undefined>], undefined>, undefined>;
|
|
2175
|
+
}, undefined>, v.ObjectSchema<{
|
|
2176
|
+
readonly id: v.StringSchema<undefined>;
|
|
2177
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
2178
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
2179
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
2180
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
2181
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2182
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2183
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2184
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2185
|
+
}, undefined>, undefined>;
|
|
2186
|
+
}, undefined>, v.ObjectSchema<{
|
|
2187
|
+
readonly id: v.StringSchema<undefined>;
|
|
2188
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
2189
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2190
|
+
}, undefined>, v.ObjectSchema<{
|
|
2191
|
+
readonly id: v.StringSchema<undefined>;
|
|
2192
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
2193
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2194
|
+
}, undefined>, v.ObjectSchema<{
|
|
2195
|
+
readonly id: v.StringSchema<undefined>;
|
|
2196
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
2197
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
2198
|
+
readonly id: v.StringSchema<undefined>;
|
|
2199
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2200
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2201
|
+
}, undefined>, undefined>;
|
|
2202
|
+
}, undefined>, v.ObjectSchema<{
|
|
2203
|
+
readonly id: v.StringSchema<undefined>;
|
|
2204
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
2205
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
2206
|
+
readonly id: v.StringSchema<undefined>;
|
|
2207
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2208
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2209
|
+
}, undefined>, undefined>;
|
|
2210
|
+
}, undefined>, v.ObjectSchema<{
|
|
2211
|
+
readonly id: v.StringSchema<undefined>;
|
|
2212
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2213
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
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<{
|
|
2229
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
2230
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
2231
|
+
}, undefined>, v.ObjectSchema<{
|
|
2232
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
2233
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
2234
|
+
readonly id: v.StringSchema<undefined>;
|
|
2235
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2236
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2237
|
+
}, undefined>;
|
|
2238
|
+
}, undefined>, v.ObjectSchema<{
|
|
2239
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2240
|
+
readonly external: v.ObjectSchema<{
|
|
2241
|
+
readonly url: v.StringSchema<undefined>;
|
|
2242
|
+
}, undefined>;
|
|
2243
|
+
}, undefined>, v.ObjectSchema<{
|
|
2244
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2245
|
+
readonly file: v.ObjectSchema<{
|
|
2246
|
+
readonly url: v.StringSchema<undefined>;
|
|
2247
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2248
|
+
}, undefined>;
|
|
2249
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
2250
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2251
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2252
|
+
readonly external: v.ObjectSchema<{
|
|
2253
|
+
readonly url: v.StringSchema<undefined>;
|
|
2254
|
+
}, undefined>;
|
|
2255
|
+
}, undefined>, v.ObjectSchema<{
|
|
2256
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2257
|
+
readonly file: v.ObjectSchema<{
|
|
2258
|
+
readonly url: v.StringSchema<undefined>;
|
|
2259
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2260
|
+
}, 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>;
|
|
2264
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
2265
|
+
readonly in_trash: v.BooleanSchema<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>;
|
|
2333
|
+
}, undefined>, v.ObjectSchema<{
|
|
2334
|
+
readonly type: v.LiteralSchema<"queryDataSourceResult", undefined>;
|
|
2335
|
+
readonly subscriptionId: v.StringSchema<undefined>;
|
|
2336
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2337
|
+
readonly error: v.ObjectSchema<{
|
|
2338
|
+
readonly code: v.StringSchema<undefined>;
|
|
2339
|
+
readonly message: v.StringSchema<undefined>;
|
|
2340
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2341
|
+
}, undefined>;
|
|
2342
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2343
|
+
readonly type: v.LiteralSchema<"getPageResult", undefined>;
|
|
2344
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2345
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2346
|
+
readonly page: v.UnionSchema<[v.ObjectSchema<{
|
|
2347
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
2348
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2349
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2350
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
2351
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2352
|
+
}, undefined>, v.ObjectSchema<{
|
|
2353
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
2354
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
2355
|
+
}, undefined>, v.ObjectSchema<{
|
|
2356
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
2357
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
2358
|
+
}, undefined>, v.ObjectSchema<{
|
|
2359
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
2360
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
2361
|
+
}, undefined>, v.ObjectSchema<{
|
|
2362
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
2363
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
2364
|
+
}, undefined>, v.ObjectSchema<{
|
|
2365
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
2366
|
+
}, undefined>], undefined>;
|
|
2367
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2368
|
+
readonly id: v.StringSchema<undefined>;
|
|
2369
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
2370
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2371
|
+
}, undefined>, v.ObjectSchema<{
|
|
2372
|
+
readonly id: v.StringSchema<undefined>;
|
|
2373
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
2374
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2375
|
+
}, undefined>, v.ObjectSchema<{
|
|
2376
|
+
readonly id: v.StringSchema<undefined>;
|
|
2377
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
2378
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
2379
|
+
}, undefined>, v.ObjectSchema<{
|
|
2380
|
+
readonly id: v.StringSchema<undefined>;
|
|
2381
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
2382
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2383
|
+
}, undefined>, v.ObjectSchema<{
|
|
2384
|
+
readonly id: v.StringSchema<undefined>;
|
|
2385
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
2386
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2387
|
+
}, undefined>, v.ObjectSchema<{
|
|
2388
|
+
readonly id: v.StringSchema<undefined>;
|
|
2389
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
2390
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2391
|
+
}, undefined>, v.ObjectSchema<{
|
|
2392
|
+
readonly id: v.StringSchema<undefined>;
|
|
2393
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
2394
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
2395
|
+
}, undefined>, v.ObjectSchema<{
|
|
2396
|
+
readonly id: v.StringSchema<undefined>;
|
|
2397
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
2398
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2399
|
+
readonly id: v.StringSchema<undefined>;
|
|
2400
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2401
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2402
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2403
|
+
}, undefined>, v.ObjectSchema<{
|
|
2404
|
+
readonly name: v.StringSchema<undefined>;
|
|
2405
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2406
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2407
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2408
|
+
}, undefined>], undefined>, undefined>;
|
|
2409
|
+
}, undefined>, v.ObjectSchema<{
|
|
2410
|
+
readonly id: v.StringSchema<undefined>;
|
|
2411
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
2412
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2413
|
+
readonly id: v.StringSchema<undefined>;
|
|
2414
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2415
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2416
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2417
|
+
}, undefined>, v.ObjectSchema<{
|
|
2418
|
+
readonly name: v.StringSchema<undefined>;
|
|
2419
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2420
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2421
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2422
|
+
}, undefined>], undefined>, undefined>;
|
|
2423
|
+
}, undefined>, v.ObjectSchema<{
|
|
2424
|
+
readonly id: v.StringSchema<undefined>;
|
|
2425
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
2426
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2427
|
+
readonly id: v.StringSchema<undefined>;
|
|
2428
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2429
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2430
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2431
|
+
}, undefined>, v.ObjectSchema<{
|
|
2432
|
+
readonly name: v.StringSchema<undefined>;
|
|
2433
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2434
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2435
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2436
|
+
}, undefined>], undefined>, undefined>;
|
|
2437
|
+
}, undefined>, v.ObjectSchema<{
|
|
2438
|
+
readonly id: v.StringSchema<undefined>;
|
|
2439
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
2440
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
2441
|
+
readonly start: v.StringSchema<undefined>;
|
|
2442
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2443
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2444
|
+
}, undefined>, undefined>;
|
|
2445
|
+
}, undefined>, v.ObjectSchema<{
|
|
2446
|
+
readonly id: v.StringSchema<undefined>;
|
|
2447
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
2448
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2449
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
2450
|
+
readonly id: v.StringSchema<undefined>;
|
|
2451
|
+
}, undefined>, v.ObjectSchema<{
|
|
2452
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
2453
|
+
readonly id: v.StringSchema<undefined>;
|
|
2454
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2455
|
+
}, undefined>], undefined>, undefined>;
|
|
2456
|
+
}, undefined>, v.ObjectSchema<{
|
|
2457
|
+
readonly id: v.StringSchema<undefined>;
|
|
2458
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
2459
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2460
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
2461
|
+
readonly id: v.StringSchema<undefined>;
|
|
2462
|
+
}, undefined>, undefined>;
|
|
2463
|
+
}, undefined>, v.ObjectSchema<{
|
|
2464
|
+
readonly id: v.StringSchema<undefined>;
|
|
2465
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2466
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2467
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2468
|
+
readonly name: v.StringSchema<undefined>;
|
|
2469
|
+
readonly external: v.ObjectSchema<{
|
|
2470
|
+
readonly url: v.StringSchema<undefined>;
|
|
2471
|
+
}, undefined>;
|
|
2472
|
+
}, undefined>, v.ObjectSchema<{
|
|
2473
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2474
|
+
readonly name: v.StringSchema<undefined>;
|
|
2475
|
+
readonly file: v.ObjectSchema<{
|
|
2476
|
+
readonly url: v.StringSchema<undefined>;
|
|
2477
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2478
|
+
}, undefined>;
|
|
2479
|
+
}, undefined>], undefined>, undefined>;
|
|
2480
|
+
}, undefined>, v.ObjectSchema<{
|
|
2481
|
+
readonly id: v.StringSchema<undefined>;
|
|
2482
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
2483
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
2484
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
2485
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
2486
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2487
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2488
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2489
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2490
|
+
}, undefined>, undefined>;
|
|
2491
|
+
}, undefined>, v.ObjectSchema<{
|
|
2492
|
+
readonly id: v.StringSchema<undefined>;
|
|
2493
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
2494
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2495
|
+
}, undefined>, v.ObjectSchema<{
|
|
2496
|
+
readonly id: v.StringSchema<undefined>;
|
|
2497
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
2498
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2499
|
+
}, undefined>, v.ObjectSchema<{
|
|
2500
|
+
readonly id: v.StringSchema<undefined>;
|
|
2501
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
2502
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
2503
|
+
readonly id: v.StringSchema<undefined>;
|
|
2504
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2505
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2506
|
+
}, undefined>, undefined>;
|
|
2507
|
+
}, undefined>, v.ObjectSchema<{
|
|
2508
|
+
readonly id: v.StringSchema<undefined>;
|
|
2509
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
2510
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
2511
|
+
readonly id: v.StringSchema<undefined>;
|
|
2512
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2513
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2514
|
+
}, undefined>, undefined>;
|
|
2515
|
+
}, undefined>, v.ObjectSchema<{
|
|
2516
|
+
readonly id: v.StringSchema<undefined>;
|
|
2517
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2518
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
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<{
|
|
2534
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
2535
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
2536
|
+
}, undefined>, v.ObjectSchema<{
|
|
2537
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
2538
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
2539
|
+
readonly id: v.StringSchema<undefined>;
|
|
2540
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2541
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2542
|
+
}, undefined>;
|
|
2543
|
+
}, undefined>, v.ObjectSchema<{
|
|
2544
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2545
|
+
readonly external: v.ObjectSchema<{
|
|
2546
|
+
readonly url: v.StringSchema<undefined>;
|
|
2547
|
+
}, undefined>;
|
|
2548
|
+
}, undefined>, v.ObjectSchema<{
|
|
2549
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2550
|
+
readonly file: v.ObjectSchema<{
|
|
2551
|
+
readonly url: v.StringSchema<undefined>;
|
|
2552
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2553
|
+
}, undefined>;
|
|
2554
|
+
}, undefined>], undefined>, undefined>, null>;
|
|
2555
|
+
readonly cover: v.OptionalSchema<v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2556
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2557
|
+
readonly external: v.ObjectSchema<{
|
|
2558
|
+
readonly url: v.StringSchema<undefined>;
|
|
2559
|
+
}, undefined>;
|
|
2560
|
+
}, undefined>, v.ObjectSchema<{
|
|
2561
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2562
|
+
readonly file: v.ObjectSchema<{
|
|
2563
|
+
readonly url: v.StringSchema<undefined>;
|
|
2564
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2565
|
+
}, 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>;
|
|
2569
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
2570
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
2571
|
+
}, undefined>, v.ObjectSchema<{
|
|
2572
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
2573
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2574
|
+
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2575
|
+
readonly type: v.LiteralSchema<"page_id", undefined>;
|
|
2576
|
+
readonly page_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
2577
|
+
}, undefined>, v.ObjectSchema<{
|
|
2578
|
+
readonly type: v.LiteralSchema<"data_source_id", undefined>;
|
|
2579
|
+
readonly data_source_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionDataSourceId">]>;
|
|
2580
|
+
}, undefined>, v.ObjectSchema<{
|
|
2581
|
+
readonly type: v.LiteralSchema<"workspace", undefined>;
|
|
2582
|
+
readonly workspace: v.LiteralSchema<true, undefined>;
|
|
2583
|
+
}, undefined>, v.ObjectSchema<{
|
|
2584
|
+
readonly type: v.LiteralSchema<"block_id", undefined>;
|
|
2585
|
+
readonly block_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionBlockId">]>;
|
|
2586
|
+
}, undefined>, v.ObjectSchema<{
|
|
2587
|
+
readonly type: v.LiteralSchema<"agent_id", undefined>;
|
|
2588
|
+
readonly agent_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionAgentId">]>;
|
|
2589
|
+
}, undefined>, v.ObjectSchema<{
|
|
2590
|
+
readonly type: v.LiteralSchema<"unavailable", undefined>;
|
|
2591
|
+
}, undefined>], undefined>;
|
|
2592
|
+
readonly properties: v.RecordSchema<v.StringSchema<undefined>, v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2593
|
+
readonly id: v.StringSchema<undefined>;
|
|
2594
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
2595
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2596
|
+
}, undefined>, v.ObjectSchema<{
|
|
2597
|
+
readonly id: v.StringSchema<undefined>;
|
|
2598
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
2599
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2600
|
+
}, undefined>, v.ObjectSchema<{
|
|
2601
|
+
readonly id: v.StringSchema<undefined>;
|
|
2602
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
2603
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
2604
|
+
}, undefined>, v.ObjectSchema<{
|
|
2605
|
+
readonly id: v.StringSchema<undefined>;
|
|
2606
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
2607
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2608
|
+
}, undefined>, v.ObjectSchema<{
|
|
2609
|
+
readonly id: v.StringSchema<undefined>;
|
|
2610
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
2611
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2612
|
+
}, undefined>, v.ObjectSchema<{
|
|
2613
|
+
readonly id: v.StringSchema<undefined>;
|
|
2614
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
2615
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2616
|
+
}, undefined>, v.ObjectSchema<{
|
|
2617
|
+
readonly id: v.StringSchema<undefined>;
|
|
2618
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
2619
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
2620
|
+
}, undefined>, v.ObjectSchema<{
|
|
2621
|
+
readonly id: v.StringSchema<undefined>;
|
|
2622
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
2623
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2624
|
+
readonly id: v.StringSchema<undefined>;
|
|
2625
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2626
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2627
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2628
|
+
}, undefined>, v.ObjectSchema<{
|
|
2629
|
+
readonly name: v.StringSchema<undefined>;
|
|
2630
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2631
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2632
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2633
|
+
}, undefined>], undefined>, undefined>;
|
|
2634
|
+
}, undefined>, v.ObjectSchema<{
|
|
2635
|
+
readonly id: v.StringSchema<undefined>;
|
|
2636
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
2637
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2638
|
+
readonly id: v.StringSchema<undefined>;
|
|
2639
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2640
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2641
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2642
|
+
}, undefined>, v.ObjectSchema<{
|
|
2643
|
+
readonly name: v.StringSchema<undefined>;
|
|
2644
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2645
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2646
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2647
|
+
}, undefined>], undefined>, undefined>;
|
|
2648
|
+
}, undefined>, v.ObjectSchema<{
|
|
2649
|
+
readonly id: v.StringSchema<undefined>;
|
|
2650
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
2651
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2652
|
+
readonly id: v.StringSchema<undefined>;
|
|
2653
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2654
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2655
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2656
|
+
}, undefined>, v.ObjectSchema<{
|
|
2657
|
+
readonly name: v.StringSchema<undefined>;
|
|
2658
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2659
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2660
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2661
|
+
}, undefined>], undefined>, undefined>;
|
|
2662
|
+
}, undefined>, v.ObjectSchema<{
|
|
2663
|
+
readonly id: v.StringSchema<undefined>;
|
|
2664
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
2665
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
2666
|
+
readonly start: v.StringSchema<undefined>;
|
|
2667
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2668
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2669
|
+
}, undefined>, undefined>;
|
|
2670
|
+
}, undefined>, v.ObjectSchema<{
|
|
2671
|
+
readonly id: v.StringSchema<undefined>;
|
|
2672
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
2673
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2674
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
2675
|
+
readonly id: v.StringSchema<undefined>;
|
|
2676
|
+
}, undefined>, v.ObjectSchema<{
|
|
2677
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
2678
|
+
readonly id: v.StringSchema<undefined>;
|
|
2679
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2680
|
+
}, undefined>], undefined>, undefined>;
|
|
2681
|
+
}, undefined>, v.ObjectSchema<{
|
|
2682
|
+
readonly id: v.StringSchema<undefined>;
|
|
2683
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
2684
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2685
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
2686
|
+
readonly id: v.StringSchema<undefined>;
|
|
2687
|
+
}, undefined>, undefined>;
|
|
2688
|
+
}, undefined>, v.ObjectSchema<{
|
|
2689
|
+
readonly id: v.StringSchema<undefined>;
|
|
2690
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2691
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2692
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2693
|
+
readonly name: v.StringSchema<undefined>;
|
|
2694
|
+
readonly external: v.ObjectSchema<{
|
|
2695
|
+
readonly url: v.StringSchema<undefined>;
|
|
2696
|
+
}, undefined>;
|
|
2697
|
+
}, undefined>, v.ObjectSchema<{
|
|
2698
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2699
|
+
readonly name: v.StringSchema<undefined>;
|
|
2700
|
+
readonly file: v.ObjectSchema<{
|
|
2701
|
+
readonly url: v.StringSchema<undefined>;
|
|
2702
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2703
|
+
}, undefined>;
|
|
2704
|
+
}, undefined>], undefined>, undefined>;
|
|
2705
|
+
}, undefined>, v.ObjectSchema<{
|
|
2706
|
+
readonly id: v.StringSchema<undefined>;
|
|
2707
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
2708
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
2709
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
2710
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
2711
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2712
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2713
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2714
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2715
|
+
}, undefined>, undefined>;
|
|
2716
|
+
}, undefined>, v.ObjectSchema<{
|
|
2717
|
+
readonly id: v.StringSchema<undefined>;
|
|
2718
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
2719
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2720
|
+
}, undefined>, v.ObjectSchema<{
|
|
2721
|
+
readonly id: v.StringSchema<undefined>;
|
|
2722
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
2723
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2724
|
+
}, undefined>, v.ObjectSchema<{
|
|
2725
|
+
readonly id: v.StringSchema<undefined>;
|
|
2726
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
2727
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
2728
|
+
readonly id: v.StringSchema<undefined>;
|
|
2729
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2730
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2731
|
+
}, undefined>, undefined>;
|
|
2732
|
+
}, undefined>, v.ObjectSchema<{
|
|
2733
|
+
readonly id: v.StringSchema<undefined>;
|
|
2734
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
2735
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
2736
|
+
readonly id: v.StringSchema<undefined>;
|
|
2737
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2738
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2739
|
+
}, undefined>, undefined>;
|
|
2740
|
+
}, undefined>, v.ObjectSchema<{
|
|
2741
|
+
readonly id: v.StringSchema<undefined>;
|
|
2742
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2743
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2744
|
+
}, undefined>], undefined>, undefined>;
|
|
2745
|
+
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2746
|
+
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2747
|
+
readonly icon: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2748
|
+
readonly type: v.LiteralSchema<"emoji", undefined>;
|
|
2749
|
+
readonly emoji: v.StringSchema<undefined>;
|
|
2750
|
+
}, undefined>, v.ObjectSchema<{
|
|
2751
|
+
readonly type: v.LiteralSchema<"custom_emoji", undefined>;
|
|
2752
|
+
readonly custom_emoji: v.ObjectSchema<{
|
|
2753
|
+
readonly id: v.StringSchema<undefined>;
|
|
2754
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2755
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2756
|
+
}, undefined>;
|
|
2757
|
+
}, undefined>, v.ObjectSchema<{
|
|
2758
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2759
|
+
readonly external: v.ObjectSchema<{
|
|
2760
|
+
readonly url: v.StringSchema<undefined>;
|
|
2761
|
+
}, undefined>;
|
|
2762
|
+
}, undefined>, v.ObjectSchema<{
|
|
2763
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2764
|
+
readonly file: v.ObjectSchema<{
|
|
2765
|
+
readonly url: v.StringSchema<undefined>;
|
|
2766
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2767
|
+
}, undefined>;
|
|
2768
|
+
}, undefined>], undefined>, undefined>;
|
|
2769
|
+
readonly cover: v.OptionalSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
2770
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2771
|
+
readonly external: v.ObjectSchema<{
|
|
2772
|
+
readonly url: v.StringSchema<undefined>;
|
|
2773
|
+
}, undefined>;
|
|
2774
|
+
}, undefined>, v.ObjectSchema<{
|
|
2775
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2776
|
+
readonly file: v.ObjectSchema<{
|
|
2777
|
+
readonly url: v.StringSchema<undefined>;
|
|
2778
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2779
|
+
}, undefined>;
|
|
2780
|
+
}, undefined>], undefined>, undefined>;
|
|
2781
|
+
readonly url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2782
|
+
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2783
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
2784
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
2785
|
+
}, undefined>], undefined>;
|
|
2786
|
+
}, undefined>, v.ObjectSchema<{
|
|
2787
|
+
readonly type: v.LiteralSchema<"getPageResult", undefined>;
|
|
2788
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2789
|
+
readonly status: v.LiteralSchema<"error", undefined>;
|
|
2790
|
+
readonly error: v.ObjectSchema<{
|
|
2791
|
+
readonly code: v.StringSchema<undefined>;
|
|
2792
|
+
readonly message: v.StringSchema<undefined>;
|
|
2793
|
+
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
2794
|
+
}, undefined>;
|
|
2795
|
+
}, undefined>], undefined>, v.VariantSchema<"status", [v.ObjectSchema<{
|
|
2796
|
+
readonly type: v.LiteralSchema<"createPageResult", undefined>;
|
|
2797
|
+
readonly requestId: v.StringSchema<undefined>;
|
|
2798
|
+
readonly status: v.LiteralSchema<"success", undefined>;
|
|
2799
|
+
readonly page: v.UnionSchema<[v.ObjectSchema<{
|
|
2800
|
+
readonly object: v.LiteralSchema<"page", undefined>;
|
|
2801
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
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<{
|
|
2821
|
+
readonly id: v.StringSchema<undefined>;
|
|
2822
|
+
readonly type: v.LiteralSchema<"title", undefined>;
|
|
2823
|
+
readonly title: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2824
|
+
}, undefined>, v.ObjectSchema<{
|
|
2825
|
+
readonly id: v.StringSchema<undefined>;
|
|
2826
|
+
readonly type: v.LiteralSchema<"rich_text", undefined>;
|
|
2827
|
+
readonly rich_text: v.ArraySchema<v.RecordSchema<v.StringSchema<undefined>, v.UnknownSchema, undefined>, undefined>;
|
|
2828
|
+
}, undefined>, v.ObjectSchema<{
|
|
2829
|
+
readonly id: v.StringSchema<undefined>;
|
|
2830
|
+
readonly type: v.LiteralSchema<"number", undefined>;
|
|
2831
|
+
readonly number: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
2832
|
+
}, undefined>, v.ObjectSchema<{
|
|
2833
|
+
readonly id: v.StringSchema<undefined>;
|
|
2834
|
+
readonly type: v.LiteralSchema<"url", undefined>;
|
|
2835
|
+
readonly url: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2836
|
+
}, undefined>, v.ObjectSchema<{
|
|
2837
|
+
readonly id: v.StringSchema<undefined>;
|
|
2838
|
+
readonly type: v.LiteralSchema<"email", undefined>;
|
|
2839
|
+
readonly email: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2840
|
+
}, undefined>, v.ObjectSchema<{
|
|
2841
|
+
readonly id: v.StringSchema<undefined>;
|
|
2842
|
+
readonly type: v.LiteralSchema<"phone_number", undefined>;
|
|
2843
|
+
readonly phone_number: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2844
|
+
}, undefined>, v.ObjectSchema<{
|
|
2845
|
+
readonly id: v.StringSchema<undefined>;
|
|
2846
|
+
readonly type: v.LiteralSchema<"checkbox", undefined>;
|
|
2847
|
+
readonly checkbox: v.BooleanSchema<undefined>;
|
|
2848
|
+
}, undefined>, v.ObjectSchema<{
|
|
2849
|
+
readonly id: v.StringSchema<undefined>;
|
|
2850
|
+
readonly type: v.LiteralSchema<"select", undefined>;
|
|
2851
|
+
readonly select: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2852
|
+
readonly id: v.StringSchema<undefined>;
|
|
2853
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2854
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2855
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2856
|
+
}, undefined>, v.ObjectSchema<{
|
|
2857
|
+
readonly name: v.StringSchema<undefined>;
|
|
2858
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2859
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2860
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2861
|
+
}, undefined>], undefined>, undefined>;
|
|
2862
|
+
}, undefined>, v.ObjectSchema<{
|
|
2863
|
+
readonly id: v.StringSchema<undefined>;
|
|
2864
|
+
readonly type: v.LiteralSchema<"status", undefined>;
|
|
2865
|
+
readonly status: v.NullableSchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2866
|
+
readonly id: v.StringSchema<undefined>;
|
|
2867
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2868
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2869
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2870
|
+
}, undefined>, v.ObjectSchema<{
|
|
2871
|
+
readonly name: v.StringSchema<undefined>;
|
|
2872
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2873
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2874
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2875
|
+
}, undefined>], undefined>, undefined>;
|
|
2876
|
+
}, undefined>, v.ObjectSchema<{
|
|
2877
|
+
readonly id: v.StringSchema<undefined>;
|
|
2878
|
+
readonly type: v.LiteralSchema<"multi_select", undefined>;
|
|
2879
|
+
readonly multi_select: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2880
|
+
readonly id: v.StringSchema<undefined>;
|
|
2881
|
+
readonly name: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2882
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2883
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2884
|
+
}, undefined>, v.ObjectSchema<{
|
|
2885
|
+
readonly name: v.StringSchema<undefined>;
|
|
2886
|
+
readonly id: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2887
|
+
readonly color: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2888
|
+
readonly description: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2889
|
+
}, undefined>], undefined>, undefined>;
|
|
2890
|
+
}, undefined>, v.ObjectSchema<{
|
|
2891
|
+
readonly id: v.StringSchema<undefined>;
|
|
2892
|
+
readonly type: v.LiteralSchema<"date", undefined>;
|
|
2893
|
+
readonly date: v.NullableSchema<v.ObjectSchema<{
|
|
2894
|
+
readonly start: v.StringSchema<undefined>;
|
|
2895
|
+
readonly end: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2896
|
+
readonly time_zone: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2897
|
+
}, undefined>, undefined>;
|
|
2898
|
+
}, undefined>, v.ObjectSchema<{
|
|
2899
|
+
readonly id: v.StringSchema<undefined>;
|
|
2900
|
+
readonly type: v.LiteralSchema<"people", undefined>;
|
|
2901
|
+
readonly people: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2902
|
+
readonly object: v.OptionalSchema<v.LiteralSchema<"user", undefined>, undefined>;
|
|
2903
|
+
readonly id: v.StringSchema<undefined>;
|
|
2904
|
+
}, undefined>, v.ObjectSchema<{
|
|
2905
|
+
readonly object: v.LiteralSchema<"group", undefined>;
|
|
2906
|
+
readonly id: v.StringSchema<undefined>;
|
|
2907
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2908
|
+
}, undefined>], undefined>, undefined>;
|
|
2909
|
+
}, undefined>, v.ObjectSchema<{
|
|
2910
|
+
readonly id: v.StringSchema<undefined>;
|
|
2911
|
+
readonly type: v.LiteralSchema<"relation", undefined>;
|
|
2912
|
+
readonly has_more: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2913
|
+
readonly relation: v.ArraySchema<v.ObjectSchema<{
|
|
2914
|
+
readonly id: v.StringSchema<undefined>;
|
|
2915
|
+
}, undefined>, undefined>;
|
|
2916
|
+
}, undefined>, v.ObjectSchema<{
|
|
2917
|
+
readonly id: v.StringSchema<undefined>;
|
|
2918
|
+
readonly type: v.LiteralSchema<"files", undefined>;
|
|
2919
|
+
readonly files: v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
2920
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
2921
|
+
readonly name: v.StringSchema<undefined>;
|
|
2922
|
+
readonly external: v.ObjectSchema<{
|
|
2923
|
+
readonly url: v.StringSchema<undefined>;
|
|
2924
|
+
}, undefined>;
|
|
2925
|
+
}, undefined>, v.ObjectSchema<{
|
|
2926
|
+
readonly type: v.LiteralSchema<"file", undefined>;
|
|
2927
|
+
readonly name: v.StringSchema<undefined>;
|
|
2928
|
+
readonly file: v.ObjectSchema<{
|
|
2929
|
+
readonly url: v.StringSchema<undefined>;
|
|
2930
|
+
readonly expiry_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2931
|
+
}, undefined>;
|
|
2932
|
+
}, undefined>], undefined>, undefined>;
|
|
2933
|
+
}, undefined>, v.ObjectSchema<{
|
|
2934
|
+
readonly id: v.StringSchema<undefined>;
|
|
2935
|
+
readonly type: v.LiteralSchema<"place", undefined>;
|
|
2936
|
+
readonly place: v.NullableSchema<v.ObjectSchema<{
|
|
2937
|
+
readonly lat: v.NumberSchema<undefined>;
|
|
2938
|
+
readonly lon: v.NumberSchema<undefined>;
|
|
2939
|
+
readonly name: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2940
|
+
readonly address: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2941
|
+
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2942
|
+
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
2943
|
+
}, undefined>, undefined>;
|
|
2944
|
+
}, undefined>, v.ObjectSchema<{
|
|
2945
|
+
readonly id: v.StringSchema<undefined>;
|
|
2946
|
+
readonly type: v.LiteralSchema<"created_time", undefined>;
|
|
2947
|
+
readonly created_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2948
|
+
}, undefined>, v.ObjectSchema<{
|
|
2949
|
+
readonly id: v.StringSchema<undefined>;
|
|
2950
|
+
readonly type: v.LiteralSchema<"last_edited_time", undefined>;
|
|
2951
|
+
readonly last_edited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2952
|
+
}, undefined>, v.ObjectSchema<{
|
|
2953
|
+
readonly id: v.StringSchema<undefined>;
|
|
2954
|
+
readonly type: v.LiteralSchema<"created_by", undefined>;
|
|
2955
|
+
readonly created_by: v.NullableSchema<v.ObjectSchema<{
|
|
2956
|
+
readonly id: v.StringSchema<undefined>;
|
|
2957
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2958
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2959
|
+
}, undefined>, undefined>;
|
|
2960
|
+
}, undefined>, v.ObjectSchema<{
|
|
2961
|
+
readonly id: v.StringSchema<undefined>;
|
|
2962
|
+
readonly type: v.LiteralSchema<"last_edited_by", undefined>;
|
|
2963
|
+
readonly last_edited_by: v.NullableSchema<v.ObjectSchema<{
|
|
2964
|
+
readonly id: v.StringSchema<undefined>;
|
|
2965
|
+
readonly table: v.PicklistSchema<["notion_user", "bot", "organization_bot"], undefined>;
|
|
2966
|
+
readonly spaceId: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
2967
|
+
}, undefined>, undefined>;
|
|
2968
|
+
}, undefined>, v.ObjectSchema<{
|
|
2969
|
+
readonly id: v.StringSchema<undefined>;
|
|
2970
|
+
readonly type: v.LiteralSchema<"last_visited_time", undefined>;
|
|
2971
|
+
readonly last_visited_time: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
2972
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
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>;
|
|
3022
|
+
readonly is_archived: v.BooleanSchema<undefined>;
|
|
3023
|
+
readonly in_trash: v.BooleanSchema<undefined>;
|
|
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>;
|
|
3081
|
+
}, undefined>, v.ObjectSchema<{
|
|
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>;
|
|
3086
|
+
}, undefined>], undefined>, undefined>;
|
|
3087
|
+
}, undefined>, v.ObjectSchema<{
|
|
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>;
|
|
3095
|
+
}, undefined>, v.ObjectSchema<{
|
|
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>;
|
|
3100
|
+
}, undefined>], undefined>, undefined>;
|
|
3101
|
+
}, undefined>, v.ObjectSchema<{
|
|
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>;
|
|
3109
|
+
}, undefined>, v.ObjectSchema<{
|
|
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>;
|
|
3114
|
+
}, undefined>], undefined>, undefined>;
|
|
3115
|
+
}, undefined>, v.ObjectSchema<{
|
|
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>;
|
|
997
3239
|
}, undefined>, v.ObjectSchema<{
|
|
998
|
-
readonly type: v.LiteralSchema<"
|
|
3240
|
+
readonly type: v.LiteralSchema<"createPageResult", undefined>;
|
|
999
3241
|
readonly requestId: v.StringSchema<undefined>;
|
|
1000
3242
|
readonly status: v.LiteralSchema<"error", undefined>;
|
|
1001
3243
|
readonly error: v.ObjectSchema<{
|
|
@@ -1007,7 +3249,232 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1007
3249
|
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
1008
3250
|
readonly requestId: v.StringSchema<undefined>;
|
|
1009
3251
|
readonly status: v.LiteralSchema<"success", undefined>;
|
|
1010
|
-
readonly page: v.ObjectSchema<{
|
|
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<{
|
|
1011
3478
|
readonly object: v.LiteralSchema<"page", undefined>;
|
|
1012
3479
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.BrandAction<string, "NotionPageId">]>;
|
|
1013
3480
|
readonly parent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -1152,6 +3619,34 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1152
3619
|
readonly aws_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1153
3620
|
readonly google_place_id: v.OptionalSchema<v.NullableSchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
1154
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>;
|
|
1155
3650
|
}, undefined>], undefined>, undefined>;
|
|
1156
3651
|
readonly created_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1157
3652
|
readonly last_edited_time: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -1193,7 +3688,7 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1193
3688
|
readonly public_url: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
1194
3689
|
readonly is_archived: v.BooleanSchema<undefined>;
|
|
1195
3690
|
readonly in_trash: v.BooleanSchema<undefined>;
|
|
1196
|
-
}, undefined>;
|
|
3691
|
+
}, undefined>], undefined>;
|
|
1197
3692
|
}, undefined>, v.ObjectSchema<{
|
|
1198
3693
|
readonly type: v.LiteralSchema<"updatePageResult", undefined>;
|
|
1199
3694
|
readonly requestId: v.StringSchema<undefined>;
|
|
@@ -1203,8 +3698,6 @@ export declare const hostToSandboxMessageSchema: v.VariantSchema<"type", [v.Vari
|
|
|
1203
3698
|
readonly message: v.StringSchema<undefined>;
|
|
1204
3699
|
readonly isRetryable: v.BooleanSchema<undefined>;
|
|
1205
3700
|
}, undefined>;
|
|
1206
|
-
}, undefined>], undefined
|
|
1207
|
-
readonly type: v.LiteralSchema<"invalidSandboxMessage", undefined>;
|
|
1208
|
-
readonly reason: v.StringSchema<undefined>;
|
|
1209
|
-
}, undefined>], undefined>;
|
|
3701
|
+
}, undefined>], undefined>], undefined>;
|
|
1210
3702
|
export type HostToSandboxMessage = v.InferOutput<typeof hostToSandboxMessageSchema>;
|
|
3703
|
+
export type HostToSandboxMessageLegacy = v.InferOutput<typeof hostToSandboxMessageLegacySchema>;
|