@notionhq/client 5.11.0 → 5.12.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 +17 -0
- package/build/package.json +1 -1
- package/build/src/Client.js +1 -1
- package/build/src/Client.js.map +1 -1
- package/build/src/api-endpoints.d.ts +192 -87
- package/build/src/api-endpoints.d.ts.map +1 -1
- package/build/src/api-endpoints.js +6 -6
- package/build/src/api-endpoints.js.map +1 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -38,8 +38,9 @@ export type AudioBlockObjectResponse = {
|
|
|
38
38
|
last_edited_time: string;
|
|
39
39
|
last_edited_by: PartialUserObjectResponse;
|
|
40
40
|
has_children: boolean;
|
|
41
|
-
archived: boolean;
|
|
42
41
|
in_trash: boolean;
|
|
42
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
43
|
+
archived: boolean;
|
|
43
44
|
};
|
|
44
45
|
type BlockIdCommentParentResponse = {
|
|
45
46
|
type: "block_id";
|
|
@@ -368,7 +369,7 @@ export type BlockObjectRequestWithoutChildren = {
|
|
|
368
369
|
type?: "synced_block";
|
|
369
370
|
object?: "block";
|
|
370
371
|
};
|
|
371
|
-
export type BlockObjectResponse = ParagraphBlockObjectResponse | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | BulletedListItemBlockObjectResponse | NumberedListItemBlockObjectResponse | QuoteBlockObjectResponse | ToDoBlockObjectResponse | ToggleBlockObjectResponse | TemplateBlockObjectResponse | SyncedBlockBlockObjectResponse | ChildPageBlockObjectResponse | ChildDatabaseBlockObjectResponse | EquationBlockObjectResponse | CodeBlockObjectResponse | CalloutBlockObjectResponse | DividerBlockObjectResponse | BreadcrumbBlockObjectResponse | TableOfContentsBlockObjectResponse | ColumnListBlockObjectResponse | ColumnBlockObjectResponse | LinkToPageBlockObjectResponse | TableBlockObjectResponse | TableRowBlockObjectResponse | TranscriptionBlockObjectResponse | EmbedBlockObjectResponse | BookmarkBlockObjectResponse | ImageBlockObjectResponse | VideoBlockObjectResponse | PdfBlockObjectResponse | FileBlockObjectResponse | AudioBlockObjectResponse | LinkPreviewBlockObjectResponse | UnsupportedBlockObjectResponse;
|
|
372
|
+
export type BlockObjectResponse = ParagraphBlockObjectResponse | Heading1BlockObjectResponse | Heading2BlockObjectResponse | Heading3BlockObjectResponse | BulletedListItemBlockObjectResponse | NumberedListItemBlockObjectResponse | QuoteBlockObjectResponse | ToDoBlockObjectResponse | ToggleBlockObjectResponse | TemplateBlockObjectResponse | SyncedBlockBlockObjectResponse | ChildPageBlockObjectResponse | ChildDatabaseBlockObjectResponse | EquationBlockObjectResponse | CodeBlockObjectResponse | CalloutBlockObjectResponse | DividerBlockObjectResponse | BreadcrumbBlockObjectResponse | TableOfContentsBlockObjectResponse | ColumnListBlockObjectResponse | ColumnBlockObjectResponse | LinkToPageBlockObjectResponse | TableBlockObjectResponse | TableRowBlockObjectResponse | MeetingNotesBlockObjectResponse | TranscriptionBlockObjectResponse | EmbedBlockObjectResponse | BookmarkBlockObjectResponse | ImageBlockObjectResponse | VideoBlockObjectResponse | PdfBlockObjectResponse | FileBlockObjectResponse | AudioBlockObjectResponse | LinkPreviewBlockObjectResponse | UnsupportedBlockObjectResponse;
|
|
372
373
|
type BlockObjectWithSingleLevelOfChildrenRequest = {
|
|
373
374
|
embed: MediaContentWithUrlAndCaptionRequest;
|
|
374
375
|
type?: "embed";
|
|
@@ -523,8 +524,9 @@ export type BookmarkBlockObjectResponse = {
|
|
|
523
524
|
last_edited_time: string;
|
|
524
525
|
last_edited_by: PartialUserObjectResponse;
|
|
525
526
|
has_children: boolean;
|
|
526
|
-
archived: boolean;
|
|
527
527
|
in_trash: boolean;
|
|
528
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
529
|
+
archived: boolean;
|
|
528
530
|
};
|
|
529
531
|
type BooleanFormulaPropertyResponse = {
|
|
530
532
|
type: "boolean";
|
|
@@ -572,8 +574,9 @@ export type BreadcrumbBlockObjectResponse = {
|
|
|
572
574
|
last_edited_time: string;
|
|
573
575
|
last_edited_by: PartialUserObjectResponse;
|
|
574
576
|
has_children: boolean;
|
|
575
|
-
archived: boolean;
|
|
576
577
|
in_trash: boolean;
|
|
578
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
579
|
+
archived: boolean;
|
|
577
580
|
};
|
|
578
581
|
export type BulletedListItemBlockObjectResponse = {
|
|
579
582
|
type: "bulleted_list_item";
|
|
@@ -586,8 +589,9 @@ export type BulletedListItemBlockObjectResponse = {
|
|
|
586
589
|
last_edited_time: string;
|
|
587
590
|
last_edited_by: PartialUserObjectResponse;
|
|
588
591
|
has_children: boolean;
|
|
589
|
-
archived: boolean;
|
|
590
592
|
in_trash: boolean;
|
|
593
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
594
|
+
archived: boolean;
|
|
591
595
|
};
|
|
592
596
|
type ButtonPropertyConfigurationRequest = {
|
|
593
597
|
type?: "button";
|
|
@@ -618,8 +622,9 @@ export type CalloutBlockObjectResponse = {
|
|
|
618
622
|
last_edited_time: string;
|
|
619
623
|
last_edited_by: PartialUserObjectResponse;
|
|
620
624
|
has_children: boolean;
|
|
621
|
-
archived: boolean;
|
|
622
625
|
in_trash: boolean;
|
|
626
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
627
|
+
archived: boolean;
|
|
623
628
|
};
|
|
624
629
|
type CheckboxDatabasePropertyConfigResponse = {
|
|
625
630
|
type: "checkbox";
|
|
@@ -655,8 +660,9 @@ export type ChildDatabaseBlockObjectResponse = {
|
|
|
655
660
|
last_edited_time: string;
|
|
656
661
|
last_edited_by: PartialUserObjectResponse;
|
|
657
662
|
has_children: boolean;
|
|
658
|
-
archived: boolean;
|
|
659
663
|
in_trash: boolean;
|
|
664
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
665
|
+
archived: boolean;
|
|
660
666
|
};
|
|
661
667
|
export type ChildPageBlockObjectResponse = {
|
|
662
668
|
type: "child_page";
|
|
@@ -669,8 +675,9 @@ export type ChildPageBlockObjectResponse = {
|
|
|
669
675
|
last_edited_time: string;
|
|
670
676
|
last_edited_by: PartialUserObjectResponse;
|
|
671
677
|
has_children: boolean;
|
|
672
|
-
archived: boolean;
|
|
673
678
|
in_trash: boolean;
|
|
679
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
680
|
+
archived: boolean;
|
|
674
681
|
};
|
|
675
682
|
export type CodeBlockObjectResponse = {
|
|
676
683
|
type: "code";
|
|
@@ -687,8 +694,9 @@ export type CodeBlockObjectResponse = {
|
|
|
687
694
|
last_edited_time: string;
|
|
688
695
|
last_edited_by: PartialUserObjectResponse;
|
|
689
696
|
has_children: boolean;
|
|
690
|
-
archived: boolean;
|
|
691
697
|
in_trash: boolean;
|
|
698
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
699
|
+
archived: boolean;
|
|
692
700
|
};
|
|
693
701
|
export type ColumnBlockObjectResponse = {
|
|
694
702
|
type: "column";
|
|
@@ -701,8 +709,9 @@ export type ColumnBlockObjectResponse = {
|
|
|
701
709
|
last_edited_time: string;
|
|
702
710
|
last_edited_by: PartialUserObjectResponse;
|
|
703
711
|
has_children: boolean;
|
|
704
|
-
archived: boolean;
|
|
705
712
|
in_trash: boolean;
|
|
713
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
714
|
+
archived: boolean;
|
|
706
715
|
};
|
|
707
716
|
type ColumnBlockWithChildrenRequest = {
|
|
708
717
|
column: ColumnWithChildrenRequest;
|
|
@@ -720,8 +729,9 @@ export type ColumnListBlockObjectResponse = {
|
|
|
720
729
|
last_edited_time: string;
|
|
721
730
|
last_edited_by: PartialUserObjectResponse;
|
|
722
731
|
has_children: boolean;
|
|
723
|
-
archived: boolean;
|
|
724
732
|
in_trash: boolean;
|
|
733
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
734
|
+
archived: boolean;
|
|
725
735
|
};
|
|
726
736
|
type ColumnListRequest = {
|
|
727
737
|
children: Array<ColumnBlockWithChildrenRequest>;
|
|
@@ -859,8 +869,9 @@ export type DataSourceObjectResponse = {
|
|
|
859
869
|
parent: ParentOfDataSourceResponse;
|
|
860
870
|
database_parent: ParentOfDatabaseResponse;
|
|
861
871
|
is_inline: boolean;
|
|
862
|
-
archived: boolean;
|
|
863
872
|
in_trash: boolean;
|
|
873
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
874
|
+
archived: boolean;
|
|
864
875
|
created_time: string;
|
|
865
876
|
last_edited_time: string;
|
|
866
877
|
created_by: PartialUserObjectResponse;
|
|
@@ -888,6 +899,8 @@ export type DatabaseObjectResponse = {
|
|
|
888
899
|
parent: ParentOfDatabaseResponse;
|
|
889
900
|
is_inline: boolean;
|
|
890
901
|
in_trash: boolean;
|
|
902
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
903
|
+
archived: boolean;
|
|
891
904
|
is_locked: boolean;
|
|
892
905
|
created_time: string;
|
|
893
906
|
last_edited_time: string;
|
|
@@ -988,8 +1001,9 @@ export type DividerBlockObjectResponse = {
|
|
|
988
1001
|
last_edited_time: string;
|
|
989
1002
|
last_edited_by: PartialUserObjectResponse;
|
|
990
1003
|
has_children: boolean;
|
|
991
|
-
archived: boolean;
|
|
992
1004
|
in_trash: boolean;
|
|
1005
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1006
|
+
archived: boolean;
|
|
993
1007
|
};
|
|
994
1008
|
type DualPropertyDatabasePropertyRelationConfigResponse = {
|
|
995
1009
|
type?: "dual_property";
|
|
@@ -1027,8 +1041,9 @@ export type EmbedBlockObjectResponse = {
|
|
|
1027
1041
|
last_edited_time: string;
|
|
1028
1042
|
last_edited_by: PartialUserObjectResponse;
|
|
1029
1043
|
has_children: boolean;
|
|
1030
|
-
archived: boolean;
|
|
1031
1044
|
in_trash: boolean;
|
|
1045
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1046
|
+
archived: boolean;
|
|
1032
1047
|
};
|
|
1033
1048
|
type EmojiPageIconRequest = {
|
|
1034
1049
|
type?: "emoji";
|
|
@@ -1051,8 +1066,9 @@ export type EquationBlockObjectResponse = {
|
|
|
1051
1066
|
last_edited_time: string;
|
|
1052
1067
|
last_edited_by: PartialUserObjectResponse;
|
|
1053
1068
|
has_children: boolean;
|
|
1054
|
-
archived: boolean;
|
|
1055
1069
|
in_trash: boolean;
|
|
1070
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1071
|
+
archived: boolean;
|
|
1056
1072
|
};
|
|
1057
1073
|
type EquationRichTextItemRequest = {
|
|
1058
1074
|
type?: "equation";
|
|
@@ -1133,8 +1149,9 @@ export type FileBlockObjectResponse = {
|
|
|
1133
1149
|
last_edited_time: string;
|
|
1134
1150
|
last_edited_by: PartialUserObjectResponse;
|
|
1135
1151
|
has_children: boolean;
|
|
1136
|
-
archived: boolean;
|
|
1137
1152
|
in_trash: boolean;
|
|
1153
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1154
|
+
archived: boolean;
|
|
1138
1155
|
};
|
|
1139
1156
|
type FileInternalOrExternalFileWithNameResponse = {
|
|
1140
1157
|
type: "file";
|
|
@@ -1171,6 +1188,8 @@ export type FileUploadObjectResponse = {
|
|
|
1171
1188
|
type: "person" | "bot" | "agent";
|
|
1172
1189
|
};
|
|
1173
1190
|
last_edited_time: string;
|
|
1191
|
+
in_trash: boolean;
|
|
1192
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1174
1193
|
archived: boolean;
|
|
1175
1194
|
expiry_time: string | null;
|
|
1176
1195
|
status: "pending" | "uploaded" | "expired" | "failed";
|
|
@@ -1309,8 +1328,9 @@ export type Heading1BlockObjectResponse = {
|
|
|
1309
1328
|
last_edited_time: string;
|
|
1310
1329
|
last_edited_by: PartialUserObjectResponse;
|
|
1311
1330
|
has_children: boolean;
|
|
1312
|
-
archived: boolean;
|
|
1313
1331
|
in_trash: boolean;
|
|
1332
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1333
|
+
archived: boolean;
|
|
1314
1334
|
};
|
|
1315
1335
|
export type Heading2BlockObjectResponse = {
|
|
1316
1336
|
type: "heading_2";
|
|
@@ -1323,8 +1343,9 @@ export type Heading2BlockObjectResponse = {
|
|
|
1323
1343
|
last_edited_time: string;
|
|
1324
1344
|
last_edited_by: PartialUserObjectResponse;
|
|
1325
1345
|
has_children: boolean;
|
|
1326
|
-
archived: boolean;
|
|
1327
1346
|
in_trash: boolean;
|
|
1347
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1348
|
+
archived: boolean;
|
|
1328
1349
|
};
|
|
1329
1350
|
export type Heading3BlockObjectResponse = {
|
|
1330
1351
|
type: "heading_3";
|
|
@@ -1337,8 +1358,9 @@ export type Heading3BlockObjectResponse = {
|
|
|
1337
1358
|
last_edited_time: string;
|
|
1338
1359
|
last_edited_by: PartialUserObjectResponse;
|
|
1339
1360
|
has_children: boolean;
|
|
1340
|
-
archived: boolean;
|
|
1341
1361
|
in_trash: boolean;
|
|
1362
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1363
|
+
archived: boolean;
|
|
1342
1364
|
};
|
|
1343
1365
|
type IdObjectResponse = {
|
|
1344
1366
|
id: string;
|
|
@@ -1356,8 +1378,9 @@ export type ImageBlockObjectResponse = {
|
|
|
1356
1378
|
last_edited_time: string;
|
|
1357
1379
|
last_edited_by: PartialUserObjectResponse;
|
|
1358
1380
|
has_children: boolean;
|
|
1359
|
-
archived: boolean;
|
|
1360
1381
|
in_trash: boolean;
|
|
1382
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1383
|
+
archived: boolean;
|
|
1361
1384
|
};
|
|
1362
1385
|
type InitialDataSourceRequest = {
|
|
1363
1386
|
properties?: Record<string, PropertyConfigurationRequest>;
|
|
@@ -1448,8 +1471,9 @@ export type LinkPreviewBlockObjectResponse = {
|
|
|
1448
1471
|
last_edited_time: string;
|
|
1449
1472
|
last_edited_by: PartialUserObjectResponse;
|
|
1450
1473
|
has_children: boolean;
|
|
1451
|
-
archived: boolean;
|
|
1452
1474
|
in_trash: boolean;
|
|
1475
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1476
|
+
archived: boolean;
|
|
1453
1477
|
};
|
|
1454
1478
|
type LinkPreviewMentionResponse = {
|
|
1455
1479
|
url: string;
|
|
@@ -1474,8 +1498,9 @@ export type LinkToPageBlockObjectResponse = {
|
|
|
1474
1498
|
last_edited_time: string;
|
|
1475
1499
|
last_edited_by: PartialUserObjectResponse;
|
|
1476
1500
|
has_children: boolean;
|
|
1477
|
-
archived: boolean;
|
|
1478
1501
|
in_trash: boolean;
|
|
1502
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1503
|
+
archived: boolean;
|
|
1479
1504
|
};
|
|
1480
1505
|
type LocationPropertyConfigurationRequest = {
|
|
1481
1506
|
type?: "location";
|
|
@@ -1514,6 +1539,39 @@ type MediaContentWithUrlAndCaptionResponse = {
|
|
|
1514
1539
|
type MediaContentWithUrlResponse = {
|
|
1515
1540
|
url: TextRequest;
|
|
1516
1541
|
};
|
|
1542
|
+
/**
|
|
1543
|
+
* @deprecated Use MeetingNotesBlockObjectResponse instead. Renamed in API version 2026-03-11.
|
|
1544
|
+
*/
|
|
1545
|
+
export type TranscriptionBlockObjectResponse = {
|
|
1546
|
+
type: "transcription";
|
|
1547
|
+
transcription: TranscriptionBlockResponse;
|
|
1548
|
+
parent: ParentForBlockBasedObjectResponse;
|
|
1549
|
+
object: "block";
|
|
1550
|
+
id: string;
|
|
1551
|
+
created_time: string;
|
|
1552
|
+
created_by: PartialUserObjectResponse;
|
|
1553
|
+
last_edited_time: string;
|
|
1554
|
+
last_edited_by: PartialUserObjectResponse;
|
|
1555
|
+
has_children: boolean;
|
|
1556
|
+
in_trash: boolean;
|
|
1557
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1558
|
+
archived: boolean;
|
|
1559
|
+
};
|
|
1560
|
+
export type MeetingNotesBlockObjectResponse = {
|
|
1561
|
+
type: "meeting_notes";
|
|
1562
|
+
meeting_notes: TranscriptionBlockResponse;
|
|
1563
|
+
parent: ParentForBlockBasedObjectResponse;
|
|
1564
|
+
object: "block";
|
|
1565
|
+
id: string;
|
|
1566
|
+
created_time: string;
|
|
1567
|
+
created_by: PartialUserObjectResponse;
|
|
1568
|
+
last_edited_time: string;
|
|
1569
|
+
last_edited_by: PartialUserObjectResponse;
|
|
1570
|
+
has_children: boolean;
|
|
1571
|
+
in_trash: boolean;
|
|
1572
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1573
|
+
archived: boolean;
|
|
1574
|
+
};
|
|
1517
1575
|
type MentionRichTextItemRequest = {
|
|
1518
1576
|
type?: "mention";
|
|
1519
1577
|
mention: {
|
|
@@ -1667,8 +1725,9 @@ export type NumberedListItemBlockObjectResponse = {
|
|
|
1667
1725
|
last_edited_time: string;
|
|
1668
1726
|
last_edited_by: PartialUserObjectResponse;
|
|
1669
1727
|
has_children: boolean;
|
|
1670
|
-
archived: boolean;
|
|
1671
1728
|
in_trash: boolean;
|
|
1729
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1730
|
+
archived: boolean;
|
|
1672
1731
|
};
|
|
1673
1732
|
type PageCoverRequest = FileUploadPageCoverRequest | ExternalPageCoverRequest;
|
|
1674
1733
|
type PageCoverResponse = FilePageCoverResponse | ExternalPageCoverResponse;
|
|
@@ -1694,8 +1753,9 @@ export type PageObjectResponse = {
|
|
|
1694
1753
|
id: IdResponse;
|
|
1695
1754
|
created_time: string;
|
|
1696
1755
|
last_edited_time: string;
|
|
1697
|
-
archived: boolean;
|
|
1698
1756
|
in_trash: boolean;
|
|
1757
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1758
|
+
archived: boolean;
|
|
1699
1759
|
is_locked: boolean;
|
|
1700
1760
|
url: string;
|
|
1701
1761
|
public_url: string | null;
|
|
@@ -1728,8 +1788,9 @@ export type ParagraphBlockObjectResponse = {
|
|
|
1728
1788
|
last_edited_time: string;
|
|
1729
1789
|
last_edited_by: PartialUserObjectResponse;
|
|
1730
1790
|
has_children: boolean;
|
|
1731
|
-
archived: boolean;
|
|
1732
1791
|
in_trash: boolean;
|
|
1792
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1793
|
+
archived: boolean;
|
|
1733
1794
|
};
|
|
1734
1795
|
type ParentForBlockBasedObjectResponse = DatabaseParentResponse | DataSourceParentResponse | PageIdParentForBlockBasedObjectResponse | BlockIdParentForBlockBasedObjectResponse | WorkspaceParentForBlockBasedObjectResponse;
|
|
1735
1796
|
type ParentOfDataSourceRequest = {
|
|
@@ -1800,8 +1861,9 @@ export type PdfBlockObjectResponse = {
|
|
|
1800
1861
|
last_edited_time: string;
|
|
1801
1862
|
last_edited_by: PartialUserObjectResponse;
|
|
1802
1863
|
has_children: boolean;
|
|
1803
|
-
archived: boolean;
|
|
1804
1864
|
in_trash: boolean;
|
|
1865
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
1866
|
+
archived: boolean;
|
|
1805
1867
|
};
|
|
1806
1868
|
type PeopleArrayBasedPropertyValueResponse = {
|
|
1807
1869
|
type: "people";
|
|
@@ -2041,8 +2103,9 @@ export type QuoteBlockObjectResponse = {
|
|
|
2041
2103
|
last_edited_time: string;
|
|
2042
2104
|
last_edited_by: PartialUserObjectResponse;
|
|
2043
2105
|
has_children: boolean;
|
|
2044
|
-
archived: boolean;
|
|
2045
2106
|
in_trash: boolean;
|
|
2107
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2108
|
+
archived: boolean;
|
|
2046
2109
|
};
|
|
2047
2110
|
type RelationArrayBasedPropertyValueResponse = {
|
|
2048
2111
|
type: "relation";
|
|
@@ -2308,8 +2371,9 @@ export type SyncedBlockBlockObjectResponse = {
|
|
|
2308
2371
|
last_edited_time: string;
|
|
2309
2372
|
last_edited_by: PartialUserObjectResponse;
|
|
2310
2373
|
has_children: boolean;
|
|
2311
|
-
archived: boolean;
|
|
2312
2374
|
in_trash: boolean;
|
|
2375
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2376
|
+
archived: boolean;
|
|
2313
2377
|
};
|
|
2314
2378
|
export type TableBlockObjectResponse = {
|
|
2315
2379
|
type: "table";
|
|
@@ -2322,8 +2386,9 @@ export type TableBlockObjectResponse = {
|
|
|
2322
2386
|
last_edited_time: string;
|
|
2323
2387
|
last_edited_by: PartialUserObjectResponse;
|
|
2324
2388
|
has_children: boolean;
|
|
2325
|
-
archived: boolean;
|
|
2326
2389
|
in_trash: boolean;
|
|
2390
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2391
|
+
archived: boolean;
|
|
2327
2392
|
};
|
|
2328
2393
|
export type TableOfContentsBlockObjectResponse = {
|
|
2329
2394
|
type: "table_of_contents";
|
|
@@ -2338,8 +2403,9 @@ export type TableOfContentsBlockObjectResponse = {
|
|
|
2338
2403
|
last_edited_time: string;
|
|
2339
2404
|
last_edited_by: PartialUserObjectResponse;
|
|
2340
2405
|
has_children: boolean;
|
|
2341
|
-
archived: boolean;
|
|
2342
2406
|
in_trash: boolean;
|
|
2407
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2408
|
+
archived: boolean;
|
|
2343
2409
|
};
|
|
2344
2410
|
type TableRequestWithTableRowChildren = {
|
|
2345
2411
|
table_width: number;
|
|
@@ -2358,8 +2424,9 @@ export type TableRowBlockObjectResponse = {
|
|
|
2358
2424
|
last_edited_time: string;
|
|
2359
2425
|
last_edited_by: PartialUserObjectResponse;
|
|
2360
2426
|
has_children: boolean;
|
|
2361
|
-
archived: boolean;
|
|
2362
2427
|
in_trash: boolean;
|
|
2428
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2429
|
+
archived: boolean;
|
|
2363
2430
|
};
|
|
2364
2431
|
type TableRowRequest = {
|
|
2365
2432
|
table_row: ContentWithTableRowRequest;
|
|
@@ -2379,8 +2446,9 @@ export type TemplateBlockObjectResponse = {
|
|
|
2379
2446
|
last_edited_time: string;
|
|
2380
2447
|
last_edited_by: PartialUserObjectResponse;
|
|
2381
2448
|
has_children: boolean;
|
|
2382
|
-
archived: boolean;
|
|
2383
2449
|
in_trash: boolean;
|
|
2450
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2451
|
+
archived: boolean;
|
|
2384
2452
|
};
|
|
2385
2453
|
type TemplateMentionDateTemplateMentionRequest = {
|
|
2386
2454
|
type?: "template_mention_date";
|
|
@@ -2400,6 +2468,12 @@ type TemplateMentionUserTemplateMentionResponse = {
|
|
|
2400
2468
|
type: "template_mention_user";
|
|
2401
2469
|
template_mention_user: "me";
|
|
2402
2470
|
};
|
|
2471
|
+
/**
|
|
2472
|
+
* IANA timezone to use when resolving template variables like @now and @today (e.g.
|
|
2473
|
+
* 'America/New_York'). Defaults to the authorizing user's timezone for public
|
|
2474
|
+
* integrations, or UTC for internal integrations.
|
|
2475
|
+
*/
|
|
2476
|
+
type TemplateTimezone = string;
|
|
2403
2477
|
type TextPropertyFilter = {
|
|
2404
2478
|
equals: string;
|
|
2405
2479
|
} | {
|
|
@@ -2480,8 +2554,9 @@ export type ToDoBlockObjectResponse = {
|
|
|
2480
2554
|
last_edited_time: string;
|
|
2481
2555
|
last_edited_by: PartialUserObjectResponse;
|
|
2482
2556
|
has_children: boolean;
|
|
2483
|
-
archived: boolean;
|
|
2484
2557
|
in_trash: boolean;
|
|
2558
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2559
|
+
archived: boolean;
|
|
2485
2560
|
};
|
|
2486
2561
|
export type ToggleBlockObjectResponse = {
|
|
2487
2562
|
type: "toggle";
|
|
@@ -2494,22 +2569,9 @@ export type ToggleBlockObjectResponse = {
|
|
|
2494
2569
|
last_edited_time: string;
|
|
2495
2570
|
last_edited_by: PartialUserObjectResponse;
|
|
2496
2571
|
has_children: boolean;
|
|
2497
|
-
archived: boolean;
|
|
2498
2572
|
in_trash: boolean;
|
|
2499
|
-
|
|
2500
|
-
export type TranscriptionBlockObjectResponse = {
|
|
2501
|
-
type: "transcription";
|
|
2502
|
-
transcription: TranscriptionBlockResponse;
|
|
2503
|
-
parent: ParentForBlockBasedObjectResponse;
|
|
2504
|
-
object: "block";
|
|
2505
|
-
id: string;
|
|
2506
|
-
created_time: string;
|
|
2507
|
-
created_by: PartialUserObjectResponse;
|
|
2508
|
-
last_edited_time: string;
|
|
2509
|
-
last_edited_by: PartialUserObjectResponse;
|
|
2510
|
-
has_children: boolean;
|
|
2573
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2511
2574
|
archived: boolean;
|
|
2512
|
-
in_trash: boolean;
|
|
2513
2575
|
};
|
|
2514
2576
|
type TranscriptionBlockResponse = {
|
|
2515
2577
|
title?: Array<RichTextItemResponse>;
|
|
@@ -2563,7 +2625,9 @@ type UniqueIdSimplePropertyValueResponse = {
|
|
|
2563
2625
|
};
|
|
2564
2626
|
export type UnsupportedBlockObjectResponse = {
|
|
2565
2627
|
type: "unsupported";
|
|
2566
|
-
unsupported:
|
|
2628
|
+
unsupported: {
|
|
2629
|
+
block_type: string;
|
|
2630
|
+
};
|
|
2567
2631
|
parent: ParentForBlockBasedObjectResponse;
|
|
2568
2632
|
object: "block";
|
|
2569
2633
|
id: string;
|
|
@@ -2572,8 +2636,9 @@ export type UnsupportedBlockObjectResponse = {
|
|
|
2572
2636
|
last_edited_time: string;
|
|
2573
2637
|
last_edited_by: PartialUserObjectResponse;
|
|
2574
2638
|
has_children: boolean;
|
|
2575
|
-
archived: boolean;
|
|
2576
2639
|
in_trash: boolean;
|
|
2640
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2641
|
+
archived: boolean;
|
|
2577
2642
|
};
|
|
2578
2643
|
type UpdateMediaContentWithFileAndCaptionRequest = {
|
|
2579
2644
|
caption?: Array<RichTextItemRequest>;
|
|
@@ -2655,8 +2720,9 @@ export type VideoBlockObjectResponse = {
|
|
|
2655
2720
|
last_edited_time: string;
|
|
2656
2721
|
last_edited_by: PartialUserObjectResponse;
|
|
2657
2722
|
has_children: boolean;
|
|
2658
|
-
archived: boolean;
|
|
2659
2723
|
in_trash: boolean;
|
|
2724
|
+
/** @deprecated Use `in_trash` instead. Present for backwards compatibility with API versions prior to 2026-03-11. */
|
|
2725
|
+
archived: boolean;
|
|
2660
2726
|
};
|
|
2661
2727
|
type WorkspaceParentForBlockBasedObjectResponse = {
|
|
2662
2728
|
type: "workspace";
|
|
@@ -2818,9 +2884,11 @@ type CreatePageBodyParameters = {
|
|
|
2818
2884
|
type: "none";
|
|
2819
2885
|
} | {
|
|
2820
2886
|
type: "default";
|
|
2887
|
+
timezone?: TemplateTimezone;
|
|
2821
2888
|
} | {
|
|
2822
2889
|
type: "template_id";
|
|
2823
2890
|
template_id: IdRequest;
|
|
2891
|
+
timezone?: TemplateTimezone;
|
|
2824
2892
|
};
|
|
2825
2893
|
position?: PagePositionSchema;
|
|
2826
2894
|
};
|
|
@@ -2946,24 +3014,27 @@ type UpdatePageBodyParameters = {
|
|
|
2946
3014
|
is_locked?: boolean;
|
|
2947
3015
|
template?: {
|
|
2948
3016
|
type: "default";
|
|
3017
|
+
timezone?: TemplateTimezone;
|
|
2949
3018
|
} | {
|
|
2950
3019
|
type: "template_id";
|
|
2951
3020
|
template_id: IdRequest;
|
|
3021
|
+
timezone?: TemplateTimezone;
|
|
2952
3022
|
};
|
|
2953
3023
|
erase_content?: boolean;
|
|
2954
|
-
archived?: boolean;
|
|
2955
3024
|
in_trash?: boolean;
|
|
3025
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3026
|
+
archived?: boolean;
|
|
2956
3027
|
};
|
|
2957
3028
|
export type UpdatePageParameters = UpdatePagePathParameters & UpdatePageBodyParameters;
|
|
2958
3029
|
export type UpdatePageResponse = PageObjectResponse | PartialPageObjectResponse;
|
|
2959
3030
|
/**
|
|
2960
|
-
* Update page
|
|
3031
|
+
* Update page
|
|
2961
3032
|
*/
|
|
2962
3033
|
export declare const updatePage: {
|
|
2963
3034
|
readonly method: "patch";
|
|
2964
3035
|
readonly pathParams: readonly ["page_id"];
|
|
2965
3036
|
readonly queryParams: readonly [];
|
|
2966
|
-
readonly bodyParams: readonly ["properties", "icon", "cover", "is_locked", "template", "erase_content", "
|
|
3037
|
+
readonly bodyParams: readonly ["archived", "properties", "icon", "cover", "is_locked", "template", "erase_content", "in_trash"];
|
|
2967
3038
|
readonly path: (p: UpdatePagePathParameters) => string;
|
|
2968
3039
|
};
|
|
2969
3040
|
type MovePagePathParameters = {
|
|
@@ -3078,38 +3149,45 @@ type UpdateBlockPathParameters = {
|
|
|
3078
3149
|
type UpdateBlockBodyParameters = {
|
|
3079
3150
|
embed: UpdateMediaContentWithUrlAndCaptionRequest;
|
|
3080
3151
|
type?: "embed";
|
|
3081
|
-
archived?: boolean;
|
|
3082
3152
|
in_trash?: boolean;
|
|
3153
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3154
|
+
archived?: boolean;
|
|
3083
3155
|
} | {
|
|
3084
3156
|
bookmark: UpdateMediaContentWithUrlAndCaptionRequest;
|
|
3085
3157
|
type?: "bookmark";
|
|
3086
|
-
archived?: boolean;
|
|
3087
3158
|
in_trash?: boolean;
|
|
3159
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3160
|
+
archived?: boolean;
|
|
3088
3161
|
} | {
|
|
3089
3162
|
image: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3090
3163
|
type?: "image";
|
|
3091
|
-
archived?: boolean;
|
|
3092
3164
|
in_trash?: boolean;
|
|
3165
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3166
|
+
archived?: boolean;
|
|
3093
3167
|
} | {
|
|
3094
3168
|
video: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3095
3169
|
type?: "video";
|
|
3096
|
-
archived?: boolean;
|
|
3097
3170
|
in_trash?: boolean;
|
|
3171
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3172
|
+
archived?: boolean;
|
|
3098
3173
|
} | {
|
|
3099
3174
|
pdf: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3100
3175
|
type?: "pdf";
|
|
3101
|
-
archived?: boolean;
|
|
3102
3176
|
in_trash?: boolean;
|
|
3177
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3178
|
+
archived?: boolean;
|
|
3103
3179
|
} | {
|
|
3104
3180
|
file: UpdateMediaContentWithFileNameAndCaptionRequest;
|
|
3105
3181
|
type?: "file";
|
|
3106
|
-
archived?: boolean;
|
|
3107
3182
|
in_trash?: boolean;
|
|
3183
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3184
|
+
archived?: boolean;
|
|
3108
3185
|
} | {
|
|
3109
3186
|
audio: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3110
3187
|
type?: "audio";
|
|
3111
|
-
archived?: boolean;
|
|
3112
3188
|
in_trash?: boolean;
|
|
3189
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3190
|
+
archived?: boolean;
|
|
3113
3191
|
} | {
|
|
3114
3192
|
code: {
|
|
3115
3193
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3117,30 +3195,35 @@ type UpdateBlockBodyParameters = {
|
|
|
3117
3195
|
caption?: Array<RichTextItemRequest>;
|
|
3118
3196
|
};
|
|
3119
3197
|
type?: "code";
|
|
3120
|
-
archived?: boolean;
|
|
3121
3198
|
in_trash?: boolean;
|
|
3199
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3200
|
+
archived?: boolean;
|
|
3122
3201
|
} | {
|
|
3123
3202
|
equation: ContentWithExpressionRequest;
|
|
3124
3203
|
type?: "equation";
|
|
3125
|
-
archived?: boolean;
|
|
3126
3204
|
in_trash?: boolean;
|
|
3205
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3206
|
+
archived?: boolean;
|
|
3127
3207
|
} | {
|
|
3128
3208
|
divider: EmptyObject;
|
|
3129
3209
|
type?: "divider";
|
|
3130
|
-
archived?: boolean;
|
|
3131
3210
|
in_trash?: boolean;
|
|
3211
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3212
|
+
archived?: boolean;
|
|
3132
3213
|
} | {
|
|
3133
3214
|
breadcrumb: EmptyObject;
|
|
3134
3215
|
type?: "breadcrumb";
|
|
3135
|
-
archived?: boolean;
|
|
3136
3216
|
in_trash?: boolean;
|
|
3217
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3218
|
+
archived?: boolean;
|
|
3137
3219
|
} | {
|
|
3138
3220
|
table_of_contents: {
|
|
3139
3221
|
color?: ApiColor;
|
|
3140
3222
|
};
|
|
3141
3223
|
type?: "table_of_contents";
|
|
3142
|
-
archived?: boolean;
|
|
3143
3224
|
in_trash?: boolean;
|
|
3225
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3226
|
+
archived?: boolean;
|
|
3144
3227
|
} | {
|
|
3145
3228
|
link_to_page: {
|
|
3146
3229
|
page_id: IdRequest;
|
|
@@ -3153,48 +3236,57 @@ type UpdateBlockBodyParameters = {
|
|
|
3153
3236
|
type?: "comment_id";
|
|
3154
3237
|
};
|
|
3155
3238
|
type?: "link_to_page";
|
|
3156
|
-
archived?: boolean;
|
|
3157
3239
|
in_trash?: boolean;
|
|
3240
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3241
|
+
archived?: boolean;
|
|
3158
3242
|
} | {
|
|
3159
3243
|
table_row: ContentWithTableRowRequest;
|
|
3160
3244
|
type?: "table_row";
|
|
3161
|
-
archived?: boolean;
|
|
3162
3245
|
in_trash?: boolean;
|
|
3246
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3247
|
+
archived?: boolean;
|
|
3163
3248
|
} | {
|
|
3164
3249
|
heading_1: HeaderContentWithRichTextAndColorRequest;
|
|
3165
3250
|
type?: "heading_1";
|
|
3166
|
-
archived?: boolean;
|
|
3167
3251
|
in_trash?: boolean;
|
|
3252
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3253
|
+
archived?: boolean;
|
|
3168
3254
|
} | {
|
|
3169
3255
|
heading_2: HeaderContentWithRichTextAndColorRequest;
|
|
3170
3256
|
type?: "heading_2";
|
|
3171
|
-
archived?: boolean;
|
|
3172
3257
|
in_trash?: boolean;
|
|
3258
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3259
|
+
archived?: boolean;
|
|
3173
3260
|
} | {
|
|
3174
3261
|
heading_3: HeaderContentWithRichTextAndColorRequest;
|
|
3175
3262
|
type?: "heading_3";
|
|
3176
|
-
archived?: boolean;
|
|
3177
3263
|
in_trash?: boolean;
|
|
3264
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3265
|
+
archived?: boolean;
|
|
3178
3266
|
} | {
|
|
3179
3267
|
paragraph: ContentWithRichTextAndColorRequest;
|
|
3180
3268
|
type?: "paragraph";
|
|
3181
|
-
archived?: boolean;
|
|
3182
3269
|
in_trash?: boolean;
|
|
3270
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3271
|
+
archived?: boolean;
|
|
3183
3272
|
} | {
|
|
3184
3273
|
bulleted_list_item: ContentWithRichTextAndColorRequest;
|
|
3185
3274
|
type?: "bulleted_list_item";
|
|
3186
|
-
archived?: boolean;
|
|
3187
3275
|
in_trash?: boolean;
|
|
3276
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3277
|
+
archived?: boolean;
|
|
3188
3278
|
} | {
|
|
3189
3279
|
numbered_list_item: ContentWithRichTextAndColorRequest;
|
|
3190
3280
|
type?: "numbered_list_item";
|
|
3191
|
-
archived?: boolean;
|
|
3192
3281
|
in_trash?: boolean;
|
|
3282
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3283
|
+
archived?: boolean;
|
|
3193
3284
|
} | {
|
|
3194
3285
|
quote: ContentWithRichTextAndColorRequest;
|
|
3195
3286
|
type?: "quote";
|
|
3196
|
-
archived?: boolean;
|
|
3197
3287
|
in_trash?: boolean;
|
|
3288
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3289
|
+
archived?: boolean;
|
|
3198
3290
|
} | {
|
|
3199
3291
|
to_do: {
|
|
3200
3292
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3202,18 +3294,21 @@ type UpdateBlockBodyParameters = {
|
|
|
3202
3294
|
color?: ApiColor;
|
|
3203
3295
|
};
|
|
3204
3296
|
type?: "to_do";
|
|
3205
|
-
archived?: boolean;
|
|
3206
3297
|
in_trash?: boolean;
|
|
3298
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3299
|
+
archived?: boolean;
|
|
3207
3300
|
} | {
|
|
3208
3301
|
toggle: ContentWithRichTextAndColorRequest;
|
|
3209
3302
|
type?: "toggle";
|
|
3210
|
-
archived?: boolean;
|
|
3211
3303
|
in_trash?: boolean;
|
|
3304
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3305
|
+
archived?: boolean;
|
|
3212
3306
|
} | {
|
|
3213
3307
|
template: ContentWithRichTextRequest;
|
|
3214
3308
|
type?: "template";
|
|
3215
|
-
archived?: boolean;
|
|
3216
3309
|
in_trash?: boolean;
|
|
3310
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3311
|
+
archived?: boolean;
|
|
3217
3312
|
} | {
|
|
3218
3313
|
callout: {
|
|
3219
3314
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3221,8 +3316,9 @@ type UpdateBlockBodyParameters = {
|
|
|
3221
3316
|
color?: ApiColor;
|
|
3222
3317
|
};
|
|
3223
3318
|
type?: "callout";
|
|
3224
|
-
archived?: boolean;
|
|
3225
3319
|
in_trash?: boolean;
|
|
3320
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3321
|
+
archived?: boolean;
|
|
3226
3322
|
} | {
|
|
3227
3323
|
synced_block: {
|
|
3228
3324
|
synced_from: {
|
|
@@ -3231,26 +3327,30 @@ type UpdateBlockBodyParameters = {
|
|
|
3231
3327
|
} | null;
|
|
3232
3328
|
};
|
|
3233
3329
|
type?: "synced_block";
|
|
3234
|
-
archived?: boolean;
|
|
3235
3330
|
in_trash?: boolean;
|
|
3331
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3332
|
+
archived?: boolean;
|
|
3236
3333
|
} | {
|
|
3237
3334
|
table: {
|
|
3238
3335
|
has_column_header?: boolean;
|
|
3239
3336
|
has_row_header?: boolean;
|
|
3240
3337
|
};
|
|
3241
3338
|
type?: "table";
|
|
3242
|
-
archived?: boolean;
|
|
3243
3339
|
in_trash?: boolean;
|
|
3340
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3341
|
+
archived?: boolean;
|
|
3244
3342
|
} | {
|
|
3245
3343
|
column: {
|
|
3246
3344
|
width_ratio?: number;
|
|
3247
3345
|
};
|
|
3248
3346
|
type?: "column";
|
|
3249
|
-
archived?: boolean;
|
|
3250
3347
|
in_trash?: boolean;
|
|
3251
|
-
|
|
3348
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3252
3349
|
archived?: boolean;
|
|
3350
|
+
} | {
|
|
3253
3351
|
in_trash?: boolean;
|
|
3352
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3353
|
+
archived?: boolean;
|
|
3254
3354
|
};
|
|
3255
3355
|
export type UpdateBlockParameters = UpdateBlockPathParameters & UpdateBlockBodyParameters;
|
|
3256
3356
|
export type UpdateBlockResponse = PartialBlockObjectResponse | BlockObjectResponse;
|
|
@@ -3261,7 +3361,7 @@ export declare const updateBlock: {
|
|
|
3261
3361
|
readonly method: "patch";
|
|
3262
3362
|
readonly pathParams: readonly ["block_id"];
|
|
3263
3363
|
readonly queryParams: readonly [];
|
|
3264
|
-
readonly bodyParams: readonly ["
|
|
3364
|
+
readonly bodyParams: readonly ["archived", "embed", "type", "in_trash", "bookmark", "image", "video", "pdf", "file", "audio", "code", "equation", "divider", "breadcrumb", "table_of_contents", "link_to_page", "table_row", "heading_1", "heading_2", "heading_3", "paragraph", "bulleted_list_item", "numbered_list_item", "quote", "to_do", "toggle", "template", "callout", "synced_block", "table", "column"];
|
|
3265
3365
|
readonly path: (p: UpdateBlockPathParameters) => string;
|
|
3266
3366
|
};
|
|
3267
3367
|
type DeleteBlockPathParameters = {
|
|
@@ -3310,6 +3410,7 @@ type AppendBlockChildrenPathParameters = {
|
|
|
3310
3410
|
};
|
|
3311
3411
|
type AppendBlockChildrenBodyParameters = {
|
|
3312
3412
|
children: Array<BlockObjectRequest>;
|
|
3413
|
+
/** @deprecated Use `position` instead. */
|
|
3313
3414
|
after?: IdRequest;
|
|
3314
3415
|
position?: ContentPositionSchema;
|
|
3315
3416
|
};
|
|
@@ -3329,7 +3430,7 @@ export declare const appendBlockChildren: {
|
|
|
3329
3430
|
readonly method: "patch";
|
|
3330
3431
|
readonly pathParams: readonly ["block_id"];
|
|
3331
3432
|
readonly queryParams: readonly [];
|
|
3332
|
-
readonly bodyParams: readonly ["
|
|
3433
|
+
readonly bodyParams: readonly ["after", "children", "position"];
|
|
3333
3434
|
readonly path: (p: AppendBlockChildrenPathParameters) => string;
|
|
3334
3435
|
};
|
|
3335
3436
|
type GetDataSourcePathParameters = {
|
|
@@ -3479,6 +3580,7 @@ type UpdateDataSourceBodyParameters = {
|
|
|
3479
3580
|
name: string;
|
|
3480
3581
|
} | null>;
|
|
3481
3582
|
in_trash?: boolean;
|
|
3583
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3482
3584
|
archived?: boolean;
|
|
3483
3585
|
parent?: ParentOfDataSourceRequest;
|
|
3484
3586
|
};
|
|
@@ -3491,7 +3593,7 @@ export declare const updateDataSource: {
|
|
|
3491
3593
|
readonly method: "patch";
|
|
3492
3594
|
readonly pathParams: readonly ["data_source_id"];
|
|
3493
3595
|
readonly queryParams: readonly [];
|
|
3494
|
-
readonly bodyParams: readonly ["title", "icon", "properties", "in_trash", "
|
|
3596
|
+
readonly bodyParams: readonly ["archived", "title", "icon", "properties", "in_trash", "parent"];
|
|
3495
3597
|
readonly path: (p: UpdateDataSourcePathParameters) => string;
|
|
3496
3598
|
};
|
|
3497
3599
|
type QueryDataSourcePathParameters = {
|
|
@@ -3515,8 +3617,9 @@ type QueryDataSourceBodyParameters = {
|
|
|
3515
3617
|
} | PropertyFilter | TimestampFilter;
|
|
3516
3618
|
start_cursor?: string;
|
|
3517
3619
|
page_size?: number;
|
|
3518
|
-
archived?: boolean;
|
|
3519
3620
|
in_trash?: boolean;
|
|
3621
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3622
|
+
archived?: boolean;
|
|
3520
3623
|
result_type?: "page" | "data_source";
|
|
3521
3624
|
};
|
|
3522
3625
|
export type QueryDataSourceParameters = QueryDataSourcePathParameters & QueryDataSourceQueryParameters & QueryDataSourceBodyParameters;
|
|
@@ -3535,7 +3638,7 @@ export declare const queryDataSource: {
|
|
|
3535
3638
|
readonly method: "post";
|
|
3536
3639
|
readonly pathParams: readonly ["data_source_id"];
|
|
3537
3640
|
readonly queryParams: readonly ["filter_properties"];
|
|
3538
|
-
readonly bodyParams: readonly ["sorts", "filter", "start_cursor", "page_size", "
|
|
3641
|
+
readonly bodyParams: readonly ["archived", "sorts", "filter", "start_cursor", "page_size", "in_trash", "result_type"];
|
|
3539
3642
|
readonly path: (p: QueryDataSourcePathParameters) => string;
|
|
3540
3643
|
};
|
|
3541
3644
|
type CreateDataSourceBodyParameters = {
|
|
@@ -3618,6 +3721,8 @@ type UpdateDatabaseBodyParameters = {
|
|
|
3618
3721
|
icon?: PageIconRequest;
|
|
3619
3722
|
cover?: PageCoverRequest;
|
|
3620
3723
|
in_trash?: boolean;
|
|
3724
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3725
|
+
archived?: boolean;
|
|
3621
3726
|
is_locked?: boolean;
|
|
3622
3727
|
};
|
|
3623
3728
|
export type UpdateDatabaseParameters = UpdateDatabasePathParameters & UpdateDatabaseBodyParameters;
|