@notionhq/client 5.11.1 → 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 +188 -85
- package/build/src/api-endpoints.d.ts.map +1 -1
- package/build/src/api-endpoints.js +5 -5
- 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 = {
|
|
@@ -3080,38 +3149,45 @@ type UpdateBlockPathParameters = {
|
|
|
3080
3149
|
type UpdateBlockBodyParameters = {
|
|
3081
3150
|
embed: UpdateMediaContentWithUrlAndCaptionRequest;
|
|
3082
3151
|
type?: "embed";
|
|
3083
|
-
archived?: boolean;
|
|
3084
3152
|
in_trash?: boolean;
|
|
3153
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3154
|
+
archived?: boolean;
|
|
3085
3155
|
} | {
|
|
3086
3156
|
bookmark: UpdateMediaContentWithUrlAndCaptionRequest;
|
|
3087
3157
|
type?: "bookmark";
|
|
3088
|
-
archived?: boolean;
|
|
3089
3158
|
in_trash?: boolean;
|
|
3159
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3160
|
+
archived?: boolean;
|
|
3090
3161
|
} | {
|
|
3091
3162
|
image: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3092
3163
|
type?: "image";
|
|
3093
|
-
archived?: boolean;
|
|
3094
3164
|
in_trash?: boolean;
|
|
3165
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3166
|
+
archived?: boolean;
|
|
3095
3167
|
} | {
|
|
3096
3168
|
video: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3097
3169
|
type?: "video";
|
|
3098
|
-
archived?: boolean;
|
|
3099
3170
|
in_trash?: boolean;
|
|
3171
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3172
|
+
archived?: boolean;
|
|
3100
3173
|
} | {
|
|
3101
3174
|
pdf: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3102
3175
|
type?: "pdf";
|
|
3103
|
-
archived?: boolean;
|
|
3104
3176
|
in_trash?: boolean;
|
|
3177
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3178
|
+
archived?: boolean;
|
|
3105
3179
|
} | {
|
|
3106
3180
|
file: UpdateMediaContentWithFileNameAndCaptionRequest;
|
|
3107
3181
|
type?: "file";
|
|
3108
|
-
archived?: boolean;
|
|
3109
3182
|
in_trash?: boolean;
|
|
3183
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3184
|
+
archived?: boolean;
|
|
3110
3185
|
} | {
|
|
3111
3186
|
audio: UpdateMediaContentWithFileAndCaptionRequest;
|
|
3112
3187
|
type?: "audio";
|
|
3113
|
-
archived?: boolean;
|
|
3114
3188
|
in_trash?: boolean;
|
|
3189
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3190
|
+
archived?: boolean;
|
|
3115
3191
|
} | {
|
|
3116
3192
|
code: {
|
|
3117
3193
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3119,30 +3195,35 @@ type UpdateBlockBodyParameters = {
|
|
|
3119
3195
|
caption?: Array<RichTextItemRequest>;
|
|
3120
3196
|
};
|
|
3121
3197
|
type?: "code";
|
|
3122
|
-
archived?: boolean;
|
|
3123
3198
|
in_trash?: boolean;
|
|
3199
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3200
|
+
archived?: boolean;
|
|
3124
3201
|
} | {
|
|
3125
3202
|
equation: ContentWithExpressionRequest;
|
|
3126
3203
|
type?: "equation";
|
|
3127
|
-
archived?: boolean;
|
|
3128
3204
|
in_trash?: boolean;
|
|
3205
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3206
|
+
archived?: boolean;
|
|
3129
3207
|
} | {
|
|
3130
3208
|
divider: EmptyObject;
|
|
3131
3209
|
type?: "divider";
|
|
3132
|
-
archived?: boolean;
|
|
3133
3210
|
in_trash?: boolean;
|
|
3211
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3212
|
+
archived?: boolean;
|
|
3134
3213
|
} | {
|
|
3135
3214
|
breadcrumb: EmptyObject;
|
|
3136
3215
|
type?: "breadcrumb";
|
|
3137
|
-
archived?: boolean;
|
|
3138
3216
|
in_trash?: boolean;
|
|
3217
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3218
|
+
archived?: boolean;
|
|
3139
3219
|
} | {
|
|
3140
3220
|
table_of_contents: {
|
|
3141
3221
|
color?: ApiColor;
|
|
3142
3222
|
};
|
|
3143
3223
|
type?: "table_of_contents";
|
|
3144
|
-
archived?: boolean;
|
|
3145
3224
|
in_trash?: boolean;
|
|
3225
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3226
|
+
archived?: boolean;
|
|
3146
3227
|
} | {
|
|
3147
3228
|
link_to_page: {
|
|
3148
3229
|
page_id: IdRequest;
|
|
@@ -3155,48 +3236,57 @@ type UpdateBlockBodyParameters = {
|
|
|
3155
3236
|
type?: "comment_id";
|
|
3156
3237
|
};
|
|
3157
3238
|
type?: "link_to_page";
|
|
3158
|
-
archived?: boolean;
|
|
3159
3239
|
in_trash?: boolean;
|
|
3240
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3241
|
+
archived?: boolean;
|
|
3160
3242
|
} | {
|
|
3161
3243
|
table_row: ContentWithTableRowRequest;
|
|
3162
3244
|
type?: "table_row";
|
|
3163
|
-
archived?: boolean;
|
|
3164
3245
|
in_trash?: boolean;
|
|
3246
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3247
|
+
archived?: boolean;
|
|
3165
3248
|
} | {
|
|
3166
3249
|
heading_1: HeaderContentWithRichTextAndColorRequest;
|
|
3167
3250
|
type?: "heading_1";
|
|
3168
|
-
archived?: boolean;
|
|
3169
3251
|
in_trash?: boolean;
|
|
3252
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3253
|
+
archived?: boolean;
|
|
3170
3254
|
} | {
|
|
3171
3255
|
heading_2: HeaderContentWithRichTextAndColorRequest;
|
|
3172
3256
|
type?: "heading_2";
|
|
3173
|
-
archived?: boolean;
|
|
3174
3257
|
in_trash?: boolean;
|
|
3258
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3259
|
+
archived?: boolean;
|
|
3175
3260
|
} | {
|
|
3176
3261
|
heading_3: HeaderContentWithRichTextAndColorRequest;
|
|
3177
3262
|
type?: "heading_3";
|
|
3178
|
-
archived?: boolean;
|
|
3179
3263
|
in_trash?: boolean;
|
|
3264
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3265
|
+
archived?: boolean;
|
|
3180
3266
|
} | {
|
|
3181
3267
|
paragraph: ContentWithRichTextAndColorRequest;
|
|
3182
3268
|
type?: "paragraph";
|
|
3183
|
-
archived?: boolean;
|
|
3184
3269
|
in_trash?: boolean;
|
|
3270
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3271
|
+
archived?: boolean;
|
|
3185
3272
|
} | {
|
|
3186
3273
|
bulleted_list_item: ContentWithRichTextAndColorRequest;
|
|
3187
3274
|
type?: "bulleted_list_item";
|
|
3188
|
-
archived?: boolean;
|
|
3189
3275
|
in_trash?: boolean;
|
|
3276
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3277
|
+
archived?: boolean;
|
|
3190
3278
|
} | {
|
|
3191
3279
|
numbered_list_item: ContentWithRichTextAndColorRequest;
|
|
3192
3280
|
type?: "numbered_list_item";
|
|
3193
|
-
archived?: boolean;
|
|
3194
3281
|
in_trash?: boolean;
|
|
3282
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3283
|
+
archived?: boolean;
|
|
3195
3284
|
} | {
|
|
3196
3285
|
quote: ContentWithRichTextAndColorRequest;
|
|
3197
3286
|
type?: "quote";
|
|
3198
|
-
archived?: boolean;
|
|
3199
3287
|
in_trash?: boolean;
|
|
3288
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3289
|
+
archived?: boolean;
|
|
3200
3290
|
} | {
|
|
3201
3291
|
to_do: {
|
|
3202
3292
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3204,18 +3294,21 @@ type UpdateBlockBodyParameters = {
|
|
|
3204
3294
|
color?: ApiColor;
|
|
3205
3295
|
};
|
|
3206
3296
|
type?: "to_do";
|
|
3207
|
-
archived?: boolean;
|
|
3208
3297
|
in_trash?: boolean;
|
|
3298
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3299
|
+
archived?: boolean;
|
|
3209
3300
|
} | {
|
|
3210
3301
|
toggle: ContentWithRichTextAndColorRequest;
|
|
3211
3302
|
type?: "toggle";
|
|
3212
|
-
archived?: boolean;
|
|
3213
3303
|
in_trash?: boolean;
|
|
3304
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3305
|
+
archived?: boolean;
|
|
3214
3306
|
} | {
|
|
3215
3307
|
template: ContentWithRichTextRequest;
|
|
3216
3308
|
type?: "template";
|
|
3217
|
-
archived?: boolean;
|
|
3218
3309
|
in_trash?: boolean;
|
|
3310
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3311
|
+
archived?: boolean;
|
|
3219
3312
|
} | {
|
|
3220
3313
|
callout: {
|
|
3221
3314
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -3223,8 +3316,9 @@ type UpdateBlockBodyParameters = {
|
|
|
3223
3316
|
color?: ApiColor;
|
|
3224
3317
|
};
|
|
3225
3318
|
type?: "callout";
|
|
3226
|
-
archived?: boolean;
|
|
3227
3319
|
in_trash?: boolean;
|
|
3320
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3321
|
+
archived?: boolean;
|
|
3228
3322
|
} | {
|
|
3229
3323
|
synced_block: {
|
|
3230
3324
|
synced_from: {
|
|
@@ -3233,26 +3327,30 @@ type UpdateBlockBodyParameters = {
|
|
|
3233
3327
|
} | null;
|
|
3234
3328
|
};
|
|
3235
3329
|
type?: "synced_block";
|
|
3236
|
-
archived?: boolean;
|
|
3237
3330
|
in_trash?: boolean;
|
|
3331
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3332
|
+
archived?: boolean;
|
|
3238
3333
|
} | {
|
|
3239
3334
|
table: {
|
|
3240
3335
|
has_column_header?: boolean;
|
|
3241
3336
|
has_row_header?: boolean;
|
|
3242
3337
|
};
|
|
3243
3338
|
type?: "table";
|
|
3244
|
-
archived?: boolean;
|
|
3245
3339
|
in_trash?: boolean;
|
|
3340
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3341
|
+
archived?: boolean;
|
|
3246
3342
|
} | {
|
|
3247
3343
|
column: {
|
|
3248
3344
|
width_ratio?: number;
|
|
3249
3345
|
};
|
|
3250
3346
|
type?: "column";
|
|
3251
|
-
archived?: boolean;
|
|
3252
3347
|
in_trash?: boolean;
|
|
3253
|
-
|
|
3348
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3254
3349
|
archived?: boolean;
|
|
3350
|
+
} | {
|
|
3255
3351
|
in_trash?: boolean;
|
|
3352
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3353
|
+
archived?: boolean;
|
|
3256
3354
|
};
|
|
3257
3355
|
export type UpdateBlockParameters = UpdateBlockPathParameters & UpdateBlockBodyParameters;
|
|
3258
3356
|
export type UpdateBlockResponse = PartialBlockObjectResponse | BlockObjectResponse;
|
|
@@ -3263,7 +3361,7 @@ export declare const updateBlock: {
|
|
|
3263
3361
|
readonly method: "patch";
|
|
3264
3362
|
readonly pathParams: readonly ["block_id"];
|
|
3265
3363
|
readonly queryParams: readonly [];
|
|
3266
|
-
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"];
|
|
3267
3365
|
readonly path: (p: UpdateBlockPathParameters) => string;
|
|
3268
3366
|
};
|
|
3269
3367
|
type DeleteBlockPathParameters = {
|
|
@@ -3312,6 +3410,7 @@ type AppendBlockChildrenPathParameters = {
|
|
|
3312
3410
|
};
|
|
3313
3411
|
type AppendBlockChildrenBodyParameters = {
|
|
3314
3412
|
children: Array<BlockObjectRequest>;
|
|
3413
|
+
/** @deprecated Use `position` instead. */
|
|
3315
3414
|
after?: IdRequest;
|
|
3316
3415
|
position?: ContentPositionSchema;
|
|
3317
3416
|
};
|
|
@@ -3331,7 +3430,7 @@ export declare const appendBlockChildren: {
|
|
|
3331
3430
|
readonly method: "patch";
|
|
3332
3431
|
readonly pathParams: readonly ["block_id"];
|
|
3333
3432
|
readonly queryParams: readonly [];
|
|
3334
|
-
readonly bodyParams: readonly ["
|
|
3433
|
+
readonly bodyParams: readonly ["after", "children", "position"];
|
|
3335
3434
|
readonly path: (p: AppendBlockChildrenPathParameters) => string;
|
|
3336
3435
|
};
|
|
3337
3436
|
type GetDataSourcePathParameters = {
|
|
@@ -3481,6 +3580,7 @@ type UpdateDataSourceBodyParameters = {
|
|
|
3481
3580
|
name: string;
|
|
3482
3581
|
} | null>;
|
|
3483
3582
|
in_trash?: boolean;
|
|
3583
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3484
3584
|
archived?: boolean;
|
|
3485
3585
|
parent?: ParentOfDataSourceRequest;
|
|
3486
3586
|
};
|
|
@@ -3493,7 +3593,7 @@ export declare const updateDataSource: {
|
|
|
3493
3593
|
readonly method: "patch";
|
|
3494
3594
|
readonly pathParams: readonly ["data_source_id"];
|
|
3495
3595
|
readonly queryParams: readonly [];
|
|
3496
|
-
readonly bodyParams: readonly ["title", "icon", "properties", "in_trash", "
|
|
3596
|
+
readonly bodyParams: readonly ["archived", "title", "icon", "properties", "in_trash", "parent"];
|
|
3497
3597
|
readonly path: (p: UpdateDataSourcePathParameters) => string;
|
|
3498
3598
|
};
|
|
3499
3599
|
type QueryDataSourcePathParameters = {
|
|
@@ -3517,8 +3617,9 @@ type QueryDataSourceBodyParameters = {
|
|
|
3517
3617
|
} | PropertyFilter | TimestampFilter;
|
|
3518
3618
|
start_cursor?: string;
|
|
3519
3619
|
page_size?: number;
|
|
3520
|
-
archived?: boolean;
|
|
3521
3620
|
in_trash?: boolean;
|
|
3621
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3622
|
+
archived?: boolean;
|
|
3522
3623
|
result_type?: "page" | "data_source";
|
|
3523
3624
|
};
|
|
3524
3625
|
export type QueryDataSourceParameters = QueryDataSourcePathParameters & QueryDataSourceQueryParameters & QueryDataSourceBodyParameters;
|
|
@@ -3537,7 +3638,7 @@ export declare const queryDataSource: {
|
|
|
3537
3638
|
readonly method: "post";
|
|
3538
3639
|
readonly pathParams: readonly ["data_source_id"];
|
|
3539
3640
|
readonly queryParams: readonly ["filter_properties"];
|
|
3540
|
-
readonly bodyParams: readonly ["sorts", "filter", "start_cursor", "page_size", "
|
|
3641
|
+
readonly bodyParams: readonly ["archived", "sorts", "filter", "start_cursor", "page_size", "in_trash", "result_type"];
|
|
3541
3642
|
readonly path: (p: QueryDataSourcePathParameters) => string;
|
|
3542
3643
|
};
|
|
3543
3644
|
type CreateDataSourceBodyParameters = {
|
|
@@ -3620,6 +3721,8 @@ type UpdateDatabaseBodyParameters = {
|
|
|
3620
3721
|
icon?: PageIconRequest;
|
|
3621
3722
|
cover?: PageCoverRequest;
|
|
3622
3723
|
in_trash?: boolean;
|
|
3724
|
+
/** @deprecated Use `in_trash` instead. */
|
|
3725
|
+
archived?: boolean;
|
|
3623
3726
|
is_locked?: boolean;
|
|
3624
3727
|
};
|
|
3625
3728
|
export type UpdateDatabaseParameters = UpdateDatabasePathParameters & UpdateDatabaseBodyParameters;
|