@notionhq/client 2.2.5 → 2.2.7

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@notionhq/client",
3
- "version": "2.2.5",
3
+ "version": "2.2.7",
4
4
  "description": "A simple and easy to use client for the Notion API",
5
5
  "engines": {
6
6
  "node": ">=12"
@@ -232,6 +232,13 @@ export type PageObjectResponse = {
232
232
  type: "formula";
233
233
  formula: FormulaPropertyResponse;
234
234
  id: string;
235
+ } | {
236
+ type: "unique_id";
237
+ unique_id: {
238
+ prefix: string | null;
239
+ number: number | null;
240
+ };
241
+ id: string;
235
242
  } | {
236
243
  type: "title";
237
244
  title: Array<RichTextItemResponse>;
@@ -316,6 +323,7 @@ export type PageObjectResponse = {
316
323
  last_edited_time: string;
317
324
  archived: boolean;
318
325
  url: string;
326
+ public_url: string | null;
319
327
  };
320
328
  export type PartialPageObjectResponse = {
321
329
  object: "page";
@@ -539,6 +547,7 @@ export type DatabaseObjectResponse = {
539
547
  last_edited_time: string;
540
548
  archived: boolean;
541
549
  url: string;
550
+ public_url: string | null;
542
551
  };
543
552
  export type PartialBlockObjectResponse = {
544
553
  object: "block";
@@ -1628,6 +1637,15 @@ export type FormulaPropertyItemObjectResponse = {
1628
1637
  object: "property_item";
1629
1638
  id: string;
1630
1639
  };
1640
+ export type UniqueIdPropertyItemObjectResponse = {
1641
+ type: "unique_id";
1642
+ unique_id: {
1643
+ prefix: string | null;
1644
+ number: number | null;
1645
+ };
1646
+ object: "property_item";
1647
+ id: string;
1648
+ };
1631
1649
  export type TitlePropertyItemObjectResponse = {
1632
1650
  type: "title";
1633
1651
  title: RichTextItemResponse;
@@ -1680,7 +1698,7 @@ export type RollupPropertyItemObjectResponse = {
1680
1698
  object: "property_item";
1681
1699
  id: string;
1682
1700
  };
1683
- export type PropertyItemObjectResponse = NumberPropertyItemObjectResponse | UrlPropertyItemObjectResponse | SelectPropertyItemObjectResponse | MultiSelectPropertyItemObjectResponse | StatusPropertyItemObjectResponse | DatePropertyItemObjectResponse | EmailPropertyItemObjectResponse | PhoneNumberPropertyItemObjectResponse | CheckboxPropertyItemObjectResponse | FilesPropertyItemObjectResponse | CreatedByPropertyItemObjectResponse | CreatedTimePropertyItemObjectResponse | LastEditedByPropertyItemObjectResponse | LastEditedTimePropertyItemObjectResponse | FormulaPropertyItemObjectResponse | TitlePropertyItemObjectResponse | RichTextPropertyItemObjectResponse | PeoplePropertyItemObjectResponse | RelationPropertyItemObjectResponse | RollupPropertyItemObjectResponse;
1701
+ export type PropertyItemObjectResponse = NumberPropertyItemObjectResponse | UrlPropertyItemObjectResponse | SelectPropertyItemObjectResponse | MultiSelectPropertyItemObjectResponse | StatusPropertyItemObjectResponse | DatePropertyItemObjectResponse | EmailPropertyItemObjectResponse | PhoneNumberPropertyItemObjectResponse | CheckboxPropertyItemObjectResponse | FilesPropertyItemObjectResponse | CreatedByPropertyItemObjectResponse | CreatedTimePropertyItemObjectResponse | LastEditedByPropertyItemObjectResponse | LastEditedTimePropertyItemObjectResponse | FormulaPropertyItemObjectResponse | UniqueIdPropertyItemObjectResponse | TitlePropertyItemObjectResponse | RichTextPropertyItemObjectResponse | PeoplePropertyItemObjectResponse | RelationPropertyItemObjectResponse | RollupPropertyItemObjectResponse;
1684
1702
  export type CommentObjectResponse = {
1685
1703
  object: "comment";
1686
1704
  id: string;
@@ -6455,6 +6473,7 @@ type AppendBlockChildrenPathParameters = {
6455
6473
  };
6456
6474
  type AppendBlockChildrenBodyParameters = {
6457
6475
  children: Array<BlockObjectRequest>;
6476
+ after?: IdRequest;
6458
6477
  };
6459
6478
  export type AppendBlockChildrenParameters = AppendBlockChildrenPathParameters & AppendBlockChildrenBodyParameters;
6460
6479
  export type AppendBlockChildrenResponse = {
@@ -6469,7 +6488,7 @@ export declare const appendBlockChildren: {
6469
6488
  readonly method: "patch";
6470
6489
  readonly pathParams: readonly ["block_id"];
6471
6490
  readonly queryParams: readonly [];
6472
- readonly bodyParams: readonly ["children"];
6491
+ readonly bodyParams: readonly ["children", "after"];
6473
6492
  readonly path: (p: AppendBlockChildrenPathParameters) => string;
6474
6493
  };
6475
6494
  type GetDatabasePathParameters = {