@notionhq/client 5.11.1 → 5.13.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 +19 -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 +205 -86
- package/build/src/api-endpoints.d.ts.map +1 -1
- package/build/src/api-endpoints.js +12 -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>;
|
|
@@ -2574,8 +2636,9 @@ export type UnsupportedBlockObjectResponse = {
|
|
|
2574
2636
|
last_edited_time: string;
|
|
2575
2637
|
last_edited_by: PartialUserObjectResponse;
|
|
2576
2638
|
has_children: boolean;
|
|
2577
|
-
archived: boolean;
|
|
2578
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;
|
|
2579
2642
|
};
|
|
2580
2643
|
type UpdateMediaContentWithFileAndCaptionRequest = {
|
|
2581
2644
|
caption?: Array<RichTextItemRequest>;
|
|
@@ -2657,8 +2720,9 @@ export type VideoBlockObjectResponse = {
|
|
|
2657
2720
|
last_edited_time: string;
|
|
2658
2721
|
last_edited_by: PartialUserObjectResponse;
|
|
2659
2722
|
has_children: boolean;
|
|
2660
|
-
archived: boolean;
|
|
2661
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;
|
|
2662
2726
|
};
|
|
2663
2727
|
type WorkspaceParentForBlockBasedObjectResponse = {
|
|
2664
2728
|
type: "workspace";
|
|
@@ -2820,9 +2884,11 @@ type CreatePageBodyParameters = {
|
|
|
2820
2884
|
type: "none";
|
|
2821
2885
|
} | {
|
|
2822
2886
|
type: "default";
|
|
2887
|
+
timezone?: TemplateTimezone;
|
|
2823
2888
|
} | {
|
|
2824
2889
|
type: "template_id";
|
|
2825
2890
|
template_id: IdRequest;
|
|
2891
|
+
timezone?: TemplateTimezone;
|
|
2826
2892
|
};
|
|
2827
2893
|
position?: PagePositionSchema;
|
|
2828
2894
|
};
|
|
@@ -2948,13 +3014,16 @@ type UpdatePageBodyParameters = {
|
|
|
2948
3014
|
is_locked?: boolean;
|
|
2949
3015
|
template?: {
|
|
2950
3016
|
type: "default";
|
|
3017
|
+
timezone?: TemplateTimezone;
|
|
2951
3018
|
} | {
|
|
2952
3019
|
type: "template_id";
|
|
2953
3020
|
template_id: IdRequest;
|
|
3021
|
+
timezone?: TemplateTimezone;
|
|
2954
3022
|
};
|
|
2955
3023
|
erase_content?: boolean;
|
|
2956
|
-
archived?: boolean;
|
|
2957
3024
|
in_trash?: boolean;
|
|
3025
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3026
|
+
archived?: boolean;
|
|
2958
3027
|
};
|
|
2959
3028
|
export type UpdatePageParameters = UpdatePagePathParameters & UpdatePageBodyParameters;
|
|
2960
3029
|
export type UpdatePageResponse = PageObjectResponse | PartialPageObjectResponse;
|
|
@@ -2965,7 +3034,7 @@ export declare const updatePage: {
|
|
|
2965
3034
|
readonly method: "patch";
|
|
2966
3035
|
readonly pathParams: readonly ["page_id"];
|
|
2967
3036
|
readonly queryParams: readonly [];
|
|
2968
|
-
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"];
|
|
2969
3038
|
readonly path: (p: UpdatePagePathParameters) => string;
|
|
2970
3039
|
};
|
|
2971
3040
|
type MovePagePathParameters = {
|
|
@@ -3046,6 +3115,22 @@ type UpdatePageMarkdownBodyParameters = {
|
|
|
3046
3115
|
content_range: string;
|
|
3047
3116
|
allow_deleting_content?: boolean;
|
|
3048
3117
|
};
|
|
3118
|
+
} | {
|
|
3119
|
+
type: "update_content";
|
|
3120
|
+
update_content: {
|
|
3121
|
+
content_updates: Array<{
|
|
3122
|
+
old_str: string;
|
|
3123
|
+
new_str: string;
|
|
3124
|
+
replace_all_matches?: boolean;
|
|
3125
|
+
}>;
|
|
3126
|
+
allow_deleting_content?: boolean;
|
|
3127
|
+
};
|
|
3128
|
+
} | {
|
|
3129
|
+
type: "replace_content";
|
|
3130
|
+
replace_content: {
|
|
3131
|
+
new_str: string;
|
|
3132
|
+
allow_deleting_content?: boolean;
|
|
3133
|
+
};
|
|
3049
3134
|
};
|
|
3050
3135
|
export type UpdatePageMarkdownParameters = UpdatePageMarkdownPathParameters & UpdatePageMarkdownBodyParameters;
|
|
3051
3136
|
export type UpdatePageMarkdownResponse = PageMarkdownResponse;
|
|
@@ -3056,7 +3141,7 @@ export declare const updatePageMarkdown: {
|
|
|
3056
3141
|
readonly method: "patch";
|
|
3057
3142
|
readonly pathParams: readonly ["page_id"];
|
|
3058
3143
|
readonly queryParams: readonly [];
|
|
3059
|
-
readonly bodyParams: readonly ["type", "insert_content", "replace_content_range"];
|
|
3144
|
+
readonly bodyParams: readonly ["type", "insert_content", "replace_content_range", "update_content", "replace_content"];
|
|
3060
3145
|
readonly path: (p: UpdatePageMarkdownPathParameters) => string;
|
|
3061
3146
|
};
|
|
3062
3147
|
type GetBlockPathParameters = {
|
|
@@ -3080,38 +3165,45 @@ type UpdateBlockPathParameters = {
|
|
|
3080
3165
|
type UpdateBlockBodyParameters = {
|
|
3081
3166
|
embed: UpdateMediaContentWithUrlAndCaptionRequest;
|
|
3082
3167
|
type?: "embed";
|
|
3083
|
-
archived?: boolean;
|
|
3084
3168
|
in_trash?: boolean;
|
|
3169
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3170
|
+
archived?: boolean;
|
|
3085
3171
|
} | {
|
|
3086
3172
|
bookmark: UpdateMediaContentWithUrlAndCaptionRequest;
|
|
3087
3173
|
type?: "bookmark";
|
|
3088
|
-
archived?: boolean;
|
|
3089
3174
|
in_trash?: boolean;
|
|
3175
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3176
|
+
archived?: boolean;
|
|
3090
3177
|
} | {
|
|
3091
3178
|
image: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3092
3179
|
type?: "image";
|
|
3093
|
-
archived?: boolean;
|
|
3094
3180
|
in_trash?: boolean;
|
|
3181
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3182
|
+
archived?: boolean;
|
|
3095
3183
|
} | {
|
|
3096
3184
|
video: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3097
3185
|
type?: "video";
|
|
3098
|
-
archived?: boolean;
|
|
3099
3186
|
in_trash?: boolean;
|
|
3187
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3188
|
+
archived?: boolean;
|
|
3100
3189
|
} | {
|
|
3101
3190
|
pdf: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3102
3191
|
type?: "pdf";
|
|
3103
|
-
archived?: boolean;
|
|
3104
3192
|
in_trash?: boolean;
|
|
3193
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3194
|
+
archived?: boolean;
|
|
3105
3195
|
} | {
|
|
3106
3196
|
file: UpdateMediaContentWithFileNameAndCaptionRequest;
|
|
3107
3197
|
type?: "file";
|
|
3108
|
-
archived?: boolean;
|
|
3109
3198
|
in_trash?: boolean;
|
|
3199
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3200
|
+
archived?: boolean;
|
|
3110
3201
|
} | {
|
|
3111
3202
|
audio: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3112
3203
|
type?: "audio";
|
|
3113
|
-
archived?: boolean;
|
|
3114
3204
|
in_trash?: boolean;
|
|
3205
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3206
|
+
archived?: boolean;
|
|
3115
3207
|
} | {
|
|
3116
3208
|
code: {
|
|
3117
3209
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3119,30 +3211,35 @@ type UpdateBlockBodyParameters = {
|
|
|
3119
3211
|
caption?: Array<RichTextItemRequest>;
|
|
3120
3212
|
};
|
|
3121
3213
|
type?: "code";
|
|
3122
|
-
archived?: boolean;
|
|
3123
3214
|
in_trash?: boolean;
|
|
3215
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3216
|
+
archived?: boolean;
|
|
3124
3217
|
} | {
|
|
3125
3218
|
equation: ContentWithExpressionRequest;
|
|
3126
3219
|
type?: "equation";
|
|
3127
|
-
archived?: boolean;
|
|
3128
3220
|
in_trash?: boolean;
|
|
3221
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3222
|
+
archived?: boolean;
|
|
3129
3223
|
} | {
|
|
3130
3224
|
divider: EmptyObject;
|
|
3131
3225
|
type?: "divider";
|
|
3132
|
-
archived?: boolean;
|
|
3133
3226
|
in_trash?: boolean;
|
|
3227
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3228
|
+
archived?: boolean;
|
|
3134
3229
|
} | {
|
|
3135
3230
|
breadcrumb: EmptyObject;
|
|
3136
3231
|
type?: "breadcrumb";
|
|
3137
|
-
archived?: boolean;
|
|
3138
3232
|
in_trash?: boolean;
|
|
3233
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3234
|
+
archived?: boolean;
|
|
3139
3235
|
} | {
|
|
3140
3236
|
table_of_contents: {
|
|
3141
3237
|
color?: ApiColor;
|
|
3142
3238
|
};
|
|
3143
3239
|
type?: "table_of_contents";
|
|
3144
|
-
archived?: boolean;
|
|
3145
3240
|
in_trash?: boolean;
|
|
3241
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3242
|
+
archived?: boolean;
|
|
3146
3243
|
} | {
|
|
3147
3244
|
link_to_page: {
|
|
3148
3245
|
page_id: IdRequest;
|
|
@@ -3155,48 +3252,57 @@ type UpdateBlockBodyParameters = {
|
|
|
3155
3252
|
type?: "comment_id";
|
|
3156
3253
|
};
|
|
3157
3254
|
type?: "link_to_page";
|
|
3158
|
-
archived?: boolean;
|
|
3159
3255
|
in_trash?: boolean;
|
|
3256
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3257
|
+
archived?: boolean;
|
|
3160
3258
|
} | {
|
|
3161
3259
|
table_row: ContentWithTableRowRequest;
|
|
3162
3260
|
type?: "table_row";
|
|
3163
|
-
archived?: boolean;
|
|
3164
3261
|
in_trash?: boolean;
|
|
3262
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3263
|
+
archived?: boolean;
|
|
3165
3264
|
} | {
|
|
3166
3265
|
heading_1: HeaderContentWithRichTextAndColorRequest;
|
|
3167
3266
|
type?: "heading_1";
|
|
3168
|
-
archived?: boolean;
|
|
3169
3267
|
in_trash?: boolean;
|
|
3268
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3269
|
+
archived?: boolean;
|
|
3170
3270
|
} | {
|
|
3171
3271
|
heading_2: HeaderContentWithRichTextAndColorRequest;
|
|
3172
3272
|
type?: "heading_2";
|
|
3173
|
-
archived?: boolean;
|
|
3174
3273
|
in_trash?: boolean;
|
|
3274
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3275
|
+
archived?: boolean;
|
|
3175
3276
|
} | {
|
|
3176
3277
|
heading_3: HeaderContentWithRichTextAndColorRequest;
|
|
3177
3278
|
type?: "heading_3";
|
|
3178
|
-
archived?: boolean;
|
|
3179
3279
|
in_trash?: boolean;
|
|
3280
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3281
|
+
archived?: boolean;
|
|
3180
3282
|
} | {
|
|
3181
3283
|
paragraph: ContentWithRichTextAndColorRequest;
|
|
3182
3284
|
type?: "paragraph";
|
|
3183
|
-
archived?: boolean;
|
|
3184
3285
|
in_trash?: boolean;
|
|
3286
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3287
|
+
archived?: boolean;
|
|
3185
3288
|
} | {
|
|
3186
3289
|
bulleted_list_item: ContentWithRichTextAndColorRequest;
|
|
3187
3290
|
type?: "bulleted_list_item";
|
|
3188
|
-
archived?: boolean;
|
|
3189
3291
|
in_trash?: boolean;
|
|
3292
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3293
|
+
archived?: boolean;
|
|
3190
3294
|
} | {
|
|
3191
3295
|
numbered_list_item: ContentWithRichTextAndColorRequest;
|
|
3192
3296
|
type?: "numbered_list_item";
|
|
3193
|
-
archived?: boolean;
|
|
3194
3297
|
in_trash?: boolean;
|
|
3298
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3299
|
+
archived?: boolean;
|
|
3195
3300
|
} | {
|
|
3196
3301
|
quote: ContentWithRichTextAndColorRequest;
|
|
3197
3302
|
type?: "quote";
|
|
3198
|
-
archived?: boolean;
|
|
3199
3303
|
in_trash?: boolean;
|
|
3304
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3305
|
+
archived?: boolean;
|
|
3200
3306
|
} | {
|
|
3201
3307
|
to_do: {
|
|
3202
3308
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3204,18 +3310,21 @@ type UpdateBlockBodyParameters = {
|
|
|
3204
3310
|
color?: ApiColor;
|
|
3205
3311
|
};
|
|
3206
3312
|
type?: "to_do";
|
|
3207
|
-
archived?: boolean;
|
|
3208
3313
|
in_trash?: boolean;
|
|
3314
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3315
|
+
archived?: boolean;
|
|
3209
3316
|
} | {
|
|
3210
3317
|
toggle: ContentWithRichTextAndColorRequest;
|
|
3211
3318
|
type?: "toggle";
|
|
3212
|
-
archived?: boolean;
|
|
3213
3319
|
in_trash?: boolean;
|
|
3320
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3321
|
+
archived?: boolean;
|
|
3214
3322
|
} | {
|
|
3215
3323
|
template: ContentWithRichTextRequest;
|
|
3216
3324
|
type?: "template";
|
|
3217
|
-
archived?: boolean;
|
|
3218
3325
|
in_trash?: boolean;
|
|
3326
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3327
|
+
archived?: boolean;
|
|
3219
3328
|
} | {
|
|
3220
3329
|
callout: {
|
|
3221
3330
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3223,8 +3332,9 @@ type UpdateBlockBodyParameters = {
|
|
|
3223
3332
|
color?: ApiColor;
|
|
3224
3333
|
};
|
|
3225
3334
|
type?: "callout";
|
|
3226
|
-
archived?: boolean;
|
|
3227
3335
|
in_trash?: boolean;
|
|
3336
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3337
|
+
archived?: boolean;
|
|
3228
3338
|
} | {
|
|
3229
3339
|
synced_block: {
|
|
3230
3340
|
synced_from: {
|
|
@@ -3233,26 +3343,30 @@ type UpdateBlockBodyParameters = {
|
|
|
3233
3343
|
} | null;
|
|
3234
3344
|
};
|
|
3235
3345
|
type?: "synced_block";
|
|
3236
|
-
archived?: boolean;
|
|
3237
3346
|
in_trash?: boolean;
|
|
3347
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3348
|
+
archived?: boolean;
|
|
3238
3349
|
} | {
|
|
3239
3350
|
table: {
|
|
3240
3351
|
has_column_header?: boolean;
|
|
3241
3352
|
has_row_header?: boolean;
|
|
3242
3353
|
};
|
|
3243
3354
|
type?: "table";
|
|
3244
|
-
archived?: boolean;
|
|
3245
3355
|
in_trash?: boolean;
|
|
3356
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3357
|
+
archived?: boolean;
|
|
3246
3358
|
} | {
|
|
3247
3359
|
column: {
|
|
3248
3360
|
width_ratio?: number;
|
|
3249
3361
|
};
|
|
3250
3362
|
type?: "column";
|
|
3251
|
-
archived?: boolean;
|
|
3252
3363
|
in_trash?: boolean;
|
|
3253
|
-
|
|
3364
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3254
3365
|
archived?: boolean;
|
|
3366
|
+
} | {
|
|
3255
3367
|
in_trash?: boolean;
|
|
3368
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3369
|
+
archived?: boolean;
|
|
3256
3370
|
};
|
|
3257
3371
|
export type UpdateBlockParameters = UpdateBlockPathParameters & UpdateBlockBodyParameters;
|
|
3258
3372
|
export type UpdateBlockResponse = PartialBlockObjectResponse | BlockObjectResponse;
|
|
@@ -3263,7 +3377,7 @@ export declare const updateBlock: {
|
|
|
3263
3377
|
readonly method: "patch";
|
|
3264
3378
|
readonly pathParams: readonly ["block_id"];
|
|
3265
3379
|
readonly queryParams: readonly [];
|
|
3266
|
-
readonly bodyParams: readonly ["
|
|
3380
|
+
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"];
|
|
3267
3381
|
readonly path: (p: UpdateBlockPathParameters) => string;
|
|
3268
3382
|
};
|
|
3269
3383
|
type DeleteBlockPathParameters = {
|
|
@@ -3312,6 +3426,7 @@ type AppendBlockChildrenPathParameters = {
|
|
|
3312
3426
|
};
|
|
3313
3427
|
type AppendBlockChildrenBodyParameters = {
|
|
3314
3428
|
children: Array<BlockObjectRequest>;
|
|
3429
|
+
/** @deprecated Use `position` instead. */
|
|
3315
3430
|
after?: IdRequest;
|
|
3316
3431
|
position?: ContentPositionSchema;
|
|
3317
3432
|
};
|
|
@@ -3331,7 +3446,7 @@ export declare const appendBlockChildren: {
|
|
|
3331
3446
|
readonly method: "patch";
|
|
3332
3447
|
readonly pathParams: readonly ["block_id"];
|
|
3333
3448
|
readonly queryParams: readonly [];
|
|
3334
|
-
readonly bodyParams: readonly ["
|
|
3449
|
+
readonly bodyParams: readonly ["after", "children", "position"];
|
|
3335
3450
|
readonly path: (p: AppendBlockChildrenPathParameters) => string;
|
|
3336
3451
|
};
|
|
3337
3452
|
type GetDataSourcePathParameters = {
|
|
@@ -3481,6 +3596,7 @@ type UpdateDataSourceBodyParameters = {
|
|
|
3481
3596
|
name: string;
|
|
3482
3597
|
} | null>;
|
|
3483
3598
|
in_trash?: boolean;
|
|
3599
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3484
3600
|
archived?: boolean;
|
|
3485
3601
|
parent?: ParentOfDataSourceRequest;
|
|
3486
3602
|
};
|
|
@@ -3493,7 +3609,7 @@ export declare const updateDataSource: {
|
|
|
3493
3609
|
readonly method: "patch";
|
|
3494
3610
|
readonly pathParams: readonly ["data_source_id"];
|
|
3495
3611
|
readonly queryParams: readonly [];
|
|
3496
|
-
readonly bodyParams: readonly ["title", "icon", "properties", "in_trash", "
|
|
3612
|
+
readonly bodyParams: readonly ["archived", "title", "icon", "properties", "in_trash", "parent"];
|
|
3497
3613
|
readonly path: (p: UpdateDataSourcePathParameters) => string;
|
|
3498
3614
|
};
|
|
3499
3615
|
type QueryDataSourcePathParameters = {
|
|
@@ -3517,8 +3633,9 @@ type QueryDataSourceBodyParameters = {
|
|
|
3517
3633
|
} | PropertyFilter | TimestampFilter;
|
|
3518
3634
|
start_cursor?: string;
|
|
3519
3635
|
page_size?: number;
|
|
3520
|
-
archived?: boolean;
|
|
3521
3636
|
in_trash?: boolean;
|
|
3637
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3638
|
+
archived?: boolean;
|
|
3522
3639
|
result_type?: "page" | "data_source";
|
|
3523
3640
|
};
|
|
3524
3641
|
export type QueryDataSourceParameters = QueryDataSourcePathParameters & QueryDataSourceQueryParameters & QueryDataSourceBodyParameters;
|
|
@@ -3537,7 +3654,7 @@ export declare const queryDataSource: {
|
|
|
3537
3654
|
readonly method: "post";
|
|
3538
3655
|
readonly pathParams: readonly ["data_source_id"];
|
|
3539
3656
|
readonly queryParams: readonly ["filter_properties"];
|
|
3540
|
-
readonly bodyParams: readonly ["sorts", "filter", "start_cursor", "page_size", "
|
|
3657
|
+
readonly bodyParams: readonly ["archived", "sorts", "filter", "start_cursor", "page_size", "in_trash", "result_type"];
|
|
3541
3658
|
readonly path: (p: QueryDataSourcePathParameters) => string;
|
|
3542
3659
|
};
|
|
3543
3660
|
type CreateDataSourceBodyParameters = {
|
|
@@ -3620,6 +3737,8 @@ type UpdateDatabaseBodyParameters = {
|
|
|
3620
3737
|
icon?: PageIconRequest;
|
|
3621
3738
|
cover?: PageCoverRequest;
|
|
3622
3739
|
in_trash?: boolean;
|
|
3740
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3741
|
+
archived?: boolean;
|
|
3623
3742
|
is_locked?: boolean;
|
|
3624
3743
|
};
|
|
3625
3744
|
export type UpdateDatabaseParameters = UpdateDatabasePathParameters & UpdateDatabaseBodyParameters;
|