@notionhq/client 4.0.0 → 4.0.2

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,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  type IdRequest = string;
3
2
  export type PersonUserObjectResponse = {
4
3
  type: "person";
@@ -38,6 +37,11 @@ export type BotUserObjectResponse = {
38
37
  bot: EmptyObject | BotInfoResponse;
39
38
  };
40
39
  export type UserObjectResponse = UserObjectResponseCommon & (PersonUserObjectResponse | BotUserObjectResponse);
40
+ export type GroupObjectResponse = {
41
+ name: string | null;
42
+ id: IdRequest;
43
+ object: "group";
44
+ };
41
45
  type SelectColor = "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red";
42
46
  type PartialSelectResponse = {
43
47
  id: string;
@@ -50,6 +54,10 @@ type DateResponse = {
50
54
  end: string | null;
51
55
  time_zone: TimeZoneRequest | null;
52
56
  };
57
+ type InternalFileResponse = {
58
+ url: string;
59
+ expiry_time: string;
60
+ };
53
61
  type StringRequest = string;
54
62
  type TextRequest = string;
55
63
  type StringFormulaPropertyResponse = {
@@ -197,10 +205,7 @@ type ExternalPageIconResponse = {
197
205
  };
198
206
  type FilePageIconResponse = {
199
207
  type: "file";
200
- file: {
201
- url: string;
202
- expiry_time: string;
203
- };
208
+ file: InternalFileResponse;
204
209
  };
205
210
  type CustomEmojiPageIconResponse = {
206
211
  type: "custom_emoji";
@@ -215,10 +220,7 @@ type ExternalPageCoverResponse = {
215
220
  };
216
221
  type FilePageCoverResponse = {
217
222
  type: "file";
218
- file: {
219
- url: string;
220
- expiry_time: string;
221
- };
223
+ file: InternalFileResponse;
222
224
  };
223
225
  type PageCoverResponse = ExternalPageCoverResponse | FilePageCoverResponse;
224
226
  export type PageObjectResponse = {
@@ -274,10 +276,7 @@ export type PageObjectResponse = {
274
276
  } | {
275
277
  type: "files";
276
278
  files: Array<{
277
- file: {
278
- url: string;
279
- expiry_time: string;
280
- };
279
+ file: InternalFileResponse;
281
280
  name: StringRequest;
282
281
  type?: "file";
283
282
  } | {
@@ -333,7 +332,7 @@ export type PageObjectResponse = {
333
332
  id: string;
334
333
  } | {
335
334
  type: "people";
336
- people: Array<PartialUserObjectResponse | UserObjectResponse>;
335
+ people: Array<PartialUserObjectResponse | UserObjectResponse | GroupObjectResponse>;
337
336
  id: string;
338
337
  } | {
339
338
  type: "relation";
@@ -383,10 +382,7 @@ export type PageObjectResponse = {
383
382
  } | {
384
383
  type: "files";
385
384
  files: Array<{
386
- file: {
387
- url: string;
388
- expiry_time: string;
389
- };
385
+ file: InternalFileResponse;
390
386
  name: StringRequest;
391
387
  type?: "file";
392
388
  } | {
@@ -431,7 +427,7 @@ export type PageObjectResponse = {
431
427
  rich_text: Array<RichTextItemResponse>;
432
428
  } | {
433
429
  type: "people";
434
- people: Array<PartialUserObjectResponse | UserObjectResponse>;
430
+ people: Array<PartialUserObjectResponse | UserObjectResponse | GroupObjectResponse>;
435
431
  } | {
436
432
  type: "relation";
437
433
  relation: Array<{
@@ -700,12 +696,13 @@ export type PartialBlockObjectResponse = {
700
696
  id: string;
701
697
  };
702
698
  type ApiColor = "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | "default_background" | "gray_background" | "brown_background" | "orange_background" | "yellow_background" | "green_background" | "blue_background" | "purple_background" | "pink_background" | "red_background";
699
+ type ContentWithRichTextAndColorResponse = {
700
+ rich_text: Array<RichTextItemResponse>;
701
+ color: ApiColor;
702
+ };
703
703
  export type ParagraphBlockObjectResponse = {
704
704
  type: "paragraph";
705
- paragraph: {
706
- rich_text: Array<RichTextItemResponse>;
707
- color: ApiColor;
708
- };
705
+ paragraph: ContentWithRichTextAndColorResponse;
709
706
  parent: {
710
707
  type: "database_id";
711
708
  database_id: string;
@@ -729,13 +726,14 @@ export type ParagraphBlockObjectResponse = {
729
726
  archived: boolean;
730
727
  in_trash: boolean;
731
728
  };
729
+ type HeaderContentWithRichTextAndColorResponse = {
730
+ rich_text: Array<RichTextItemResponse>;
731
+ color: ApiColor;
732
+ is_toggleable: boolean;
733
+ };
732
734
  export type Heading1BlockObjectResponse = {
733
735
  type: "heading_1";
734
- heading_1: {
735
- rich_text: Array<RichTextItemResponse>;
736
- color: ApiColor;
737
- is_toggleable: boolean;
738
- };
736
+ heading_1: HeaderContentWithRichTextAndColorResponse;
739
737
  parent: {
740
738
  type: "database_id";
741
739
  database_id: string;
@@ -761,11 +759,7 @@ export type Heading1BlockObjectResponse = {
761
759
  };
762
760
  export type Heading2BlockObjectResponse = {
763
761
  type: "heading_2";
764
- heading_2: {
765
- rich_text: Array<RichTextItemResponse>;
766
- color: ApiColor;
767
- is_toggleable: boolean;
768
- };
762
+ heading_2: HeaderContentWithRichTextAndColorResponse;
769
763
  parent: {
770
764
  type: "database_id";
771
765
  database_id: string;
@@ -791,11 +785,7 @@ export type Heading2BlockObjectResponse = {
791
785
  };
792
786
  export type Heading3BlockObjectResponse = {
793
787
  type: "heading_3";
794
- heading_3: {
795
- rich_text: Array<RichTextItemResponse>;
796
- color: ApiColor;
797
- is_toggleable: boolean;
798
- };
788
+ heading_3: HeaderContentWithRichTextAndColorResponse;
799
789
  parent: {
800
790
  type: "database_id";
801
791
  database_id: string;
@@ -821,10 +811,7 @@ export type Heading3BlockObjectResponse = {
821
811
  };
822
812
  export type BulletedListItemBlockObjectResponse = {
823
813
  type: "bulleted_list_item";
824
- bulleted_list_item: {
825
- rich_text: Array<RichTextItemResponse>;
826
- color: ApiColor;
827
- };
814
+ bulleted_list_item: ContentWithRichTextAndColorResponse;
828
815
  parent: {
829
816
  type: "database_id";
830
817
  database_id: string;
@@ -850,10 +837,7 @@ export type BulletedListItemBlockObjectResponse = {
850
837
  };
851
838
  export type NumberedListItemBlockObjectResponse = {
852
839
  type: "numbered_list_item";
853
- numbered_list_item: {
854
- rich_text: Array<RichTextItemResponse>;
855
- color: ApiColor;
856
- };
840
+ numbered_list_item: ContentWithRichTextAndColorResponse;
857
841
  parent: {
858
842
  type: "database_id";
859
843
  database_id: string;
@@ -879,10 +863,7 @@ export type NumberedListItemBlockObjectResponse = {
879
863
  };
880
864
  export type QuoteBlockObjectResponse = {
881
865
  type: "quote";
882
- quote: {
883
- rich_text: Array<RichTextItemResponse>;
884
- color: ApiColor;
885
- };
866
+ quote: ContentWithRichTextAndColorResponse;
886
867
  parent: {
887
868
  type: "database_id";
888
869
  database_id: string;
@@ -938,10 +919,7 @@ export type ToDoBlockObjectResponse = {
938
919
  };
939
920
  export type ToggleBlockObjectResponse = {
940
921
  type: "toggle";
941
- toggle: {
942
- rich_text: Array<RichTextItemResponse>;
943
- color: ApiColor;
944
- };
922
+ toggle: ContentWithRichTextAndColorResponse;
945
923
  parent: {
946
924
  type: "database_id";
947
925
  database_id: string;
@@ -1024,11 +1002,12 @@ export type SyncedBlockBlockObjectResponse = {
1024
1002
  archived: boolean;
1025
1003
  in_trash: boolean;
1026
1004
  };
1005
+ type TitleObjectResponse = {
1006
+ title: string;
1007
+ };
1027
1008
  export type ChildPageBlockObjectResponse = {
1028
1009
  type: "child_page";
1029
- child_page: {
1030
- title: string;
1031
- };
1010
+ child_page: TitleObjectResponse;
1032
1011
  parent: {
1033
1012
  type: "database_id";
1034
1013
  database_id: string;
@@ -1054,9 +1033,7 @@ export type ChildPageBlockObjectResponse = {
1054
1033
  };
1055
1034
  export type ChildDatabaseBlockObjectResponse = {
1056
1035
  type: "child_database";
1057
- child_database: {
1058
- title: string;
1059
- };
1036
+ child_database: TitleObjectResponse;
1060
1037
  parent: {
1061
1038
  type: "database_id";
1062
1039
  database_id: string;
@@ -1080,11 +1057,12 @@ export type ChildDatabaseBlockObjectResponse = {
1080
1057
  archived: boolean;
1081
1058
  in_trash: boolean;
1082
1059
  };
1060
+ type ExpressionObjectResponse = {
1061
+ expression: string;
1062
+ };
1083
1063
  export type EquationBlockObjectResponse = {
1084
1064
  type: "equation";
1085
- equation: {
1086
- expression: string;
1087
- };
1065
+ equation: ExpressionObjectResponse;
1088
1066
  parent: {
1089
1067
  type: "database_id";
1090
1068
  database_id: string;
@@ -1108,7 +1086,7 @@ export type EquationBlockObjectResponse = {
1108
1086
  archived: boolean;
1109
1087
  in_trash: boolean;
1110
1088
  };
1111
- type LanguageRequest = "abc" | "abap" | "agda" | "arduino" | "ascii art" | "assembly" | "bash" | "basic" | "bnf" | "c" | "c#" | "c++" | "clojure" | "coffeescript" | "coq" | "css" | "dart" | "dhall" | "diff" | "docker" | "ebnf" | "elixir" | "elm" | "erlang" | "f#" | "flow" | "fortran" | "gherkin" | "glsl" | "go" | "graphql" | "groovy" | "haskell" | "hcl" | "html" | "idris" | "java" | "javascript" | "json" | "julia" | "kotlin" | "latex" | "less" | "lisp" | "livescript" | "llvm ir" | "lua" | "makefile" | "markdown" | "markup" | "matlab" | "mathematica" | "mermaid" | "nix" | "notion formula" | "objective-c" | "ocaml" | "pascal" | "perl" | "php" | "plain text" | "powershell" | "prolog" | "protobuf" | "purescript" | "python" | "r" | "racket" | "reason" | "ruby" | "rust" | "sass" | "scala" | "scheme" | "scss" | "shell" | "smalltalk" | "solidity" | "sql" | "swift" | "toml" | "typescript" | "vb.net" | "verilog" | "vhdl" | "visual basic" | "webassembly" | "xml" | "yaml" | "java/c/c++/c#";
1089
+ type LanguageRequest = "abap" | "abc" | "agda" | "arduino" | "ascii art" | "assembly" | "bash" | "basic" | "bnf" | "c" | "c#" | "c++" | "clojure" | "coffeescript" | "coq" | "css" | "dart" | "dhall" | "diff" | "docker" | "ebnf" | "elixir" | "elm" | "erlang" | "f#" | "flow" | "fortran" | "gherkin" | "glsl" | "go" | "graphql" | "groovy" | "haskell" | "hcl" | "html" | "idris" | "java" | "javascript" | "json" | "julia" | "kotlin" | "latex" | "less" | "lisp" | "livescript" | "llvm ir" | "lua" | "makefile" | "markdown" | "markup" | "matlab" | "mathematica" | "mermaid" | "nix" | "notion formula" | "objective-c" | "ocaml" | "pascal" | "perl" | "php" | "plain text" | "powershell" | "prolog" | "protobuf" | "purescript" | "python" | "r" | "racket" | "reason" | "ruby" | "rust" | "sass" | "scala" | "scheme" | "scss" | "shell" | "smalltalk" | "solidity" | "sql" | "swift" | "toml" | "typescript" | "vb.net" | "verilog" | "vhdl" | "visual basic" | "webassembly" | "xml" | "yaml" | "java/c/c++/c#";
1112
1090
  export type CodeBlockObjectResponse = {
1113
1091
  type: "code";
1114
1092
  code: {
@@ -1339,13 +1317,14 @@ export type LinkToPageBlockObjectResponse = {
1339
1317
  archived: boolean;
1340
1318
  in_trash: boolean;
1341
1319
  };
1320
+ type ContentWithTableResponse = {
1321
+ has_column_header: boolean;
1322
+ has_row_header: boolean;
1323
+ table_width: number;
1324
+ };
1342
1325
  export type TableBlockObjectResponse = {
1343
1326
  type: "table";
1344
- table: {
1345
- has_column_header: boolean;
1346
- has_row_header: boolean;
1347
- table_width: number;
1348
- };
1327
+ table: ContentWithTableResponse;
1349
1328
  parent: {
1350
1329
  type: "database_id";
1351
1330
  database_id: string;
@@ -1369,11 +1348,12 @@ export type TableBlockObjectResponse = {
1369
1348
  archived: boolean;
1370
1349
  in_trash: boolean;
1371
1350
  };
1351
+ type ContentWithTableRowResponse = {
1352
+ cells: Array<Array<RichTextItemResponse>>;
1353
+ };
1372
1354
  export type TableRowBlockObjectResponse = {
1373
1355
  type: "table_row";
1374
- table_row: {
1375
- cells: Array<Array<RichTextItemResponse>>;
1376
- };
1356
+ table_row: ContentWithTableRowResponse;
1377
1357
  parent: {
1378
1358
  type: "database_id";
1379
1359
  database_id: string;
@@ -1462,10 +1442,7 @@ type ExternalMediaContentWithFileAndCaptionResponse = {
1462
1442
  };
1463
1443
  type FileMediaContentWithFileAndCaptionResponse = {
1464
1444
  type: "file";
1465
- file: {
1466
- url: string;
1467
- expiry_time: string;
1468
- };
1445
+ file: InternalFileResponse;
1469
1446
  caption: Array<RichTextItemResponse>;
1470
1447
  };
1471
1448
  type MediaContentWithFileAndCaptionResponse = ExternalMediaContentWithFileAndCaptionResponse | FileMediaContentWithFileAndCaptionResponse;
@@ -1557,10 +1534,7 @@ type ExternalMediaContentWithFileNameAndCaptionResponse = {
1557
1534
  };
1558
1535
  type FileMediaContentWithFileNameAndCaptionResponse = {
1559
1536
  type: "file";
1560
- file: {
1561
- url: string;
1562
- expiry_time: string;
1563
- };
1537
+ file: InternalFileResponse;
1564
1538
  caption: Array<RichTextItemResponse>;
1565
1539
  name: string;
1566
1540
  };
@@ -1730,10 +1704,7 @@ export type CheckboxPropertyItemObjectResponse = {
1730
1704
  export type FilesPropertyItemObjectResponse = {
1731
1705
  type: "files";
1732
1706
  files: Array<{
1733
- file: {
1734
- url: string;
1735
- expiry_time: string;
1736
- };
1707
+ file: InternalFileResponse;
1737
1708
  name: StringRequest;
1738
1709
  type?: "file";
1739
1710
  } | {
@@ -1998,6 +1969,11 @@ type DateRequest = {
1998
1969
  };
1999
1970
  type TemplateMentionRequest = TemplateMentionDateTemplateMentionRequest | TemplateMentionUserTemplateMentionRequest;
2000
1971
  type RichTextItemRequest = RichTextItemRequestCommon & (TextRichTextItemRequest | MentionRichTextItemRequest | EquationRichTextItemRequest);
1972
+ type GroupObjectRequest = {
1973
+ id: IdRequest;
1974
+ name?: string | null;
1975
+ object?: "group";
1976
+ };
2001
1977
  type InternalFileRequest = {
2002
1978
  url: string;
2003
1979
  expiry_time?: string;
@@ -2070,10 +2046,14 @@ type MediaContentWithFileNameAndCaptionRequest = {
2070
2046
  caption?: Array<RichTextItemRequest>;
2071
2047
  name?: StringRequest;
2072
2048
  };
2049
+ type ContentWithExpressionRequest = {
2050
+ expression: string;
2051
+ };
2052
+ type ContentWithTableRowRequest = {
2053
+ cells: Array<Array<RichTextItemRequest>>;
2054
+ };
2073
2055
  type TableRowRequest = {
2074
- table_row: {
2075
- cells: Array<Array<RichTextItemRequest>>;
2076
- };
2056
+ table_row: ContentWithTableRowRequest;
2077
2057
  type?: "table_row";
2078
2058
  object?: "block";
2079
2059
  };
@@ -2083,6 +2063,18 @@ type TableRequestWithTableRowChildren = {
2083
2063
  has_column_header?: boolean;
2084
2064
  has_row_header?: boolean;
2085
2065
  };
2066
+ type HeaderContentWithRichTextAndColorRequest = {
2067
+ rich_text: Array<RichTextItemRequest>;
2068
+ color?: ApiColor;
2069
+ is_toggleable?: boolean;
2070
+ };
2071
+ type ContentWithRichTextAndColorRequest = {
2072
+ rich_text: Array<RichTextItemRequest>;
2073
+ color?: ApiColor;
2074
+ };
2075
+ type ContentWithRichTextRequest = {
2076
+ rich_text: Array<RichTextItemRequest>;
2077
+ };
2086
2078
  export type BlockObjectRequestWithoutChildren = {
2087
2079
  embed: MediaContentWithUrlAndCaptionRequest;
2088
2080
  type?: "embed";
@@ -2120,9 +2112,7 @@ export type BlockObjectRequestWithoutChildren = {
2120
2112
  type?: "code";
2121
2113
  object?: "block";
2122
2114
  } | {
2123
- equation: {
2124
- expression: string;
2125
- };
2115
+ equation: ContentWithExpressionRequest;
2126
2116
  type?: "equation";
2127
2117
  object?: "block";
2128
2118
  } | {
@@ -2153,61 +2143,35 @@ export type BlockObjectRequestWithoutChildren = {
2153
2143
  type?: "link_to_page";
2154
2144
  object?: "block";
2155
2145
  } | {
2156
- table_row: {
2157
- cells: Array<Array<RichTextItemRequest>>;
2158
- };
2146
+ table_row: ContentWithTableRowRequest;
2159
2147
  type?: "table_row";
2160
2148
  object?: "block";
2161
2149
  } | {
2162
- heading_1: {
2163
- rich_text: Array<RichTextItemRequest>;
2164
- color?: ApiColor;
2165
- is_toggleable?: boolean;
2166
- };
2150
+ heading_1: HeaderContentWithRichTextAndColorRequest;
2167
2151
  type?: "heading_1";
2168
2152
  object?: "block";
2169
2153
  } | {
2170
- heading_2: {
2171
- rich_text: Array<RichTextItemRequest>;
2172
- color?: ApiColor;
2173
- is_toggleable?: boolean;
2174
- };
2154
+ heading_2: HeaderContentWithRichTextAndColorRequest;
2175
2155
  type?: "heading_2";
2176
2156
  object?: "block";
2177
2157
  } | {
2178
- heading_3: {
2179
- rich_text: Array<RichTextItemRequest>;
2180
- color?: ApiColor;
2181
- is_toggleable?: boolean;
2182
- };
2158
+ heading_3: HeaderContentWithRichTextAndColorRequest;
2183
2159
  type?: "heading_3";
2184
2160
  object?: "block";
2185
2161
  } | {
2186
- paragraph: {
2187
- rich_text: Array<RichTextItemRequest>;
2188
- color?: ApiColor;
2189
- };
2162
+ paragraph: ContentWithRichTextAndColorRequest;
2190
2163
  type?: "paragraph";
2191
2164
  object?: "block";
2192
2165
  } | {
2193
- bulleted_list_item: {
2194
- rich_text: Array<RichTextItemRequest>;
2195
- color?: ApiColor;
2196
- };
2166
+ bulleted_list_item: ContentWithRichTextAndColorRequest;
2197
2167
  type?: "bulleted_list_item";
2198
2168
  object?: "block";
2199
2169
  } | {
2200
- numbered_list_item: {
2201
- rich_text: Array<RichTextItemRequest>;
2202
- color?: ApiColor;
2203
- };
2170
+ numbered_list_item: ContentWithRichTextAndColorRequest;
2204
2171
  type?: "numbered_list_item";
2205
2172
  object?: "block";
2206
2173
  } | {
2207
- quote: {
2208
- rich_text: Array<RichTextItemRequest>;
2209
- color?: ApiColor;
2210
- };
2174
+ quote: ContentWithRichTextAndColorRequest;
2211
2175
  type?: "quote";
2212
2176
  object?: "block";
2213
2177
  } | {
@@ -2219,16 +2183,11 @@ export type BlockObjectRequestWithoutChildren = {
2219
2183
  type?: "to_do";
2220
2184
  object?: "block";
2221
2185
  } | {
2222
- toggle: {
2223
- rich_text: Array<RichTextItemRequest>;
2224
- color?: ApiColor;
2225
- };
2186
+ toggle: ContentWithRichTextAndColorRequest;
2226
2187
  type?: "toggle";
2227
2188
  object?: "block";
2228
2189
  } | {
2229
- template: {
2230
- rich_text: Array<RichTextItemRequest>;
2231
- };
2190
+ template: ContentWithRichTextRequest;
2232
2191
  type?: "template";
2233
2192
  object?: "block";
2234
2193
  } | {
@@ -2297,9 +2256,7 @@ type BlockObjectWithSingleLevelOfChildrenRequest = {
2297
2256
  type?: "code";
2298
2257
  object?: "block";
2299
2258
  } | {
2300
- equation: {
2301
- expression: string;
2302
- };
2259
+ equation: ContentWithExpressionRequest;
2303
2260
  type?: "equation";
2304
2261
  object?: "block";
2305
2262
  } | {
@@ -2330,9 +2287,7 @@ type BlockObjectWithSingleLevelOfChildrenRequest = {
2330
2287
  type?: "link_to_page";
2331
2288
  object?: "block";
2332
2289
  } | {
2333
- table_row: {
2334
- cells: Array<Array<RichTextItemRequest>>;
2335
- };
2290
+ table_row: ContentWithTableRowRequest;
2336
2291
  type?: "table_row";
2337
2292
  object?: "block";
2338
2293
  } | {
@@ -2456,9 +2411,7 @@ export type BlockObjectRequest = {
2456
2411
  type?: "code";
2457
2412
  object?: "block";
2458
2413
  } | {
2459
- equation: {
2460
- expression: string;
2461
- };
2414
+ equation: ContentWithExpressionRequest;
2462
2415
  type?: "equation";
2463
2416
  object?: "block";
2464
2417
  } | {
@@ -2489,9 +2442,7 @@ export type BlockObjectRequest = {
2489
2442
  type?: "link_to_page";
2490
2443
  object?: "block";
2491
2444
  } | {
2492
- table_row: {
2493
- cells: Array<Array<RichTextItemRequest>>;
2494
- };
2445
+ table_row: ContentWithTableRowRequest;
2495
2446
  type?: "table_row";
2496
2447
  object?: "block";
2497
2448
  } | {
@@ -3058,7 +3009,7 @@ type CreatePageBodyParameters = {
3058
3009
  name?: string | null;
3059
3010
  avatar_url?: string | null;
3060
3011
  object?: "user";
3061
- }>;
3012
+ } | GroupObjectRequest>;
3062
3013
  type?: "people";
3063
3014
  } | {
3064
3015
  email: StringRequest | null;
@@ -3190,7 +3141,7 @@ type UpdatePageBodyParameters = {
3190
3141
  name?: string | null;
3191
3142
  avatar_url?: string | null;
3192
3143
  object?: "user";
3193
- }>;
3144
+ } | GroupObjectRequest>;
3194
3145
  type?: "people";
3195
3146
  } | {
3196
3147
  email: StringRequest | null;
@@ -3326,9 +3277,7 @@ type UpdateBlockBodyParameters = {
3326
3277
  archived?: boolean;
3327
3278
  in_trash?: boolean;
3328
3279
  } | {
3329
- equation: {
3330
- expression: string;
3331
- };
3280
+ equation: ContentWithExpressionRequest;
3332
3281
  type?: "equation";
3333
3282
  archived?: boolean;
3334
3283
  in_trash?: boolean;
@@ -3364,68 +3313,42 @@ type UpdateBlockBodyParameters = {
3364
3313
  archived?: boolean;
3365
3314
  in_trash?: boolean;
3366
3315
  } | {
3367
- table_row: {
3368
- cells: Array<Array<RichTextItemRequest>>;
3369
- };
3316
+ table_row: ContentWithTableRowRequest;
3370
3317
  type?: "table_row";
3371
3318
  archived?: boolean;
3372
3319
  in_trash?: boolean;
3373
3320
  } | {
3374
- heading_1: {
3375
- rich_text: Array<RichTextItemRequest>;
3376
- color?: ApiColor;
3377
- is_toggleable?: boolean;
3378
- };
3321
+ heading_1: HeaderContentWithRichTextAndColorRequest;
3379
3322
  type?: "heading_1";
3380
3323
  archived?: boolean;
3381
3324
  in_trash?: boolean;
3382
3325
  } | {
3383
- heading_2: {
3384
- rich_text: Array<RichTextItemRequest>;
3385
- color?: ApiColor;
3386
- is_toggleable?: boolean;
3387
- };
3326
+ heading_2: HeaderContentWithRichTextAndColorRequest;
3388
3327
  type?: "heading_2";
3389
3328
  archived?: boolean;
3390
3329
  in_trash?: boolean;
3391
3330
  } | {
3392
- heading_3: {
3393
- rich_text: Array<RichTextItemRequest>;
3394
- color?: ApiColor;
3395
- is_toggleable?: boolean;
3396
- };
3331
+ heading_3: HeaderContentWithRichTextAndColorRequest;
3397
3332
  type?: "heading_3";
3398
3333
  archived?: boolean;
3399
3334
  in_trash?: boolean;
3400
3335
  } | {
3401
- paragraph: {
3402
- rich_text: Array<RichTextItemRequest>;
3403
- color?: ApiColor;
3404
- };
3336
+ paragraph: ContentWithRichTextAndColorRequest;
3405
3337
  type?: "paragraph";
3406
3338
  archived?: boolean;
3407
3339
  in_trash?: boolean;
3408
3340
  } | {
3409
- bulleted_list_item: {
3410
- rich_text: Array<RichTextItemRequest>;
3411
- color?: ApiColor;
3412
- };
3341
+ bulleted_list_item: ContentWithRichTextAndColorRequest;
3413
3342
  type?: "bulleted_list_item";
3414
3343
  archived?: boolean;
3415
3344
  in_trash?: boolean;
3416
3345
  } | {
3417
- numbered_list_item: {
3418
- rich_text: Array<RichTextItemRequest>;
3419
- color?: ApiColor;
3420
- };
3346
+ numbered_list_item: ContentWithRichTextAndColorRequest;
3421
3347
  type?: "numbered_list_item";
3422
3348
  archived?: boolean;
3423
3349
  in_trash?: boolean;
3424
3350
  } | {
3425
- quote: {
3426
- rich_text: Array<RichTextItemRequest>;
3427
- color?: ApiColor;
3428
- };
3351
+ quote: ContentWithRichTextAndColorRequest;
3429
3352
  type?: "quote";
3430
3353
  archived?: boolean;
3431
3354
  in_trash?: boolean;
@@ -3439,17 +3362,12 @@ type UpdateBlockBodyParameters = {
3439
3362
  archived?: boolean;
3440
3363
  in_trash?: boolean;
3441
3364
  } | {
3442
- toggle: {
3443
- rich_text: Array<RichTextItemRequest>;
3444
- color?: ApiColor;
3445
- };
3365
+ toggle: ContentWithRichTextAndColorRequest;
3446
3366
  type?: "toggle";
3447
3367
  archived?: boolean;
3448
3368
  in_trash?: boolean;
3449
3369
  } | {
3450
- template: {
3451
- rich_text: Array<RichTextItemRequest>;
3452
- };
3370
+ template: ContentWithRichTextRequest;
3453
3371
  type?: "template";
3454
3372
  archived?: boolean;
3455
3373
  in_trash?: boolean;
@@ -4100,6 +4018,21 @@ export declare const listComments: {
4100
4018
  readonly bodyParams: readonly [];
4101
4019
  readonly path: () => string;
4102
4020
  };
4021
+ type GetCommentPathParameters = {
4022
+ comment_id: IdRequest;
4023
+ };
4024
+ export type GetCommentParameters = GetCommentPathParameters;
4025
+ export type GetCommentResponse = PartialCommentObjectResponse | CommentObjectResponse;
4026
+ /**
4027
+ * Retrieve a comment
4028
+ */
4029
+ export declare const getComment: {
4030
+ readonly method: "get";
4031
+ readonly pathParams: readonly ["comment_id"];
4032
+ readonly queryParams: readonly [];
4033
+ readonly bodyParams: readonly [];
4034
+ readonly path: (p: GetCommentPathParameters) => string;
4035
+ };
4103
4036
  type CreateFileUploadBodyParameters = {
4104
4037
  mode?: "single_part" | "multi_part" | "external_url";
4105
4038
  filename?: string;
@@ -4197,18 +4130,22 @@ export declare const getFileUpload: {
4197
4130
  readonly path: (p: GetFileUploadPathParameters) => string;
4198
4131
  };
4199
4132
  type OauthTokenBodyParameters = {
4200
- grant_type: string;
4133
+ grant_type: "authorization_code";
4201
4134
  code: string;
4202
4135
  redirect_uri?: string;
4203
4136
  external_account?: {
4204
4137
  key: string;
4205
4138
  name: string;
4206
4139
  };
4140
+ } | {
4141
+ grant_type: "refresh_token";
4142
+ refresh_token: string;
4207
4143
  };
4208
4144
  export type OauthTokenParameters = OauthTokenBodyParameters;
4209
4145
  export type OauthTokenResponse = {
4210
4146
  access_token: string;
4211
4147
  token_type: "bearer";
4148
+ refresh_token: string | null;
4212
4149
  bot_id: string;
4213
4150
  workspace_icon: string | null;
4214
4151
  workspace_name: string | null;
@@ -4233,13 +4170,13 @@ export type OauthTokenResponse = {
4233
4170
  request_id?: string;
4234
4171
  };
4235
4172
  /**
4236
- * Exchange an authorization code for an access token
4173
+ * Exchange an authorization code for an access and refresh token
4237
4174
  */
4238
4175
  export declare const oauthToken: {
4239
4176
  readonly method: "post";
4240
4177
  readonly pathParams: readonly [];
4241
4178
  readonly queryParams: readonly [];
4242
- readonly bodyParams: readonly ["grant_type", "code", "redirect_uri", "external_account"];
4179
+ readonly bodyParams: readonly ["grant_type", "code", "redirect_uri", "external_account", "refresh_token"];
4243
4180
  readonly path: () => string;
4244
4181
  };
4245
4182
  type OauthRevokeBodyParameters = {