@notionhq/client 2.2.14 → 2.2.16
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.
|
@@ -41,11 +41,10 @@ export type BotUserObjectResponse = {
|
|
|
41
41
|
object: "user";
|
|
42
42
|
};
|
|
43
43
|
export type UserObjectResponse = PersonUserObjectResponse | BotUserObjectResponse;
|
|
44
|
-
type StringRequest = string;
|
|
45
44
|
type SelectColor = "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red";
|
|
46
|
-
type
|
|
47
|
-
id:
|
|
48
|
-
name:
|
|
45
|
+
type PartialSelectResponse = {
|
|
46
|
+
id: string;
|
|
47
|
+
name: string;
|
|
49
48
|
color: SelectColor;
|
|
50
49
|
};
|
|
51
50
|
type TimeZoneRequest = "Africa/Abidjan" | "Africa/Accra" | "Africa/Addis_Ababa" | "Africa/Algiers" | "Africa/Asmara" | "Africa/Asmera" | "Africa/Bamako" | "Africa/Bangui" | "Africa/Banjul" | "Africa/Bissau" | "Africa/Blantyre" | "Africa/Brazzaville" | "Africa/Bujumbura" | "Africa/Cairo" | "Africa/Casablanca" | "Africa/Ceuta" | "Africa/Conakry" | "Africa/Dakar" | "Africa/Dar_es_Salaam" | "Africa/Djibouti" | "Africa/Douala" | "Africa/El_Aaiun" | "Africa/Freetown" | "Africa/Gaborone" | "Africa/Harare" | "Africa/Johannesburg" | "Africa/Juba" | "Africa/Kampala" | "Africa/Khartoum" | "Africa/Kigali" | "Africa/Kinshasa" | "Africa/Lagos" | "Africa/Libreville" | "Africa/Lome" | "Africa/Luanda" | "Africa/Lubumbashi" | "Africa/Lusaka" | "Africa/Malabo" | "Africa/Maputo" | "Africa/Maseru" | "Africa/Mbabane" | "Africa/Mogadishu" | "Africa/Monrovia" | "Africa/Nairobi" | "Africa/Ndjamena" | "Africa/Niamey" | "Africa/Nouakchott" | "Africa/Ouagadougou" | "Africa/Porto-Novo" | "Africa/Sao_Tome" | "Africa/Timbuktu" | "Africa/Tripoli" | "Africa/Tunis" | "Africa/Windhoek" | "America/Adak" | "America/Anchorage" | "America/Anguilla" | "America/Antigua" | "America/Araguaina" | "America/Argentina/Buenos_Aires" | "America/Argentina/Catamarca" | "America/Argentina/ComodRivadavia" | "America/Argentina/Cordoba" | "America/Argentina/Jujuy" | "America/Argentina/La_Rioja" | "America/Argentina/Mendoza" | "America/Argentina/Rio_Gallegos" | "America/Argentina/Salta" | "America/Argentina/San_Juan" | "America/Argentina/San_Luis" | "America/Argentina/Tucuman" | "America/Argentina/Ushuaia" | "America/Aruba" | "America/Asuncion" | "America/Atikokan" | "America/Atka" | "America/Bahia" | "America/Bahia_Banderas" | "America/Barbados" | "America/Belem" | "America/Belize" | "America/Blanc-Sablon" | "America/Boa_Vista" | "America/Bogota" | "America/Boise" | "America/Buenos_Aires" | "America/Cambridge_Bay" | "America/Campo_Grande" | "America/Cancun" | "America/Caracas" | "America/Catamarca" | "America/Cayenne" | "America/Cayman" | "America/Chicago" | "America/Chihuahua" | "America/Ciudad_Juarez" | "America/Coral_Harbour" | "America/Cordoba" | "America/Costa_Rica" | "America/Creston" | "America/Cuiaba" | "America/Curacao" | "America/Danmarkshavn" | "America/Dawson" | "America/Dawson_Creek" | "America/Denver" | "America/Detroit" | "America/Dominica" | "America/Edmonton" | "America/Eirunepe" | "America/El_Salvador" | "America/Ensenada" | "America/Fort_Nelson" | "America/Fort_Wayne" | "America/Fortaleza" | "America/Glace_Bay" | "America/Godthab" | "America/Goose_Bay" | "America/Grand_Turk" | "America/Grenada" | "America/Guadeloupe" | "America/Guatemala" | "America/Guayaquil" | "America/Guyana" | "America/Halifax" | "America/Havana" | "America/Hermosillo" | "America/Indiana/Indianapolis" | "America/Indiana/Knox" | "America/Indiana/Marengo" | "America/Indiana/Petersburg" | "America/Indiana/Tell_City" | "America/Indiana/Vevay" | "America/Indiana/Vincennes" | "America/Indiana/Winamac" | "America/Indianapolis" | "America/Inuvik" | "America/Iqaluit" | "America/Jamaica" | "America/Jujuy" | "America/Juneau" | "America/Kentucky/Louisville" | "America/Kentucky/Monticello" | "America/Knox_IN" | "America/Kralendijk" | "America/La_Paz" | "America/Lima" | "America/Los_Angeles" | "America/Louisville" | "America/Lower_Princes" | "America/Maceio" | "America/Managua" | "America/Manaus" | "America/Marigot" | "America/Martinique" | "America/Matamoros" | "America/Mazatlan" | "America/Mendoza" | "America/Menominee" | "America/Merida" | "America/Metlakatla" | "America/Mexico_City" | "America/Miquelon" | "America/Moncton" | "America/Monterrey" | "America/Montevideo" | "America/Montreal" | "America/Montserrat" | "America/Nassau" | "America/New_York" | "America/Nipigon" | "America/Nome" | "America/Noronha" | "America/North_Dakota/Beulah" | "America/North_Dakota/Center" | "America/North_Dakota/New_Salem" | "America/Nuuk" | "America/Ojinaga" | "America/Panama" | "America/Pangnirtung" | "America/Paramaribo" | "America/Phoenix" | "America/Port-au-Prince" | "America/Port_of_Spain" | "America/Porto_Acre" | "America/Porto_Velho" | "America/Puerto_Rico" | "America/Punta_Arenas" | "America/Rainy_River" | "America/Rankin_Inlet" | "America/Recife" | "America/Regina" | "America/Resolute" | "America/Rio_Branco" | "America/Rosario" | "America/Santa_Isabel" | "America/Santarem" | "America/Santiago" | "America/Santo_Domingo" | "America/Sao_Paulo" | "America/Scoresbysund" | "America/Shiprock" | "America/Sitka" | "America/St_Barthelemy" | "America/St_Johns" | "America/St_Kitts" | "America/St_Lucia" | "America/St_Thomas" | "America/St_Vincent" | "America/Swift_Current" | "America/Tegucigalpa" | "America/Thule" | "America/Thunder_Bay" | "America/Tijuana" | "America/Toronto" | "America/Tortola" | "America/Vancouver" | "America/Virgin" | "America/Whitehorse" | "America/Winnipeg" | "America/Yakutat" | "America/Yellowknife" | "Antarctica/Casey" | "Antarctica/Davis" | "Antarctica/DumontDUrville" | "Antarctica/Macquarie" | "Antarctica/Mawson" | "Antarctica/McMurdo" | "Antarctica/Palmer" | "Antarctica/Rothera" | "Antarctica/South_Pole" | "Antarctica/Syowa" | "Antarctica/Troll" | "Antarctica/Vostok" | "Arctic/Longyearbyen" | "Asia/Aden" | "Asia/Almaty" | "Asia/Amman" | "Asia/Anadyr" | "Asia/Aqtau" | "Asia/Aqtobe" | "Asia/Ashgabat" | "Asia/Ashkhabad" | "Asia/Atyrau" | "Asia/Baghdad" | "Asia/Bahrain" | "Asia/Baku" | "Asia/Bangkok" | "Asia/Barnaul" | "Asia/Beirut" | "Asia/Bishkek" | "Asia/Brunei" | "Asia/Calcutta" | "Asia/Chita" | "Asia/Choibalsan" | "Asia/Chongqing" | "Asia/Chungking" | "Asia/Colombo" | "Asia/Dacca" | "Asia/Damascus" | "Asia/Dhaka" | "Asia/Dili" | "Asia/Dubai" | "Asia/Dushanbe" | "Asia/Famagusta" | "Asia/Gaza" | "Asia/Harbin" | "Asia/Hebron" | "Asia/Ho_Chi_Minh" | "Asia/Hong_Kong" | "Asia/Hovd" | "Asia/Irkutsk" | "Asia/Istanbul" | "Asia/Jakarta" | "Asia/Jayapura" | "Asia/Jerusalem" | "Asia/Kabul" | "Asia/Kamchatka" | "Asia/Karachi" | "Asia/Kashgar" | "Asia/Kathmandu" | "Asia/Katmandu" | "Asia/Khandyga" | "Asia/Kolkata" | "Asia/Krasnoyarsk" | "Asia/Kuala_Lumpur" | "Asia/Kuching" | "Asia/Kuwait" | "Asia/Macao" | "Asia/Macau" | "Asia/Magadan" | "Asia/Makassar" | "Asia/Manila" | "Asia/Muscat" | "Asia/Nicosia" | "Asia/Novokuznetsk" | "Asia/Novosibirsk" | "Asia/Omsk" | "Asia/Oral" | "Asia/Phnom_Penh" | "Asia/Pontianak" | "Asia/Pyongyang" | "Asia/Qatar" | "Asia/Qostanay" | "Asia/Qyzylorda" | "Asia/Rangoon" | "Asia/Riyadh" | "Asia/Saigon" | "Asia/Sakhalin" | "Asia/Samarkand" | "Asia/Seoul" | "Asia/Shanghai" | "Asia/Singapore" | "Asia/Srednekolymsk" | "Asia/Taipei" | "Asia/Tashkent" | "Asia/Tbilisi" | "Asia/Tehran" | "Asia/Tel_Aviv" | "Asia/Thimbu" | "Asia/Thimphu" | "Asia/Tokyo" | "Asia/Tomsk" | "Asia/Ujung_Pandang" | "Asia/Ulaanbaatar" | "Asia/Ulan_Bator" | "Asia/Urumqi" | "Asia/Ust-Nera" | "Asia/Vientiane" | "Asia/Vladivostok" | "Asia/Yakutsk" | "Asia/Yangon" | "Asia/Yekaterinburg" | "Asia/Yerevan" | "Atlantic/Azores" | "Atlantic/Bermuda" | "Atlantic/Canary" | "Atlantic/Cape_Verde" | "Atlantic/Faeroe" | "Atlantic/Faroe" | "Atlantic/Jan_Mayen" | "Atlantic/Madeira" | "Atlantic/Reykjavik" | "Atlantic/South_Georgia" | "Atlantic/St_Helena" | "Atlantic/Stanley" | "Australia/ACT" | "Australia/Adelaide" | "Australia/Brisbane" | "Australia/Broken_Hill" | "Australia/Canberra" | "Australia/Currie" | "Australia/Darwin" | "Australia/Eucla" | "Australia/Hobart" | "Australia/LHI" | "Australia/Lindeman" | "Australia/Lord_Howe" | "Australia/Melbourne" | "Australia/NSW" | "Australia/North" | "Australia/Perth" | "Australia/Queensland" | "Australia/South" | "Australia/Sydney" | "Australia/Tasmania" | "Australia/Victoria" | "Australia/West" | "Australia/Yancowinna" | "Brazil/Acre" | "Brazil/DeNoronha" | "Brazil/East" | "Brazil/West" | "CET" | "CST6CDT" | "Canada/Atlantic" | "Canada/Central" | "Canada/Eastern" | "Canada/Mountain" | "Canada/Newfoundland" | "Canada/Pacific" | "Canada/Saskatchewan" | "Canada/Yukon" | "Chile/Continental" | "Chile/EasterIsland" | "Cuba" | "EET" | "EST" | "EST5EDT" | "Egypt" | "Eire" | "Etc/GMT" | "Etc/GMT+0" | "Etc/GMT+1" | "Etc/GMT+10" | "Etc/GMT+11" | "Etc/GMT+12" | "Etc/GMT+2" | "Etc/GMT+3" | "Etc/GMT+4" | "Etc/GMT+5" | "Etc/GMT+6" | "Etc/GMT+7" | "Etc/GMT+8" | "Etc/GMT+9" | "Etc/GMT-0" | "Etc/GMT-1" | "Etc/GMT-10" | "Etc/GMT-11" | "Etc/GMT-12" | "Etc/GMT-13" | "Etc/GMT-14" | "Etc/GMT-2" | "Etc/GMT-3" | "Etc/GMT-4" | "Etc/GMT-5" | "Etc/GMT-6" | "Etc/GMT-7" | "Etc/GMT-8" | "Etc/GMT-9" | "Etc/GMT0" | "Etc/Greenwich" | "Etc/UCT" | "Etc/UTC" | "Etc/Universal" | "Etc/Zulu" | "Europe/Amsterdam" | "Europe/Andorra" | "Europe/Astrakhan" | "Europe/Athens" | "Europe/Belfast" | "Europe/Belgrade" | "Europe/Berlin" | "Europe/Bratislava" | "Europe/Brussels" | "Europe/Bucharest" | "Europe/Budapest" | "Europe/Busingen" | "Europe/Chisinau" | "Europe/Copenhagen" | "Europe/Dublin" | "Europe/Gibraltar" | "Europe/Guernsey" | "Europe/Helsinki" | "Europe/Isle_of_Man" | "Europe/Istanbul" | "Europe/Jersey" | "Europe/Kaliningrad" | "Europe/Kiev" | "Europe/Kirov" | "Europe/Kyiv" | "Europe/Lisbon" | "Europe/Ljubljana" | "Europe/London" | "Europe/Luxembourg" | "Europe/Madrid" | "Europe/Malta" | "Europe/Mariehamn" | "Europe/Minsk" | "Europe/Monaco" | "Europe/Moscow" | "Europe/Nicosia" | "Europe/Oslo" | "Europe/Paris" | "Europe/Podgorica" | "Europe/Prague" | "Europe/Riga" | "Europe/Rome" | "Europe/Samara" | "Europe/San_Marino" | "Europe/Sarajevo" | "Europe/Saratov" | "Europe/Simferopol" | "Europe/Skopje" | "Europe/Sofia" | "Europe/Stockholm" | "Europe/Tallinn" | "Europe/Tirane" | "Europe/Tiraspol" | "Europe/Ulyanovsk" | "Europe/Uzhgorod" | "Europe/Vaduz" | "Europe/Vatican" | "Europe/Vienna" | "Europe/Vilnius" | "Europe/Volgograd" | "Europe/Warsaw" | "Europe/Zagreb" | "Europe/Zaporozhye" | "Europe/Zurich" | "GB" | "GB-Eire" | "GMT" | "GMT+0" | "GMT-0" | "GMT0" | "Greenwich" | "HST" | "Hongkong" | "Iceland" | "Indian/Antananarivo" | "Indian/Chagos" | "Indian/Christmas" | "Indian/Cocos" | "Indian/Comoro" | "Indian/Kerguelen" | "Indian/Mahe" | "Indian/Maldives" | "Indian/Mauritius" | "Indian/Mayotte" | "Indian/Reunion" | "Iran" | "Israel" | "Jamaica" | "Japan" | "Kwajalein" | "Libya" | "MET" | "MST" | "MST7MDT" | "Mexico/BajaNorte" | "Mexico/BajaSur" | "Mexico/General" | "NZ" | "NZ-CHAT" | "Navajo" | "PRC" | "PST8PDT" | "Pacific/Apia" | "Pacific/Auckland" | "Pacific/Bougainville" | "Pacific/Chatham" | "Pacific/Chuuk" | "Pacific/Easter" | "Pacific/Efate" | "Pacific/Enderbury" | "Pacific/Fakaofo" | "Pacific/Fiji" | "Pacific/Funafuti" | "Pacific/Galapagos" | "Pacific/Gambier" | "Pacific/Guadalcanal" | "Pacific/Guam" | "Pacific/Honolulu" | "Pacific/Johnston" | "Pacific/Kanton" | "Pacific/Kiritimati" | "Pacific/Kosrae" | "Pacific/Kwajalein" | "Pacific/Majuro" | "Pacific/Marquesas" | "Pacific/Midway" | "Pacific/Nauru" | "Pacific/Niue" | "Pacific/Norfolk" | "Pacific/Noumea" | "Pacific/Pago_Pago" | "Pacific/Palau" | "Pacific/Pitcairn" | "Pacific/Pohnpei" | "Pacific/Ponape" | "Pacific/Port_Moresby" | "Pacific/Rarotonga" | "Pacific/Saipan" | "Pacific/Samoa" | "Pacific/Tahiti" | "Pacific/Tarawa" | "Pacific/Tongatapu" | "Pacific/Truk" | "Pacific/Wake" | "Pacific/Wallis" | "Pacific/Yap" | "Poland" | "Portugal" | "ROC" | "ROK" | "Singapore" | "Turkey" | "UCT" | "US/Alaska" | "US/Aleutian" | "US/Arizona" | "US/Central" | "US/East-Indiana" | "US/Eastern" | "US/Hawaii" | "US/Indiana-Starke" | "US/Michigan" | "US/Mountain" | "US/Pacific" | "US/Pacific-New" | "US/Samoa" | "UTC" | "Universal" | "W-SU" | "WET" | "Zulu";
|
|
@@ -54,6 +53,7 @@ type DateResponse = {
|
|
|
54
53
|
end: string | null;
|
|
55
54
|
time_zone: TimeZoneRequest | null;
|
|
56
55
|
};
|
|
56
|
+
type StringRequest = string;
|
|
57
57
|
type TextRequest = string;
|
|
58
58
|
type StringFormulaPropertyResponse = {
|
|
59
59
|
type: "string";
|
|
@@ -124,7 +124,7 @@ type AnnotationResponse = {
|
|
|
124
124
|
strikethrough: boolean;
|
|
125
125
|
underline: boolean;
|
|
126
126
|
code: boolean;
|
|
127
|
-
color: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | "gray_background" | "brown_background" | "orange_background" | "yellow_background" | "green_background" | "blue_background" | "purple_background" | "pink_background" | "red_background";
|
|
127
|
+
color: "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";
|
|
128
128
|
};
|
|
129
129
|
export type TextRichTextItemResponse = {
|
|
130
130
|
type: "text";
|
|
@@ -141,6 +141,9 @@ export type TextRichTextItemResponse = {
|
|
|
141
141
|
type LinkPreviewMentionResponse = {
|
|
142
142
|
url: TextRequest;
|
|
143
143
|
};
|
|
144
|
+
type LinkMentionResponse = {
|
|
145
|
+
href: string;
|
|
146
|
+
};
|
|
144
147
|
type TemplateMentionDateTemplateMentionResponse = {
|
|
145
148
|
type: "template_mention_date";
|
|
146
149
|
template_mention_date: "today" | "now";
|
|
@@ -150,6 +153,11 @@ type TemplateMentionUserTemplateMentionResponse = {
|
|
|
150
153
|
template_mention_user: "me";
|
|
151
154
|
};
|
|
152
155
|
type TemplateMentionResponse = TemplateMentionDateTemplateMentionResponse | TemplateMentionUserTemplateMentionResponse;
|
|
156
|
+
type CustomEmojiResponse = {
|
|
157
|
+
id: IdRequest;
|
|
158
|
+
name: string;
|
|
159
|
+
url: string;
|
|
160
|
+
};
|
|
153
161
|
export type MentionRichTextItemResponse = {
|
|
154
162
|
type: "mention";
|
|
155
163
|
mention: {
|
|
@@ -161,6 +169,9 @@ export type MentionRichTextItemResponse = {
|
|
|
161
169
|
} | {
|
|
162
170
|
type: "link_preview";
|
|
163
171
|
link_preview: LinkPreviewMentionResponse;
|
|
172
|
+
} | {
|
|
173
|
+
type: "link_mention";
|
|
174
|
+
link_mention: LinkMentionResponse;
|
|
164
175
|
} | {
|
|
165
176
|
type: "template_mention";
|
|
166
177
|
template_mention: TemplateMentionResponse;
|
|
@@ -174,6 +185,9 @@ export type MentionRichTextItemResponse = {
|
|
|
174
185
|
database: {
|
|
175
186
|
id: IdRequest;
|
|
176
187
|
};
|
|
188
|
+
} | {
|
|
189
|
+
type: "custom_emoji";
|
|
190
|
+
custom_emoji: CustomEmojiResponse;
|
|
177
191
|
};
|
|
178
192
|
annotations: AnnotationResponse;
|
|
179
193
|
plain_text: string;
|
|
@@ -215,15 +229,15 @@ export type PageObjectResponse = {
|
|
|
215
229
|
id: string;
|
|
216
230
|
} | {
|
|
217
231
|
type: "select";
|
|
218
|
-
select:
|
|
232
|
+
select: PartialSelectResponse | null;
|
|
219
233
|
id: string;
|
|
220
234
|
} | {
|
|
221
235
|
type: "multi_select";
|
|
222
|
-
multi_select: Array<
|
|
236
|
+
multi_select: Array<PartialSelectResponse>;
|
|
223
237
|
id: string;
|
|
224
238
|
} | {
|
|
225
239
|
type: "status";
|
|
226
|
-
status:
|
|
240
|
+
status: PartialSelectResponse | null;
|
|
227
241
|
id: string;
|
|
228
242
|
} | {
|
|
229
243
|
type: "date";
|
|
@@ -278,6 +292,10 @@ export type PageObjectResponse = {
|
|
|
278
292
|
type: "formula";
|
|
279
293
|
formula: FormulaPropertyResponse;
|
|
280
294
|
id: string;
|
|
295
|
+
} | {
|
|
296
|
+
type: "button";
|
|
297
|
+
button: Record<string, never>;
|
|
298
|
+
id: string;
|
|
281
299
|
} | {
|
|
282
300
|
type: "unique_id";
|
|
283
301
|
unique_id: {
|
|
@@ -327,13 +345,13 @@ export type PageObjectResponse = {
|
|
|
327
345
|
url: string | null;
|
|
328
346
|
} | {
|
|
329
347
|
type: "select";
|
|
330
|
-
select:
|
|
348
|
+
select: PartialSelectResponse | null;
|
|
331
349
|
} | {
|
|
332
350
|
type: "multi_select";
|
|
333
|
-
multi_select: Array<
|
|
351
|
+
multi_select: Array<PartialSelectResponse>;
|
|
334
352
|
} | {
|
|
335
353
|
type: "status";
|
|
336
|
-
status:
|
|
354
|
+
status: PartialSelectResponse | null;
|
|
337
355
|
} | {
|
|
338
356
|
type: "date";
|
|
339
357
|
date: DateResponse | null;
|
|
@@ -377,6 +395,9 @@ export type PageObjectResponse = {
|
|
|
377
395
|
} | {
|
|
378
396
|
type: "formula";
|
|
379
397
|
formula: FormulaPropertyResponse;
|
|
398
|
+
} | {
|
|
399
|
+
type: "button";
|
|
400
|
+
button: Record<string, never>;
|
|
380
401
|
} | {
|
|
381
402
|
type: "unique_id";
|
|
382
403
|
unique_id: {
|
|
@@ -419,6 +440,9 @@ export type PageObjectResponse = {
|
|
|
419
440
|
url: string;
|
|
420
441
|
expiry_time: string;
|
|
421
442
|
};
|
|
443
|
+
} | null | {
|
|
444
|
+
type: "custom_emoji";
|
|
445
|
+
custom_emoji: CustomEmojiResponse;
|
|
422
446
|
} | null;
|
|
423
447
|
cover: {
|
|
424
448
|
type: "external";
|
|
@@ -439,6 +463,7 @@ export type PageObjectResponse = {
|
|
|
439
463
|
created_time: string;
|
|
440
464
|
last_edited_time: string;
|
|
441
465
|
archived: boolean;
|
|
466
|
+
in_trash: boolean;
|
|
442
467
|
url: string;
|
|
443
468
|
public_url: string | null;
|
|
444
469
|
};
|
|
@@ -446,7 +471,8 @@ export type PartialPageObjectResponse = {
|
|
|
446
471
|
object: "page";
|
|
447
472
|
id: string;
|
|
448
473
|
};
|
|
449
|
-
type NumberFormat = "number" | "number_with_commas" | "percent" | "dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "real" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
474
|
+
type NumberFormat = "number" | "number_with_commas" | "percent" | "dollar" | "australian_dollar" | "canadian_dollar" | "singapore_dollar" | "euro" | "pound" | "yen" | "ruble" | "rupee" | "won" | "yuan" | "real" | "lira" | "rupiah" | "franc" | "hong_kong_dollar" | "new_zealand_dollar" | "krona" | "norwegian_krone" | "mexican_peso" | "rand" | "new_taiwan_dollar" | "danish_krone" | "zloty" | "baht" | "forint" | "koruna" | "shekel" | "chilean_peso" | "philippine_peso" | "dirham" | "colombian_peso" | "riyal" | "ringgit" | "leu" | "argentine_peso" | "uruguayan_peso" | "peruvian_sol";
|
|
475
|
+
type PropertyDescriptionRequest = string;
|
|
450
476
|
type NumberDatabasePropertyConfigResponse = {
|
|
451
477
|
type: "number";
|
|
452
478
|
number: {
|
|
@@ -454,6 +480,7 @@ type NumberDatabasePropertyConfigResponse = {
|
|
|
454
480
|
};
|
|
455
481
|
id: string;
|
|
456
482
|
name: string;
|
|
483
|
+
description: PropertyDescriptionRequest | null;
|
|
457
484
|
};
|
|
458
485
|
type FormulaDatabasePropertyConfigResponse = {
|
|
459
486
|
type: "formula";
|
|
@@ -462,6 +489,13 @@ type FormulaDatabasePropertyConfigResponse = {
|
|
|
462
489
|
};
|
|
463
490
|
id: string;
|
|
464
491
|
name: string;
|
|
492
|
+
description: PropertyDescriptionRequest | null;
|
|
493
|
+
};
|
|
494
|
+
type SelectPropertyResponse = {
|
|
495
|
+
id: StringRequest;
|
|
496
|
+
name: StringRequest;
|
|
497
|
+
color: SelectColor;
|
|
498
|
+
description: StringRequest | null;
|
|
465
499
|
};
|
|
466
500
|
type SelectDatabasePropertyConfigResponse = {
|
|
467
501
|
type: "select";
|
|
@@ -470,6 +504,7 @@ type SelectDatabasePropertyConfigResponse = {
|
|
|
470
504
|
};
|
|
471
505
|
id: string;
|
|
472
506
|
name: string;
|
|
507
|
+
description: PropertyDescriptionRequest | null;
|
|
473
508
|
};
|
|
474
509
|
type MultiSelectDatabasePropertyConfigResponse = {
|
|
475
510
|
type: "multi_select";
|
|
@@ -478,11 +513,13 @@ type MultiSelectDatabasePropertyConfigResponse = {
|
|
|
478
513
|
};
|
|
479
514
|
id: string;
|
|
480
515
|
name: string;
|
|
516
|
+
description: PropertyDescriptionRequest | null;
|
|
481
517
|
};
|
|
482
518
|
type StatusPropertyResponse = {
|
|
483
519
|
id: StringRequest;
|
|
484
520
|
name: StringRequest;
|
|
485
521
|
color: SelectColor;
|
|
522
|
+
description: StringRequest | null;
|
|
486
523
|
};
|
|
487
524
|
type StatusDatabasePropertyConfigResponse = {
|
|
488
525
|
type: "status";
|
|
@@ -497,6 +534,7 @@ type StatusDatabasePropertyConfigResponse = {
|
|
|
497
534
|
};
|
|
498
535
|
id: string;
|
|
499
536
|
name: string;
|
|
537
|
+
description: PropertyDescriptionRequest | null;
|
|
500
538
|
};
|
|
501
539
|
type SinglePropertyDatabasePropertyRelationConfigResponse = {
|
|
502
540
|
type: "single_property";
|
|
@@ -517,6 +555,7 @@ type RelationDatabasePropertyConfigResponse = {
|
|
|
517
555
|
relation: DatabasePropertyRelationConfigResponse;
|
|
518
556
|
id: string;
|
|
519
557
|
name: string;
|
|
558
|
+
description: PropertyDescriptionRequest | null;
|
|
520
559
|
};
|
|
521
560
|
type RollupDatabasePropertyConfigResponse = {
|
|
522
561
|
type: "rollup";
|
|
@@ -529,6 +568,7 @@ type RollupDatabasePropertyConfigResponse = {
|
|
|
529
568
|
};
|
|
530
569
|
id: string;
|
|
531
570
|
name: string;
|
|
571
|
+
description: PropertyDescriptionRequest | null;
|
|
532
572
|
};
|
|
533
573
|
type UniqueIdDatabasePropertyConfigResponse = {
|
|
534
574
|
type: "unique_id";
|
|
@@ -537,84 +577,98 @@ type UniqueIdDatabasePropertyConfigResponse = {
|
|
|
537
577
|
};
|
|
538
578
|
id: string;
|
|
539
579
|
name: string;
|
|
580
|
+
description: PropertyDescriptionRequest | null;
|
|
540
581
|
};
|
|
541
582
|
type TitleDatabasePropertyConfigResponse = {
|
|
542
583
|
type: "title";
|
|
543
584
|
title: EmptyObject;
|
|
544
585
|
id: string;
|
|
545
586
|
name: string;
|
|
587
|
+
description: PropertyDescriptionRequest | null;
|
|
546
588
|
};
|
|
547
589
|
type RichTextDatabasePropertyConfigResponse = {
|
|
548
590
|
type: "rich_text";
|
|
549
591
|
rich_text: EmptyObject;
|
|
550
592
|
id: string;
|
|
551
593
|
name: string;
|
|
594
|
+
description: PropertyDescriptionRequest | null;
|
|
552
595
|
};
|
|
553
596
|
type UrlDatabasePropertyConfigResponse = {
|
|
554
597
|
type: "url";
|
|
555
598
|
url: EmptyObject;
|
|
556
599
|
id: string;
|
|
557
600
|
name: string;
|
|
601
|
+
description: PropertyDescriptionRequest | null;
|
|
558
602
|
};
|
|
559
603
|
type PeopleDatabasePropertyConfigResponse = {
|
|
560
604
|
type: "people";
|
|
561
605
|
people: EmptyObject;
|
|
562
606
|
id: string;
|
|
563
607
|
name: string;
|
|
608
|
+
description: PropertyDescriptionRequest | null;
|
|
564
609
|
};
|
|
565
610
|
type FilesDatabasePropertyConfigResponse = {
|
|
566
611
|
type: "files";
|
|
567
612
|
files: EmptyObject;
|
|
568
613
|
id: string;
|
|
569
614
|
name: string;
|
|
615
|
+
description: PropertyDescriptionRequest | null;
|
|
570
616
|
};
|
|
571
617
|
type EmailDatabasePropertyConfigResponse = {
|
|
572
618
|
type: "email";
|
|
573
619
|
email: EmptyObject;
|
|
574
620
|
id: string;
|
|
575
621
|
name: string;
|
|
622
|
+
description: PropertyDescriptionRequest | null;
|
|
576
623
|
};
|
|
577
624
|
type PhoneNumberDatabasePropertyConfigResponse = {
|
|
578
625
|
type: "phone_number";
|
|
579
626
|
phone_number: EmptyObject;
|
|
580
627
|
id: string;
|
|
581
628
|
name: string;
|
|
629
|
+
description: PropertyDescriptionRequest | null;
|
|
582
630
|
};
|
|
583
631
|
type DateDatabasePropertyConfigResponse = {
|
|
584
632
|
type: "date";
|
|
585
633
|
date: EmptyObject;
|
|
586
634
|
id: string;
|
|
587
635
|
name: string;
|
|
636
|
+
description: PropertyDescriptionRequest | null;
|
|
588
637
|
};
|
|
589
638
|
type CheckboxDatabasePropertyConfigResponse = {
|
|
590
639
|
type: "checkbox";
|
|
591
640
|
checkbox: EmptyObject;
|
|
592
641
|
id: string;
|
|
593
642
|
name: string;
|
|
643
|
+
description: PropertyDescriptionRequest | null;
|
|
594
644
|
};
|
|
595
645
|
type CreatedByDatabasePropertyConfigResponse = {
|
|
596
646
|
type: "created_by";
|
|
597
647
|
created_by: EmptyObject;
|
|
598
648
|
id: string;
|
|
599
649
|
name: string;
|
|
650
|
+
description: PropertyDescriptionRequest | null;
|
|
600
651
|
};
|
|
601
652
|
type CreatedTimeDatabasePropertyConfigResponse = {
|
|
602
653
|
type: "created_time";
|
|
603
654
|
created_time: EmptyObject;
|
|
604
655
|
id: string;
|
|
605
656
|
name: string;
|
|
657
|
+
description: PropertyDescriptionRequest | null;
|
|
606
658
|
};
|
|
607
659
|
type LastEditedByDatabasePropertyConfigResponse = {
|
|
608
660
|
type: "last_edited_by";
|
|
609
661
|
last_edited_by: EmptyObject;
|
|
610
662
|
id: string;
|
|
611
663
|
name: string;
|
|
664
|
+
description: PropertyDescriptionRequest | null;
|
|
612
665
|
};
|
|
613
666
|
type LastEditedTimeDatabasePropertyConfigResponse = {
|
|
614
667
|
type: "last_edited_time";
|
|
615
668
|
last_edited_time: EmptyObject;
|
|
616
669
|
id: string;
|
|
617
670
|
name: string;
|
|
671
|
+
description: PropertyDescriptionRequest | null;
|
|
618
672
|
};
|
|
619
673
|
type DatabasePropertyConfigResponse = NumberDatabasePropertyConfigResponse | FormulaDatabasePropertyConfigResponse | SelectDatabasePropertyConfigResponse | MultiSelectDatabasePropertyConfigResponse | StatusDatabasePropertyConfigResponse | RelationDatabasePropertyConfigResponse | RollupDatabasePropertyConfigResponse | UniqueIdDatabasePropertyConfigResponse | TitleDatabasePropertyConfigResponse | RichTextDatabasePropertyConfigResponse | UrlDatabasePropertyConfigResponse | PeopleDatabasePropertyConfigResponse | FilesDatabasePropertyConfigResponse | EmailDatabasePropertyConfigResponse | PhoneNumberDatabasePropertyConfigResponse | DateDatabasePropertyConfigResponse | CheckboxDatabasePropertyConfigResponse | CreatedByDatabasePropertyConfigResponse | CreatedTimeDatabasePropertyConfigResponse | LastEditedByDatabasePropertyConfigResponse | LastEditedTimeDatabasePropertyConfigResponse;
|
|
620
674
|
export type PartialDatabaseObjectResponse = {
|
|
@@ -639,6 +693,9 @@ export type DatabaseObjectResponse = {
|
|
|
639
693
|
url: string;
|
|
640
694
|
expiry_time: string;
|
|
641
695
|
};
|
|
696
|
+
} | null | {
|
|
697
|
+
type: "custom_emoji";
|
|
698
|
+
custom_emoji: CustomEmojiResponse;
|
|
642
699
|
} | null;
|
|
643
700
|
cover: {
|
|
644
701
|
type: "external";
|
|
@@ -674,6 +731,7 @@ export type DatabaseObjectResponse = {
|
|
|
674
731
|
created_time: string;
|
|
675
732
|
last_edited_time: string;
|
|
676
733
|
archived: boolean;
|
|
734
|
+
in_trash: boolean;
|
|
677
735
|
url: string;
|
|
678
736
|
public_url: string | null;
|
|
679
737
|
};
|
|
@@ -681,7 +739,7 @@ export type PartialBlockObjectResponse = {
|
|
|
681
739
|
object: "block";
|
|
682
740
|
id: string;
|
|
683
741
|
};
|
|
684
|
-
type ApiColor = "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | "gray_background" | "brown_background" | "orange_background" | "yellow_background" | "green_background" | "blue_background" | "purple_background" | "pink_background" | "red_background";
|
|
742
|
+
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";
|
|
685
743
|
export type ParagraphBlockObjectResponse = {
|
|
686
744
|
type: "paragraph";
|
|
687
745
|
paragraph: {
|
|
@@ -709,6 +767,7 @@ export type ParagraphBlockObjectResponse = {
|
|
|
709
767
|
last_edited_by: PartialUserObjectResponse;
|
|
710
768
|
has_children: boolean;
|
|
711
769
|
archived: boolean;
|
|
770
|
+
in_trash: boolean;
|
|
712
771
|
};
|
|
713
772
|
export type Heading1BlockObjectResponse = {
|
|
714
773
|
type: "heading_1";
|
|
@@ -738,6 +797,7 @@ export type Heading1BlockObjectResponse = {
|
|
|
738
797
|
last_edited_by: PartialUserObjectResponse;
|
|
739
798
|
has_children: boolean;
|
|
740
799
|
archived: boolean;
|
|
800
|
+
in_trash: boolean;
|
|
741
801
|
};
|
|
742
802
|
export type Heading2BlockObjectResponse = {
|
|
743
803
|
type: "heading_2";
|
|
@@ -767,6 +827,7 @@ export type Heading2BlockObjectResponse = {
|
|
|
767
827
|
last_edited_by: PartialUserObjectResponse;
|
|
768
828
|
has_children: boolean;
|
|
769
829
|
archived: boolean;
|
|
830
|
+
in_trash: boolean;
|
|
770
831
|
};
|
|
771
832
|
export type Heading3BlockObjectResponse = {
|
|
772
833
|
type: "heading_3";
|
|
@@ -796,6 +857,7 @@ export type Heading3BlockObjectResponse = {
|
|
|
796
857
|
last_edited_by: PartialUserObjectResponse;
|
|
797
858
|
has_children: boolean;
|
|
798
859
|
archived: boolean;
|
|
860
|
+
in_trash: boolean;
|
|
799
861
|
};
|
|
800
862
|
export type BulletedListItemBlockObjectResponse = {
|
|
801
863
|
type: "bulleted_list_item";
|
|
@@ -824,6 +886,7 @@ export type BulletedListItemBlockObjectResponse = {
|
|
|
824
886
|
last_edited_by: PartialUserObjectResponse;
|
|
825
887
|
has_children: boolean;
|
|
826
888
|
archived: boolean;
|
|
889
|
+
in_trash: boolean;
|
|
827
890
|
};
|
|
828
891
|
export type NumberedListItemBlockObjectResponse = {
|
|
829
892
|
type: "numbered_list_item";
|
|
@@ -852,6 +915,7 @@ export type NumberedListItemBlockObjectResponse = {
|
|
|
852
915
|
last_edited_by: PartialUserObjectResponse;
|
|
853
916
|
has_children: boolean;
|
|
854
917
|
archived: boolean;
|
|
918
|
+
in_trash: boolean;
|
|
855
919
|
};
|
|
856
920
|
export type QuoteBlockObjectResponse = {
|
|
857
921
|
type: "quote";
|
|
@@ -880,6 +944,7 @@ export type QuoteBlockObjectResponse = {
|
|
|
880
944
|
last_edited_by: PartialUserObjectResponse;
|
|
881
945
|
has_children: boolean;
|
|
882
946
|
archived: boolean;
|
|
947
|
+
in_trash: boolean;
|
|
883
948
|
};
|
|
884
949
|
export type ToDoBlockObjectResponse = {
|
|
885
950
|
type: "to_do";
|
|
@@ -909,6 +974,7 @@ export type ToDoBlockObjectResponse = {
|
|
|
909
974
|
last_edited_by: PartialUserObjectResponse;
|
|
910
975
|
has_children: boolean;
|
|
911
976
|
archived: boolean;
|
|
977
|
+
in_trash: boolean;
|
|
912
978
|
};
|
|
913
979
|
export type ToggleBlockObjectResponse = {
|
|
914
980
|
type: "toggle";
|
|
@@ -937,6 +1003,7 @@ export type ToggleBlockObjectResponse = {
|
|
|
937
1003
|
last_edited_by: PartialUserObjectResponse;
|
|
938
1004
|
has_children: boolean;
|
|
939
1005
|
archived: boolean;
|
|
1006
|
+
in_trash: boolean;
|
|
940
1007
|
};
|
|
941
1008
|
export type TemplateBlockObjectResponse = {
|
|
942
1009
|
type: "template";
|
|
@@ -964,6 +1031,7 @@ export type TemplateBlockObjectResponse = {
|
|
|
964
1031
|
last_edited_by: PartialUserObjectResponse;
|
|
965
1032
|
has_children: boolean;
|
|
966
1033
|
archived: boolean;
|
|
1034
|
+
in_trash: boolean;
|
|
967
1035
|
};
|
|
968
1036
|
export type SyncedBlockBlockObjectResponse = {
|
|
969
1037
|
type: "synced_block";
|
|
@@ -994,6 +1062,7 @@ export type SyncedBlockBlockObjectResponse = {
|
|
|
994
1062
|
last_edited_by: PartialUserObjectResponse;
|
|
995
1063
|
has_children: boolean;
|
|
996
1064
|
archived: boolean;
|
|
1065
|
+
in_trash: boolean;
|
|
997
1066
|
};
|
|
998
1067
|
export type ChildPageBlockObjectResponse = {
|
|
999
1068
|
type: "child_page";
|
|
@@ -1021,6 +1090,7 @@ export type ChildPageBlockObjectResponse = {
|
|
|
1021
1090
|
last_edited_by: PartialUserObjectResponse;
|
|
1022
1091
|
has_children: boolean;
|
|
1023
1092
|
archived: boolean;
|
|
1093
|
+
in_trash: boolean;
|
|
1024
1094
|
};
|
|
1025
1095
|
export type ChildDatabaseBlockObjectResponse = {
|
|
1026
1096
|
type: "child_database";
|
|
@@ -1048,6 +1118,7 @@ export type ChildDatabaseBlockObjectResponse = {
|
|
|
1048
1118
|
last_edited_by: PartialUserObjectResponse;
|
|
1049
1119
|
has_children: boolean;
|
|
1050
1120
|
archived: boolean;
|
|
1121
|
+
in_trash: boolean;
|
|
1051
1122
|
};
|
|
1052
1123
|
export type EquationBlockObjectResponse = {
|
|
1053
1124
|
type: "equation";
|
|
@@ -1075,8 +1146,9 @@ export type EquationBlockObjectResponse = {
|
|
|
1075
1146
|
last_edited_by: PartialUserObjectResponse;
|
|
1076
1147
|
has_children: boolean;
|
|
1077
1148
|
archived: boolean;
|
|
1149
|
+
in_trash: boolean;
|
|
1078
1150
|
};
|
|
1079
|
-
type LanguageRequest = "abap" | "agda" | "arduino" | "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" | "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" | "solidity" | "sql" | "swift" | "toml" | "typescript" | "vb.net" | "verilog" | "vhdl" | "visual basic" | "webassembly" | "xml" | "yaml" | "java/c/c++/c#";
|
|
1151
|
+
type LanguageRequest = "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#";
|
|
1080
1152
|
export type CodeBlockObjectResponse = {
|
|
1081
1153
|
type: "code";
|
|
1082
1154
|
code: {
|
|
@@ -1105,6 +1177,7 @@ export type CodeBlockObjectResponse = {
|
|
|
1105
1177
|
last_edited_by: PartialUserObjectResponse;
|
|
1106
1178
|
has_children: boolean;
|
|
1107
1179
|
archived: boolean;
|
|
1180
|
+
in_trash: boolean;
|
|
1108
1181
|
};
|
|
1109
1182
|
export type CalloutBlockObjectResponse = {
|
|
1110
1183
|
type: "callout";
|
|
@@ -1125,6 +1198,9 @@ export type CalloutBlockObjectResponse = {
|
|
|
1125
1198
|
url: string;
|
|
1126
1199
|
expiry_time: string;
|
|
1127
1200
|
};
|
|
1201
|
+
} | null | {
|
|
1202
|
+
type: "custom_emoji";
|
|
1203
|
+
custom_emoji: CustomEmojiResponse;
|
|
1128
1204
|
} | null;
|
|
1129
1205
|
};
|
|
1130
1206
|
parent: {
|
|
@@ -1148,6 +1224,7 @@ export type CalloutBlockObjectResponse = {
|
|
|
1148
1224
|
last_edited_by: PartialUserObjectResponse;
|
|
1149
1225
|
has_children: boolean;
|
|
1150
1226
|
archived: boolean;
|
|
1227
|
+
in_trash: boolean;
|
|
1151
1228
|
};
|
|
1152
1229
|
export type DividerBlockObjectResponse = {
|
|
1153
1230
|
type: "divider";
|
|
@@ -1173,6 +1250,7 @@ export type DividerBlockObjectResponse = {
|
|
|
1173
1250
|
last_edited_by: PartialUserObjectResponse;
|
|
1174
1251
|
has_children: boolean;
|
|
1175
1252
|
archived: boolean;
|
|
1253
|
+
in_trash: boolean;
|
|
1176
1254
|
};
|
|
1177
1255
|
export type BreadcrumbBlockObjectResponse = {
|
|
1178
1256
|
type: "breadcrumb";
|
|
@@ -1198,6 +1276,7 @@ export type BreadcrumbBlockObjectResponse = {
|
|
|
1198
1276
|
last_edited_by: PartialUserObjectResponse;
|
|
1199
1277
|
has_children: boolean;
|
|
1200
1278
|
archived: boolean;
|
|
1279
|
+
in_trash: boolean;
|
|
1201
1280
|
};
|
|
1202
1281
|
export type TableOfContentsBlockObjectResponse = {
|
|
1203
1282
|
type: "table_of_contents";
|
|
@@ -1225,6 +1304,7 @@ export type TableOfContentsBlockObjectResponse = {
|
|
|
1225
1304
|
last_edited_by: PartialUserObjectResponse;
|
|
1226
1305
|
has_children: boolean;
|
|
1227
1306
|
archived: boolean;
|
|
1307
|
+
in_trash: boolean;
|
|
1228
1308
|
};
|
|
1229
1309
|
export type ColumnListBlockObjectResponse = {
|
|
1230
1310
|
type: "column_list";
|
|
@@ -1250,6 +1330,7 @@ export type ColumnListBlockObjectResponse = {
|
|
|
1250
1330
|
last_edited_by: PartialUserObjectResponse;
|
|
1251
1331
|
has_children: boolean;
|
|
1252
1332
|
archived: boolean;
|
|
1333
|
+
in_trash: boolean;
|
|
1253
1334
|
};
|
|
1254
1335
|
export type ColumnBlockObjectResponse = {
|
|
1255
1336
|
type: "column";
|
|
@@ -1275,6 +1356,7 @@ export type ColumnBlockObjectResponse = {
|
|
|
1275
1356
|
last_edited_by: PartialUserObjectResponse;
|
|
1276
1357
|
has_children: boolean;
|
|
1277
1358
|
archived: boolean;
|
|
1359
|
+
in_trash: boolean;
|
|
1278
1360
|
};
|
|
1279
1361
|
export type LinkToPageBlockObjectResponse = {
|
|
1280
1362
|
type: "link_to_page";
|
|
@@ -1309,6 +1391,7 @@ export type LinkToPageBlockObjectResponse = {
|
|
|
1309
1391
|
last_edited_by: PartialUserObjectResponse;
|
|
1310
1392
|
has_children: boolean;
|
|
1311
1393
|
archived: boolean;
|
|
1394
|
+
in_trash: boolean;
|
|
1312
1395
|
};
|
|
1313
1396
|
export type TableBlockObjectResponse = {
|
|
1314
1397
|
type: "table";
|
|
@@ -1338,6 +1421,7 @@ export type TableBlockObjectResponse = {
|
|
|
1338
1421
|
last_edited_by: PartialUserObjectResponse;
|
|
1339
1422
|
has_children: boolean;
|
|
1340
1423
|
archived: boolean;
|
|
1424
|
+
in_trash: boolean;
|
|
1341
1425
|
};
|
|
1342
1426
|
export type TableRowBlockObjectResponse = {
|
|
1343
1427
|
type: "table_row";
|
|
@@ -1365,6 +1449,7 @@ export type TableRowBlockObjectResponse = {
|
|
|
1365
1449
|
last_edited_by: PartialUserObjectResponse;
|
|
1366
1450
|
has_children: boolean;
|
|
1367
1451
|
archived: boolean;
|
|
1452
|
+
in_trash: boolean;
|
|
1368
1453
|
};
|
|
1369
1454
|
export type EmbedBlockObjectResponse = {
|
|
1370
1455
|
type: "embed";
|
|
@@ -1393,6 +1478,7 @@ export type EmbedBlockObjectResponse = {
|
|
|
1393
1478
|
last_edited_by: PartialUserObjectResponse;
|
|
1394
1479
|
has_children: boolean;
|
|
1395
1480
|
archived: boolean;
|
|
1481
|
+
in_trash: boolean;
|
|
1396
1482
|
};
|
|
1397
1483
|
export type BookmarkBlockObjectResponse = {
|
|
1398
1484
|
type: "bookmark";
|
|
@@ -1421,6 +1507,7 @@ export type BookmarkBlockObjectResponse = {
|
|
|
1421
1507
|
last_edited_by: PartialUserObjectResponse;
|
|
1422
1508
|
has_children: boolean;
|
|
1423
1509
|
archived: boolean;
|
|
1510
|
+
in_trash: boolean;
|
|
1424
1511
|
};
|
|
1425
1512
|
export type ImageBlockObjectResponse = {
|
|
1426
1513
|
type: "image";
|
|
@@ -1459,6 +1546,7 @@ export type ImageBlockObjectResponse = {
|
|
|
1459
1546
|
last_edited_by: PartialUserObjectResponse;
|
|
1460
1547
|
has_children: boolean;
|
|
1461
1548
|
archived: boolean;
|
|
1549
|
+
in_trash: boolean;
|
|
1462
1550
|
};
|
|
1463
1551
|
export type VideoBlockObjectResponse = {
|
|
1464
1552
|
type: "video";
|
|
@@ -1497,6 +1585,7 @@ export type VideoBlockObjectResponse = {
|
|
|
1497
1585
|
last_edited_by: PartialUserObjectResponse;
|
|
1498
1586
|
has_children: boolean;
|
|
1499
1587
|
archived: boolean;
|
|
1588
|
+
in_trash: boolean;
|
|
1500
1589
|
};
|
|
1501
1590
|
export type PdfBlockObjectResponse = {
|
|
1502
1591
|
type: "pdf";
|
|
@@ -1535,6 +1624,7 @@ export type PdfBlockObjectResponse = {
|
|
|
1535
1624
|
last_edited_by: PartialUserObjectResponse;
|
|
1536
1625
|
has_children: boolean;
|
|
1537
1626
|
archived: boolean;
|
|
1627
|
+
in_trash: boolean;
|
|
1538
1628
|
};
|
|
1539
1629
|
export type FileBlockObjectResponse = {
|
|
1540
1630
|
type: "file";
|
|
@@ -1575,6 +1665,7 @@ export type FileBlockObjectResponse = {
|
|
|
1575
1665
|
last_edited_by: PartialUserObjectResponse;
|
|
1576
1666
|
has_children: boolean;
|
|
1577
1667
|
archived: boolean;
|
|
1668
|
+
in_trash: boolean;
|
|
1578
1669
|
};
|
|
1579
1670
|
export type AudioBlockObjectResponse = {
|
|
1580
1671
|
type: "audio";
|
|
@@ -1613,6 +1704,7 @@ export type AudioBlockObjectResponse = {
|
|
|
1613
1704
|
last_edited_by: PartialUserObjectResponse;
|
|
1614
1705
|
has_children: boolean;
|
|
1615
1706
|
archived: boolean;
|
|
1707
|
+
in_trash: boolean;
|
|
1616
1708
|
};
|
|
1617
1709
|
export type LinkPreviewBlockObjectResponse = {
|
|
1618
1710
|
type: "link_preview";
|
|
@@ -1640,6 +1732,7 @@ export type LinkPreviewBlockObjectResponse = {
|
|
|
1640
1732
|
last_edited_by: PartialUserObjectResponse;
|
|
1641
1733
|
has_children: boolean;
|
|
1642
1734
|
archived: boolean;
|
|
1735
|
+
in_trash: boolean;
|
|
1643
1736
|
};
|
|
1644
1737
|
export type UnsupportedBlockObjectResponse = {
|
|
1645
1738
|
type: "unsupported";
|
|
@@ -1665,6 +1758,7 @@ export type UnsupportedBlockObjectResponse = {
|
|
|
1665
1758
|
last_edited_by: PartialUserObjectResponse;
|
|
1666
1759
|
has_children: boolean;
|
|
1667
1760
|
archived: boolean;
|
|
1761
|
+
in_trash: boolean;
|
|
1668
1762
|
};
|
|
1669
1763
|
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 | EmbedBlockObjectResponse | BookmarkBlockObjectResponse | ImageBlockObjectResponse | VideoBlockObjectResponse | PdfBlockObjectResponse | FileBlockObjectResponse | AudioBlockObjectResponse | LinkPreviewBlockObjectResponse | UnsupportedBlockObjectResponse;
|
|
1670
1764
|
export type NumberPropertyItemObjectResponse = {
|
|
@@ -1681,19 +1775,19 @@ export type UrlPropertyItemObjectResponse = {
|
|
|
1681
1775
|
};
|
|
1682
1776
|
export type SelectPropertyItemObjectResponse = {
|
|
1683
1777
|
type: "select";
|
|
1684
|
-
select:
|
|
1778
|
+
select: PartialSelectResponse | null;
|
|
1685
1779
|
object: "property_item";
|
|
1686
1780
|
id: string;
|
|
1687
1781
|
};
|
|
1688
1782
|
export type MultiSelectPropertyItemObjectResponse = {
|
|
1689
1783
|
type: "multi_select";
|
|
1690
|
-
multi_select: Array<
|
|
1784
|
+
multi_select: Array<PartialSelectResponse>;
|
|
1691
1785
|
object: "property_item";
|
|
1692
1786
|
id: string;
|
|
1693
1787
|
};
|
|
1694
1788
|
export type StatusPropertyItemObjectResponse = {
|
|
1695
1789
|
type: "status";
|
|
1696
|
-
status:
|
|
1790
|
+
status: PartialSelectResponse | null;
|
|
1697
1791
|
object: "property_item";
|
|
1698
1792
|
id: string;
|
|
1699
1793
|
};
|
|
@@ -1770,6 +1864,12 @@ export type FormulaPropertyItemObjectResponse = {
|
|
|
1770
1864
|
object: "property_item";
|
|
1771
1865
|
id: string;
|
|
1772
1866
|
};
|
|
1867
|
+
export type ButtonPropertyItemObjectResponse = {
|
|
1868
|
+
type: "button";
|
|
1869
|
+
button: Record<string, never>;
|
|
1870
|
+
object: "property_item";
|
|
1871
|
+
id: string;
|
|
1872
|
+
};
|
|
1773
1873
|
export type UniqueIdPropertyItemObjectResponse = {
|
|
1774
1874
|
type: "unique_id";
|
|
1775
1875
|
unique_id: {
|
|
@@ -1837,7 +1937,7 @@ export type RollupPropertyItemObjectResponse = {
|
|
|
1837
1937
|
object: "property_item";
|
|
1838
1938
|
id: string;
|
|
1839
1939
|
};
|
|
1840
|
-
export type PropertyItemObjectResponse = NumberPropertyItemObjectResponse | UrlPropertyItemObjectResponse | SelectPropertyItemObjectResponse | MultiSelectPropertyItemObjectResponse | StatusPropertyItemObjectResponse | DatePropertyItemObjectResponse | EmailPropertyItemObjectResponse | PhoneNumberPropertyItemObjectResponse | CheckboxPropertyItemObjectResponse | FilesPropertyItemObjectResponse | CreatedByPropertyItemObjectResponse | CreatedTimePropertyItemObjectResponse | LastEditedByPropertyItemObjectResponse | LastEditedTimePropertyItemObjectResponse | FormulaPropertyItemObjectResponse | UniqueIdPropertyItemObjectResponse | VerificationPropertyItemObjectResponse | TitlePropertyItemObjectResponse | RichTextPropertyItemObjectResponse | PeoplePropertyItemObjectResponse | RelationPropertyItemObjectResponse | RollupPropertyItemObjectResponse;
|
|
1940
|
+
export type PropertyItemObjectResponse = NumberPropertyItemObjectResponse | UrlPropertyItemObjectResponse | SelectPropertyItemObjectResponse | MultiSelectPropertyItemObjectResponse | StatusPropertyItemObjectResponse | DatePropertyItemObjectResponse | EmailPropertyItemObjectResponse | PhoneNumberPropertyItemObjectResponse | CheckboxPropertyItemObjectResponse | FilesPropertyItemObjectResponse | CreatedByPropertyItemObjectResponse | CreatedTimePropertyItemObjectResponse | LastEditedByPropertyItemObjectResponse | LastEditedTimePropertyItemObjectResponse | FormulaPropertyItemObjectResponse | ButtonPropertyItemObjectResponse | UniqueIdPropertyItemObjectResponse | VerificationPropertyItemObjectResponse | TitlePropertyItemObjectResponse | RichTextPropertyItemObjectResponse | PeoplePropertyItemObjectResponse | RelationPropertyItemObjectResponse | RollupPropertyItemObjectResponse;
|
|
1841
1941
|
export type CommentObjectResponse = {
|
|
1842
1942
|
object: "comment";
|
|
1843
1943
|
id: string;
|
|
@@ -1938,7 +2038,7 @@ type RichTextItemRequest = {
|
|
|
1938
2038
|
strikethrough?: boolean;
|
|
1939
2039
|
underline?: boolean;
|
|
1940
2040
|
code?: boolean;
|
|
1941
|
-
color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | "gray_background" | "brown_background" | "orange_background" | "yellow_background" | "green_background" | "blue_background" | "purple_background" | "pink_background" | "red_background";
|
|
2041
|
+
color?: "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";
|
|
1942
2042
|
};
|
|
1943
2043
|
} | {
|
|
1944
2044
|
mention: {
|
|
@@ -1991,6 +2091,12 @@ type RichTextItemRequest = {
|
|
|
1991
2091
|
};
|
|
1992
2092
|
} | {
|
|
1993
2093
|
template_mention: TemplateMentionRequest;
|
|
2094
|
+
} | {
|
|
2095
|
+
custom_emoji: {
|
|
2096
|
+
id: IdRequest;
|
|
2097
|
+
name?: string;
|
|
2098
|
+
url?: string;
|
|
2099
|
+
};
|
|
1994
2100
|
};
|
|
1995
2101
|
type?: "mention";
|
|
1996
2102
|
annotations?: {
|
|
@@ -1999,7 +2105,7 @@ type RichTextItemRequest = {
|
|
|
1999
2105
|
strikethrough?: boolean;
|
|
2000
2106
|
underline?: boolean;
|
|
2001
2107
|
code?: boolean;
|
|
2002
|
-
color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | "gray_background" | "brown_background" | "orange_background" | "yellow_background" | "green_background" | "blue_background" | "purple_background" | "pink_background" | "red_background";
|
|
2108
|
+
color?: "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";
|
|
2003
2109
|
};
|
|
2004
2110
|
} | {
|
|
2005
2111
|
equation: {
|
|
@@ -2012,7 +2118,7 @@ type RichTextItemRequest = {
|
|
|
2012
2118
|
strikethrough?: boolean;
|
|
2013
2119
|
underline?: boolean;
|
|
2014
2120
|
code?: boolean;
|
|
2015
|
-
color?: "default" | "gray" | "brown" | "orange" | "yellow" | "green" | "blue" | "purple" | "pink" | "red" | "gray_background" | "brown_background" | "orange_background" | "yellow_background" | "green_background" | "blue_background" | "purple_background" | "pink_background" | "red_background";
|
|
2121
|
+
color?: "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";
|
|
2016
2122
|
};
|
|
2017
2123
|
};
|
|
2018
2124
|
export type BlockObjectRequestWithoutChildren = {
|
|
@@ -2211,6 +2317,13 @@ export type BlockObjectRequestWithoutChildren = {
|
|
|
2211
2317
|
url: TextRequest;
|
|
2212
2318
|
};
|
|
2213
2319
|
type?: "external";
|
|
2320
|
+
} | {
|
|
2321
|
+
custom_emoji: {
|
|
2322
|
+
id: IdRequest;
|
|
2323
|
+
name?: string;
|
|
2324
|
+
url?: string;
|
|
2325
|
+
};
|
|
2326
|
+
type?: "custom_emoji";
|
|
2214
2327
|
};
|
|
2215
2328
|
color?: ApiColor;
|
|
2216
2329
|
};
|
|
@@ -2580,6 +2693,13 @@ export type BlockObjectRequest = {
|
|
|
2580
2693
|
url: TextRequest;
|
|
2581
2694
|
};
|
|
2582
2695
|
type?: "external";
|
|
2696
|
+
} | {
|
|
2697
|
+
custom_emoji: {
|
|
2698
|
+
id: IdRequest;
|
|
2699
|
+
name?: string;
|
|
2700
|
+
url?: string;
|
|
2701
|
+
};
|
|
2702
|
+
type?: "custom_emoji";
|
|
2583
2703
|
};
|
|
2584
2704
|
};
|
|
2585
2705
|
type?: "callout";
|
|
@@ -2827,6 +2947,13 @@ export type BlockObjectRequest = {
|
|
|
2827
2947
|
url: TextRequest;
|
|
2828
2948
|
};
|
|
2829
2949
|
type?: "external";
|
|
2950
|
+
} | {
|
|
2951
|
+
custom_emoji: {
|
|
2952
|
+
id: IdRequest;
|
|
2953
|
+
name?: string;
|
|
2954
|
+
url?: string;
|
|
2955
|
+
};
|
|
2956
|
+
type?: "custom_emoji";
|
|
2830
2957
|
};
|
|
2831
2958
|
};
|
|
2832
2959
|
type?: "callout";
|
|
@@ -3073,6 +3200,13 @@ export type BlockObjectRequest = {
|
|
|
3073
3200
|
url: TextRequest;
|
|
3074
3201
|
};
|
|
3075
3202
|
type?: "external";
|
|
3203
|
+
} | {
|
|
3204
|
+
custom_emoji: {
|
|
3205
|
+
id: IdRequest;
|
|
3206
|
+
name?: string;
|
|
3207
|
+
url?: string;
|
|
3208
|
+
};
|
|
3209
|
+
type?: "custom_emoji";
|
|
3076
3210
|
};
|
|
3077
3211
|
};
|
|
3078
3212
|
type?: "callout";
|
|
@@ -3319,6 +3453,13 @@ export type BlockObjectRequest = {
|
|
|
3319
3453
|
url: TextRequest;
|
|
3320
3454
|
};
|
|
3321
3455
|
type?: "external";
|
|
3456
|
+
} | {
|
|
3457
|
+
custom_emoji: {
|
|
3458
|
+
id: IdRequest;
|
|
3459
|
+
name?: string;
|
|
3460
|
+
url?: string;
|
|
3461
|
+
};
|
|
3462
|
+
type?: "custom_emoji";
|
|
3322
3463
|
};
|
|
3323
3464
|
};
|
|
3324
3465
|
type?: "callout";
|
|
@@ -3565,6 +3706,13 @@ export type BlockObjectRequest = {
|
|
|
3565
3706
|
url: TextRequest;
|
|
3566
3707
|
};
|
|
3567
3708
|
type?: "external";
|
|
3709
|
+
} | {
|
|
3710
|
+
custom_emoji: {
|
|
3711
|
+
id: IdRequest;
|
|
3712
|
+
name?: string;
|
|
3713
|
+
url?: string;
|
|
3714
|
+
};
|
|
3715
|
+
type?: "custom_emoji";
|
|
3568
3716
|
};
|
|
3569
3717
|
};
|
|
3570
3718
|
type?: "callout";
|
|
@@ -3810,6 +3958,13 @@ export type BlockObjectRequest = {
|
|
|
3810
3958
|
url: TextRequest;
|
|
3811
3959
|
};
|
|
3812
3960
|
type?: "external";
|
|
3961
|
+
} | {
|
|
3962
|
+
custom_emoji: {
|
|
3963
|
+
id: IdRequest;
|
|
3964
|
+
name?: string;
|
|
3965
|
+
url?: string;
|
|
3966
|
+
};
|
|
3967
|
+
type?: "custom_emoji";
|
|
3813
3968
|
};
|
|
3814
3969
|
};
|
|
3815
3970
|
type?: "callout";
|
|
@@ -4055,6 +4210,13 @@ export type BlockObjectRequest = {
|
|
|
4055
4210
|
url: TextRequest;
|
|
4056
4211
|
};
|
|
4057
4212
|
type?: "external";
|
|
4213
|
+
} | {
|
|
4214
|
+
custom_emoji: {
|
|
4215
|
+
id: IdRequest;
|
|
4216
|
+
name?: string;
|
|
4217
|
+
url?: string;
|
|
4218
|
+
};
|
|
4219
|
+
type?: "custom_emoji";
|
|
4058
4220
|
};
|
|
4059
4221
|
};
|
|
4060
4222
|
type?: "callout";
|
|
@@ -4300,6 +4462,13 @@ export type BlockObjectRequest = {
|
|
|
4300
4462
|
url: TextRequest;
|
|
4301
4463
|
};
|
|
4302
4464
|
type?: "external";
|
|
4465
|
+
} | {
|
|
4466
|
+
custom_emoji: {
|
|
4467
|
+
id: IdRequest;
|
|
4468
|
+
name?: string;
|
|
4469
|
+
url?: string;
|
|
4470
|
+
};
|
|
4471
|
+
type?: "custom_emoji";
|
|
4303
4472
|
};
|
|
4304
4473
|
};
|
|
4305
4474
|
type?: "callout";
|
|
@@ -4545,6 +4714,13 @@ export type BlockObjectRequest = {
|
|
|
4545
4714
|
url: TextRequest;
|
|
4546
4715
|
};
|
|
4547
4716
|
type?: "external";
|
|
4717
|
+
} | {
|
|
4718
|
+
custom_emoji: {
|
|
4719
|
+
id: IdRequest;
|
|
4720
|
+
name?: string;
|
|
4721
|
+
url?: string;
|
|
4722
|
+
};
|
|
4723
|
+
type?: "custom_emoji";
|
|
4548
4724
|
};
|
|
4549
4725
|
};
|
|
4550
4726
|
type?: "callout";
|
|
@@ -4790,6 +4966,13 @@ export type BlockObjectRequest = {
|
|
|
4790
4966
|
url: TextRequest;
|
|
4791
4967
|
};
|
|
4792
4968
|
type?: "external";
|
|
4969
|
+
} | {
|
|
4970
|
+
custom_emoji: {
|
|
4971
|
+
id: IdRequest;
|
|
4972
|
+
name?: string;
|
|
4973
|
+
url?: string;
|
|
4974
|
+
};
|
|
4975
|
+
type?: "custom_emoji";
|
|
4793
4976
|
};
|
|
4794
4977
|
};
|
|
4795
4978
|
type?: "callout";
|
|
@@ -5036,6 +5219,13 @@ export type BlockObjectRequest = {
|
|
|
5036
5219
|
url: TextRequest;
|
|
5037
5220
|
};
|
|
5038
5221
|
type?: "external";
|
|
5222
|
+
} | {
|
|
5223
|
+
custom_emoji: {
|
|
5224
|
+
id: IdRequest;
|
|
5225
|
+
name?: string;
|
|
5226
|
+
url?: string;
|
|
5227
|
+
};
|
|
5228
|
+
type?: "custom_emoji";
|
|
5039
5229
|
};
|
|
5040
5230
|
};
|
|
5041
5231
|
type?: "callout";
|
|
@@ -5280,6 +5470,13 @@ export type BlockObjectRequest = {
|
|
|
5280
5470
|
url: TextRequest;
|
|
5281
5471
|
};
|
|
5282
5472
|
type?: "external";
|
|
5473
|
+
} | {
|
|
5474
|
+
custom_emoji: {
|
|
5475
|
+
id: IdRequest;
|
|
5476
|
+
name?: string;
|
|
5477
|
+
url?: string;
|
|
5478
|
+
};
|
|
5479
|
+
type?: "custom_emoji";
|
|
5283
5480
|
};
|
|
5284
5481
|
};
|
|
5285
5482
|
type?: "callout";
|
|
@@ -5525,6 +5722,13 @@ export type BlockObjectRequest = {
|
|
|
5525
5722
|
url: TextRequest;
|
|
5526
5723
|
};
|
|
5527
5724
|
type?: "external";
|
|
5725
|
+
} | {
|
|
5726
|
+
custom_emoji: {
|
|
5727
|
+
id: IdRequest;
|
|
5728
|
+
name?: string;
|
|
5729
|
+
url?: string;
|
|
5730
|
+
};
|
|
5731
|
+
type?: "custom_emoji";
|
|
5528
5732
|
};
|
|
5529
5733
|
};
|
|
5530
5734
|
type?: "callout";
|
|
@@ -5548,6 +5752,13 @@ export type BlockObjectRequest = {
|
|
|
5548
5752
|
url: TextRequest;
|
|
5549
5753
|
};
|
|
5550
5754
|
type?: "external";
|
|
5755
|
+
} | {
|
|
5756
|
+
custom_emoji: {
|
|
5757
|
+
id: IdRequest;
|
|
5758
|
+
name?: string;
|
|
5759
|
+
url?: string;
|
|
5760
|
+
};
|
|
5761
|
+
type?: "custom_emoji";
|
|
5551
5762
|
};
|
|
5552
5763
|
};
|
|
5553
5764
|
type?: "callout";
|
|
@@ -5781,6 +5992,13 @@ export type BlockObjectRequest = {
|
|
|
5781
5992
|
url: TextRequest;
|
|
5782
5993
|
};
|
|
5783
5994
|
type?: "external";
|
|
5995
|
+
} | {
|
|
5996
|
+
custom_emoji: {
|
|
5997
|
+
id: IdRequest;
|
|
5998
|
+
name?: string;
|
|
5999
|
+
url?: string;
|
|
6000
|
+
};
|
|
6001
|
+
type?: "custom_emoji";
|
|
5784
6002
|
};
|
|
5785
6003
|
};
|
|
5786
6004
|
type?: "callout";
|
|
@@ -6088,10 +6306,12 @@ type CreatePageBodyParameters = {
|
|
|
6088
6306
|
id: StringRequest;
|
|
6089
6307
|
name?: StringRequest;
|
|
6090
6308
|
color?: SelectColor;
|
|
6309
|
+
description?: StringRequest | null;
|
|
6091
6310
|
} | null | {
|
|
6092
6311
|
name: StringRequest;
|
|
6093
6312
|
id?: StringRequest;
|
|
6094
6313
|
color?: SelectColor;
|
|
6314
|
+
description?: StringRequest | null;
|
|
6095
6315
|
} | null;
|
|
6096
6316
|
type?: "select";
|
|
6097
6317
|
} | {
|
|
@@ -6099,10 +6319,12 @@ type CreatePageBodyParameters = {
|
|
|
6099
6319
|
id: StringRequest;
|
|
6100
6320
|
name?: StringRequest;
|
|
6101
6321
|
color?: SelectColor;
|
|
6322
|
+
description?: StringRequest | null;
|
|
6102
6323
|
} | {
|
|
6103
6324
|
name: StringRequest;
|
|
6104
6325
|
id?: StringRequest;
|
|
6105
6326
|
color?: SelectColor;
|
|
6327
|
+
description?: StringRequest | null;
|
|
6106
6328
|
}>;
|
|
6107
6329
|
type?: "multi_select";
|
|
6108
6330
|
} | {
|
|
@@ -6182,28 +6404,34 @@ type CreatePageBodyParameters = {
|
|
|
6182
6404
|
id: StringRequest;
|
|
6183
6405
|
name?: StringRequest;
|
|
6184
6406
|
color?: SelectColor;
|
|
6407
|
+
description?: StringRequest | null;
|
|
6185
6408
|
} | null | {
|
|
6186
6409
|
name: StringRequest;
|
|
6187
6410
|
id?: StringRequest;
|
|
6188
6411
|
color?: SelectColor;
|
|
6412
|
+
description?: StringRequest | null;
|
|
6189
6413
|
} | null;
|
|
6190
6414
|
type?: "status";
|
|
6191
6415
|
}> | Record<string, Array<RichTextItemRequest> | Array<RichTextItemRequest> | number | null | TextRequest | null | {
|
|
6192
6416
|
id: StringRequest;
|
|
6193
6417
|
name?: StringRequest;
|
|
6194
6418
|
color?: SelectColor;
|
|
6419
|
+
description?: StringRequest | null;
|
|
6195
6420
|
} | null | {
|
|
6196
6421
|
name: StringRequest;
|
|
6197
6422
|
id?: StringRequest;
|
|
6198
6423
|
color?: SelectColor;
|
|
6424
|
+
description?: StringRequest | null;
|
|
6199
6425
|
} | null | Array<{
|
|
6200
6426
|
id: StringRequest;
|
|
6201
6427
|
name?: StringRequest;
|
|
6202
6428
|
color?: SelectColor;
|
|
6429
|
+
description?: StringRequest | null;
|
|
6203
6430
|
} | {
|
|
6204
6431
|
name: StringRequest;
|
|
6205
6432
|
id?: StringRequest;
|
|
6206
6433
|
color?: SelectColor;
|
|
6434
|
+
description?: StringRequest | null;
|
|
6207
6435
|
}> | Array<{
|
|
6208
6436
|
id: IdRequest;
|
|
6209
6437
|
} | {
|
|
@@ -6259,10 +6487,12 @@ type CreatePageBodyParameters = {
|
|
|
6259
6487
|
id: StringRequest;
|
|
6260
6488
|
name?: StringRequest;
|
|
6261
6489
|
color?: SelectColor;
|
|
6490
|
+
description?: StringRequest | null;
|
|
6262
6491
|
} | null | {
|
|
6263
6492
|
name: StringRequest;
|
|
6264
6493
|
id?: StringRequest;
|
|
6265
6494
|
color?: SelectColor;
|
|
6495
|
+
description?: StringRequest | null;
|
|
6266
6496
|
} | null>;
|
|
6267
6497
|
icon?: {
|
|
6268
6498
|
emoji: EmojiRequest;
|
|
@@ -6272,6 +6502,13 @@ type CreatePageBodyParameters = {
|
|
|
6272
6502
|
url: TextRequest;
|
|
6273
6503
|
};
|
|
6274
6504
|
type?: "external";
|
|
6505
|
+
} | null | {
|
|
6506
|
+
custom_emoji: {
|
|
6507
|
+
id: IdRequest;
|
|
6508
|
+
name?: string;
|
|
6509
|
+
url?: string;
|
|
6510
|
+
};
|
|
6511
|
+
type?: "custom_emoji";
|
|
6275
6512
|
} | null;
|
|
6276
6513
|
cover?: {
|
|
6277
6514
|
external: {
|
|
@@ -6327,10 +6564,12 @@ type UpdatePageBodyParameters = {
|
|
|
6327
6564
|
id: StringRequest;
|
|
6328
6565
|
name?: StringRequest;
|
|
6329
6566
|
color?: SelectColor;
|
|
6567
|
+
description?: StringRequest | null;
|
|
6330
6568
|
} | null | {
|
|
6331
6569
|
name: StringRequest;
|
|
6332
6570
|
id?: StringRequest;
|
|
6333
6571
|
color?: SelectColor;
|
|
6572
|
+
description?: StringRequest | null;
|
|
6334
6573
|
} | null;
|
|
6335
6574
|
type?: "select";
|
|
6336
6575
|
} | {
|
|
@@ -6338,10 +6577,12 @@ type UpdatePageBodyParameters = {
|
|
|
6338
6577
|
id: StringRequest;
|
|
6339
6578
|
name?: StringRequest;
|
|
6340
6579
|
color?: SelectColor;
|
|
6580
|
+
description?: StringRequest | null;
|
|
6341
6581
|
} | {
|
|
6342
6582
|
name: StringRequest;
|
|
6343
6583
|
id?: StringRequest;
|
|
6344
6584
|
color?: SelectColor;
|
|
6585
|
+
description?: StringRequest | null;
|
|
6345
6586
|
}>;
|
|
6346
6587
|
type?: "multi_select";
|
|
6347
6588
|
} | {
|
|
@@ -6421,28 +6662,34 @@ type UpdatePageBodyParameters = {
|
|
|
6421
6662
|
id: StringRequest;
|
|
6422
6663
|
name?: StringRequest;
|
|
6423
6664
|
color?: SelectColor;
|
|
6665
|
+
description?: StringRequest | null;
|
|
6424
6666
|
} | null | {
|
|
6425
6667
|
name: StringRequest;
|
|
6426
6668
|
id?: StringRequest;
|
|
6427
6669
|
color?: SelectColor;
|
|
6670
|
+
description?: StringRequest | null;
|
|
6428
6671
|
} | null;
|
|
6429
6672
|
type?: "status";
|
|
6430
6673
|
}> | Record<string, Array<RichTextItemRequest> | Array<RichTextItemRequest> | number | null | TextRequest | null | {
|
|
6431
6674
|
id: StringRequest;
|
|
6432
6675
|
name?: StringRequest;
|
|
6433
6676
|
color?: SelectColor;
|
|
6677
|
+
description?: StringRequest | null;
|
|
6434
6678
|
} | null | {
|
|
6435
6679
|
name: StringRequest;
|
|
6436
6680
|
id?: StringRequest;
|
|
6437
6681
|
color?: SelectColor;
|
|
6682
|
+
description?: StringRequest | null;
|
|
6438
6683
|
} | null | Array<{
|
|
6439
6684
|
id: StringRequest;
|
|
6440
6685
|
name?: StringRequest;
|
|
6441
6686
|
color?: SelectColor;
|
|
6687
|
+
description?: StringRequest | null;
|
|
6442
6688
|
} | {
|
|
6443
6689
|
name: StringRequest;
|
|
6444
6690
|
id?: StringRequest;
|
|
6445
6691
|
color?: SelectColor;
|
|
6692
|
+
description?: StringRequest | null;
|
|
6446
6693
|
}> | Array<{
|
|
6447
6694
|
id: IdRequest;
|
|
6448
6695
|
} | {
|
|
@@ -6498,10 +6745,12 @@ type UpdatePageBodyParameters = {
|
|
|
6498
6745
|
id: StringRequest;
|
|
6499
6746
|
name?: StringRequest;
|
|
6500
6747
|
color?: SelectColor;
|
|
6748
|
+
description?: StringRequest | null;
|
|
6501
6749
|
} | null | {
|
|
6502
6750
|
name: StringRequest;
|
|
6503
6751
|
id?: StringRequest;
|
|
6504
6752
|
color?: SelectColor;
|
|
6753
|
+
description?: StringRequest | null;
|
|
6505
6754
|
} | null>;
|
|
6506
6755
|
icon?: {
|
|
6507
6756
|
emoji: EmojiRequest;
|
|
@@ -6511,6 +6760,13 @@ type UpdatePageBodyParameters = {
|
|
|
6511
6760
|
url: TextRequest;
|
|
6512
6761
|
};
|
|
6513
6762
|
type?: "external";
|
|
6763
|
+
} | null | {
|
|
6764
|
+
custom_emoji: {
|
|
6765
|
+
id: IdRequest;
|
|
6766
|
+
name?: string;
|
|
6767
|
+
url?: string;
|
|
6768
|
+
};
|
|
6769
|
+
type?: "custom_emoji";
|
|
6514
6770
|
} | null;
|
|
6515
6771
|
cover?: {
|
|
6516
6772
|
external: {
|
|
@@ -6519,6 +6775,7 @@ type UpdatePageBodyParameters = {
|
|
|
6519
6775
|
type?: "external";
|
|
6520
6776
|
} | null;
|
|
6521
6777
|
archived?: boolean;
|
|
6778
|
+
in_trash?: boolean;
|
|
6522
6779
|
};
|
|
6523
6780
|
export type UpdatePageParameters = UpdatePagePathParameters & UpdatePageBodyParameters;
|
|
6524
6781
|
export type UpdatePageResponse = PageObjectResponse | PartialPageObjectResponse;
|
|
@@ -6526,7 +6783,7 @@ export declare const updatePage: {
|
|
|
6526
6783
|
readonly method: "patch";
|
|
6527
6784
|
readonly pathParams: readonly ["page_id"];
|
|
6528
6785
|
readonly queryParams: readonly [];
|
|
6529
|
-
readonly bodyParams: readonly ["properties", "icon", "cover", "archived"];
|
|
6786
|
+
readonly bodyParams: readonly ["properties", "icon", "cover", "archived", "in_trash"];
|
|
6530
6787
|
readonly path: (p: UpdatePagePathParameters) => string;
|
|
6531
6788
|
};
|
|
6532
6789
|
type GetPagePropertyPathParameters = {
|
|
@@ -6568,6 +6825,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6568
6825
|
};
|
|
6569
6826
|
type?: "embed";
|
|
6570
6827
|
archived?: boolean;
|
|
6828
|
+
in_trash?: boolean;
|
|
6571
6829
|
} | {
|
|
6572
6830
|
bookmark: {
|
|
6573
6831
|
url?: string;
|
|
@@ -6575,6 +6833,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6575
6833
|
};
|
|
6576
6834
|
type?: "bookmark";
|
|
6577
6835
|
archived?: boolean;
|
|
6836
|
+
in_trash?: boolean;
|
|
6578
6837
|
} | {
|
|
6579
6838
|
image: {
|
|
6580
6839
|
caption?: Array<RichTextItemRequest>;
|
|
@@ -6584,6 +6843,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6584
6843
|
};
|
|
6585
6844
|
type?: "image";
|
|
6586
6845
|
archived?: boolean;
|
|
6846
|
+
in_trash?: boolean;
|
|
6587
6847
|
} | {
|
|
6588
6848
|
video: {
|
|
6589
6849
|
caption?: Array<RichTextItemRequest>;
|
|
@@ -6593,6 +6853,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6593
6853
|
};
|
|
6594
6854
|
type?: "video";
|
|
6595
6855
|
archived?: boolean;
|
|
6856
|
+
in_trash?: boolean;
|
|
6596
6857
|
} | {
|
|
6597
6858
|
pdf: {
|
|
6598
6859
|
caption?: Array<RichTextItemRequest>;
|
|
@@ -6602,6 +6863,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6602
6863
|
};
|
|
6603
6864
|
type?: "pdf";
|
|
6604
6865
|
archived?: boolean;
|
|
6866
|
+
in_trash?: boolean;
|
|
6605
6867
|
} | {
|
|
6606
6868
|
file: {
|
|
6607
6869
|
caption?: Array<RichTextItemRequest>;
|
|
@@ -6612,6 +6874,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6612
6874
|
};
|
|
6613
6875
|
type?: "file";
|
|
6614
6876
|
archived?: boolean;
|
|
6877
|
+
in_trash?: boolean;
|
|
6615
6878
|
} | {
|
|
6616
6879
|
audio: {
|
|
6617
6880
|
caption?: Array<RichTextItemRequest>;
|
|
@@ -6621,6 +6884,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6621
6884
|
};
|
|
6622
6885
|
type?: "audio";
|
|
6623
6886
|
archived?: boolean;
|
|
6887
|
+
in_trash?: boolean;
|
|
6624
6888
|
} | {
|
|
6625
6889
|
code: {
|
|
6626
6890
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -6629,26 +6893,31 @@ type UpdateBlockBodyParameters = {
|
|
|
6629
6893
|
};
|
|
6630
6894
|
type?: "code";
|
|
6631
6895
|
archived?: boolean;
|
|
6896
|
+
in_trash?: boolean;
|
|
6632
6897
|
} | {
|
|
6633
6898
|
equation: {
|
|
6634
6899
|
expression: string;
|
|
6635
6900
|
};
|
|
6636
6901
|
type?: "equation";
|
|
6637
6902
|
archived?: boolean;
|
|
6903
|
+
in_trash?: boolean;
|
|
6638
6904
|
} | {
|
|
6639
6905
|
divider: EmptyObject;
|
|
6640
6906
|
type?: "divider";
|
|
6641
6907
|
archived?: boolean;
|
|
6908
|
+
in_trash?: boolean;
|
|
6642
6909
|
} | {
|
|
6643
6910
|
breadcrumb: EmptyObject;
|
|
6644
6911
|
type?: "breadcrumb";
|
|
6645
6912
|
archived?: boolean;
|
|
6913
|
+
in_trash?: boolean;
|
|
6646
6914
|
} | {
|
|
6647
6915
|
table_of_contents: {
|
|
6648
6916
|
color?: ApiColor;
|
|
6649
6917
|
};
|
|
6650
6918
|
type?: "table_of_contents";
|
|
6651
6919
|
archived?: boolean;
|
|
6920
|
+
in_trash?: boolean;
|
|
6652
6921
|
} | {
|
|
6653
6922
|
link_to_page: {
|
|
6654
6923
|
page_id: IdRequest;
|
|
@@ -6662,12 +6931,14 @@ type UpdateBlockBodyParameters = {
|
|
|
6662
6931
|
};
|
|
6663
6932
|
type?: "link_to_page";
|
|
6664
6933
|
archived?: boolean;
|
|
6934
|
+
in_trash?: boolean;
|
|
6665
6935
|
} | {
|
|
6666
6936
|
table_row: {
|
|
6667
6937
|
cells: Array<Array<RichTextItemRequest>>;
|
|
6668
6938
|
};
|
|
6669
6939
|
type?: "table_row";
|
|
6670
6940
|
archived?: boolean;
|
|
6941
|
+
in_trash?: boolean;
|
|
6671
6942
|
} | {
|
|
6672
6943
|
heading_1: {
|
|
6673
6944
|
rich_text: Array<RichTextItemRequest>;
|
|
@@ -6676,6 +6947,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6676
6947
|
};
|
|
6677
6948
|
type?: "heading_1";
|
|
6678
6949
|
archived?: boolean;
|
|
6950
|
+
in_trash?: boolean;
|
|
6679
6951
|
} | {
|
|
6680
6952
|
heading_2: {
|
|
6681
6953
|
rich_text: Array<RichTextItemRequest>;
|
|
@@ -6684,6 +6956,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6684
6956
|
};
|
|
6685
6957
|
type?: "heading_2";
|
|
6686
6958
|
archived?: boolean;
|
|
6959
|
+
in_trash?: boolean;
|
|
6687
6960
|
} | {
|
|
6688
6961
|
heading_3: {
|
|
6689
6962
|
rich_text: Array<RichTextItemRequest>;
|
|
@@ -6692,6 +6965,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6692
6965
|
};
|
|
6693
6966
|
type?: "heading_3";
|
|
6694
6967
|
archived?: boolean;
|
|
6968
|
+
in_trash?: boolean;
|
|
6695
6969
|
} | {
|
|
6696
6970
|
paragraph: {
|
|
6697
6971
|
rich_text: Array<RichTextItemRequest>;
|
|
@@ -6699,6 +6973,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6699
6973
|
};
|
|
6700
6974
|
type?: "paragraph";
|
|
6701
6975
|
archived?: boolean;
|
|
6976
|
+
in_trash?: boolean;
|
|
6702
6977
|
} | {
|
|
6703
6978
|
bulleted_list_item: {
|
|
6704
6979
|
rich_text: Array<RichTextItemRequest>;
|
|
@@ -6706,6 +6981,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6706
6981
|
};
|
|
6707
6982
|
type?: "bulleted_list_item";
|
|
6708
6983
|
archived?: boolean;
|
|
6984
|
+
in_trash?: boolean;
|
|
6709
6985
|
} | {
|
|
6710
6986
|
numbered_list_item: {
|
|
6711
6987
|
rich_text: Array<RichTextItemRequest>;
|
|
@@ -6713,6 +6989,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6713
6989
|
};
|
|
6714
6990
|
type?: "numbered_list_item";
|
|
6715
6991
|
archived?: boolean;
|
|
6992
|
+
in_trash?: boolean;
|
|
6716
6993
|
} | {
|
|
6717
6994
|
quote: {
|
|
6718
6995
|
rich_text: Array<RichTextItemRequest>;
|
|
@@ -6720,6 +6997,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6720
6997
|
};
|
|
6721
6998
|
type?: "quote";
|
|
6722
6999
|
archived?: boolean;
|
|
7000
|
+
in_trash?: boolean;
|
|
6723
7001
|
} | {
|
|
6724
7002
|
to_do: {
|
|
6725
7003
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -6728,6 +7006,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6728
7006
|
};
|
|
6729
7007
|
type?: "to_do";
|
|
6730
7008
|
archived?: boolean;
|
|
7009
|
+
in_trash?: boolean;
|
|
6731
7010
|
} | {
|
|
6732
7011
|
toggle: {
|
|
6733
7012
|
rich_text: Array<RichTextItemRequest>;
|
|
@@ -6735,12 +7014,14 @@ type UpdateBlockBodyParameters = {
|
|
|
6735
7014
|
};
|
|
6736
7015
|
type?: "toggle";
|
|
6737
7016
|
archived?: boolean;
|
|
7017
|
+
in_trash?: boolean;
|
|
6738
7018
|
} | {
|
|
6739
7019
|
template: {
|
|
6740
7020
|
rich_text: Array<RichTextItemRequest>;
|
|
6741
7021
|
};
|
|
6742
7022
|
type?: "template";
|
|
6743
7023
|
archived?: boolean;
|
|
7024
|
+
in_trash?: boolean;
|
|
6744
7025
|
} | {
|
|
6745
7026
|
callout: {
|
|
6746
7027
|
rich_text?: Array<RichTextItemRequest>;
|
|
@@ -6752,11 +7033,19 @@ type UpdateBlockBodyParameters = {
|
|
|
6752
7033
|
url: TextRequest;
|
|
6753
7034
|
};
|
|
6754
7035
|
type?: "external";
|
|
7036
|
+
} | {
|
|
7037
|
+
custom_emoji: {
|
|
7038
|
+
id: IdRequest;
|
|
7039
|
+
name?: string;
|
|
7040
|
+
url?: string;
|
|
7041
|
+
};
|
|
7042
|
+
type?: "custom_emoji";
|
|
6755
7043
|
};
|
|
6756
7044
|
color?: ApiColor;
|
|
6757
7045
|
};
|
|
6758
7046
|
type?: "callout";
|
|
6759
7047
|
archived?: boolean;
|
|
7048
|
+
in_trash?: boolean;
|
|
6760
7049
|
} | {
|
|
6761
7050
|
synced_block: {
|
|
6762
7051
|
synced_from: {
|
|
@@ -6766,6 +7055,7 @@ type UpdateBlockBodyParameters = {
|
|
|
6766
7055
|
};
|
|
6767
7056
|
type?: "synced_block";
|
|
6768
7057
|
archived?: boolean;
|
|
7058
|
+
in_trash?: boolean;
|
|
6769
7059
|
} | {
|
|
6770
7060
|
table: {
|
|
6771
7061
|
has_column_header?: boolean;
|
|
@@ -6773,8 +7063,10 @@ type UpdateBlockBodyParameters = {
|
|
|
6773
7063
|
};
|
|
6774
7064
|
type?: "table";
|
|
6775
7065
|
archived?: boolean;
|
|
7066
|
+
in_trash?: boolean;
|
|
6776
7067
|
} | {
|
|
6777
7068
|
archived?: boolean;
|
|
7069
|
+
in_trash?: boolean;
|
|
6778
7070
|
};
|
|
6779
7071
|
export type UpdateBlockParameters = UpdateBlockPathParameters & UpdateBlockBodyParameters;
|
|
6780
7072
|
export type UpdateBlockResponse = PartialBlockObjectResponse | BlockObjectResponse;
|
|
@@ -6782,7 +7074,7 @@ export declare const updateBlock: {
|
|
|
6782
7074
|
readonly method: "patch";
|
|
6783
7075
|
readonly pathParams: readonly ["block_id"];
|
|
6784
7076
|
readonly queryParams: readonly [];
|
|
6785
|
-
readonly bodyParams: readonly ["embed", "type", "archived", "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"];
|
|
7077
|
+
readonly bodyParams: readonly ["embed", "type", "archived", "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"];
|
|
6786
7078
|
readonly path: (p: UpdateBlockPathParameters) => string;
|
|
6787
7079
|
};
|
|
6788
7080
|
type DeleteBlockPathParameters = {
|
|
@@ -6869,6 +7161,13 @@ type UpdateDatabaseBodyParameters = {
|
|
|
6869
7161
|
url: TextRequest;
|
|
6870
7162
|
};
|
|
6871
7163
|
type?: "external";
|
|
7164
|
+
} | null | {
|
|
7165
|
+
custom_emoji: {
|
|
7166
|
+
id: IdRequest;
|
|
7167
|
+
name?: string;
|
|
7168
|
+
url?: string;
|
|
7169
|
+
};
|
|
7170
|
+
type?: "custom_emoji";
|
|
6872
7171
|
} | null;
|
|
6873
7172
|
cover?: {
|
|
6874
7173
|
external: {
|
|
@@ -6882,40 +7181,48 @@ type UpdateDatabaseBodyParameters = {
|
|
|
6882
7181
|
};
|
|
6883
7182
|
type?: "number";
|
|
6884
7183
|
name?: string;
|
|
7184
|
+
description?: PropertyDescriptionRequest | null;
|
|
6885
7185
|
} | null | {
|
|
6886
7186
|
formula: {
|
|
6887
7187
|
expression?: string;
|
|
6888
7188
|
};
|
|
6889
7189
|
type?: "formula";
|
|
6890
7190
|
name?: string;
|
|
7191
|
+
description?: PropertyDescriptionRequest | null;
|
|
6891
7192
|
} | null | {
|
|
6892
7193
|
select: {
|
|
6893
7194
|
options?: Array<{
|
|
6894
7195
|
id: StringRequest;
|
|
6895
7196
|
name?: StringRequest;
|
|
6896
7197
|
color?: SelectColor;
|
|
7198
|
+
description?: StringRequest | null;
|
|
6897
7199
|
} | {
|
|
6898
7200
|
name: StringRequest;
|
|
6899
7201
|
id?: StringRequest;
|
|
6900
7202
|
color?: SelectColor;
|
|
7203
|
+
description?: StringRequest | null;
|
|
6901
7204
|
}>;
|
|
6902
7205
|
};
|
|
6903
7206
|
type?: "select";
|
|
6904
7207
|
name?: string;
|
|
7208
|
+
description?: PropertyDescriptionRequest | null;
|
|
6905
7209
|
} | null | {
|
|
6906
7210
|
multi_select: {
|
|
6907
7211
|
options?: Array<{
|
|
6908
7212
|
id: StringRequest;
|
|
6909
7213
|
name?: StringRequest;
|
|
6910
7214
|
color?: SelectColor;
|
|
7215
|
+
description?: StringRequest | null;
|
|
6911
7216
|
} | {
|
|
6912
7217
|
name: StringRequest;
|
|
6913
7218
|
id?: StringRequest;
|
|
6914
7219
|
color?: SelectColor;
|
|
7220
|
+
description?: StringRequest | null;
|
|
6915
7221
|
}>;
|
|
6916
7222
|
};
|
|
6917
7223
|
type?: "multi_select";
|
|
6918
7224
|
name?: string;
|
|
7225
|
+
description?: PropertyDescriptionRequest | null;
|
|
6919
7226
|
} | null | {
|
|
6920
7227
|
relation: {
|
|
6921
7228
|
single_property: EmptyObject;
|
|
@@ -6928,6 +7235,7 @@ type UpdateDatabaseBodyParameters = {
|
|
|
6928
7235
|
};
|
|
6929
7236
|
type?: "relation";
|
|
6930
7237
|
name?: string;
|
|
7238
|
+
description?: PropertyDescriptionRequest | null;
|
|
6931
7239
|
} | null | {
|
|
6932
7240
|
rollup: {
|
|
6933
7241
|
rollup_property_name: string;
|
|
@@ -6956,69 +7264,85 @@ type UpdateDatabaseBodyParameters = {
|
|
|
6956
7264
|
};
|
|
6957
7265
|
type?: "rollup";
|
|
6958
7266
|
name?: string;
|
|
7267
|
+
description?: PropertyDescriptionRequest | null;
|
|
6959
7268
|
} | null | {
|
|
6960
7269
|
unique_id: {
|
|
6961
7270
|
prefix?: string | null;
|
|
6962
7271
|
};
|
|
6963
7272
|
type?: "unique_id";
|
|
6964
7273
|
name?: string;
|
|
7274
|
+
description?: PropertyDescriptionRequest | null;
|
|
6965
7275
|
} | null | {
|
|
6966
7276
|
title: EmptyObject;
|
|
6967
7277
|
type?: "title";
|
|
6968
7278
|
name?: string;
|
|
7279
|
+
description?: PropertyDescriptionRequest | null;
|
|
6969
7280
|
} | null | {
|
|
6970
7281
|
rich_text: EmptyObject;
|
|
6971
7282
|
type?: "rich_text";
|
|
6972
7283
|
name?: string;
|
|
7284
|
+
description?: PropertyDescriptionRequest | null;
|
|
6973
7285
|
} | null | {
|
|
6974
7286
|
url: EmptyObject;
|
|
6975
7287
|
type?: "url";
|
|
6976
7288
|
name?: string;
|
|
7289
|
+
description?: PropertyDescriptionRequest | null;
|
|
6977
7290
|
} | null | {
|
|
6978
7291
|
people: EmptyObject;
|
|
6979
7292
|
type?: "people";
|
|
6980
7293
|
name?: string;
|
|
7294
|
+
description?: PropertyDescriptionRequest | null;
|
|
6981
7295
|
} | null | {
|
|
6982
7296
|
files: EmptyObject;
|
|
6983
7297
|
type?: "files";
|
|
6984
7298
|
name?: string;
|
|
7299
|
+
description?: PropertyDescriptionRequest | null;
|
|
6985
7300
|
} | null | {
|
|
6986
7301
|
email: EmptyObject;
|
|
6987
7302
|
type?: "email";
|
|
6988
7303
|
name?: string;
|
|
7304
|
+
description?: PropertyDescriptionRequest | null;
|
|
6989
7305
|
} | null | {
|
|
6990
7306
|
phone_number: EmptyObject;
|
|
6991
7307
|
type?: "phone_number";
|
|
6992
7308
|
name?: string;
|
|
7309
|
+
description?: PropertyDescriptionRequest | null;
|
|
6993
7310
|
} | null | {
|
|
6994
7311
|
date: EmptyObject;
|
|
6995
7312
|
type?: "date";
|
|
6996
7313
|
name?: string;
|
|
7314
|
+
description?: PropertyDescriptionRequest | null;
|
|
6997
7315
|
} | null | {
|
|
6998
7316
|
checkbox: EmptyObject;
|
|
6999
7317
|
type?: "checkbox";
|
|
7000
7318
|
name?: string;
|
|
7319
|
+
description?: PropertyDescriptionRequest | null;
|
|
7001
7320
|
} | null | {
|
|
7002
7321
|
created_by: EmptyObject;
|
|
7003
7322
|
type?: "created_by";
|
|
7004
7323
|
name?: string;
|
|
7324
|
+
description?: PropertyDescriptionRequest | null;
|
|
7005
7325
|
} | null | {
|
|
7006
7326
|
created_time: EmptyObject;
|
|
7007
7327
|
type?: "created_time";
|
|
7008
7328
|
name?: string;
|
|
7329
|
+
description?: PropertyDescriptionRequest | null;
|
|
7009
7330
|
} | null | {
|
|
7010
7331
|
last_edited_by: EmptyObject;
|
|
7011
7332
|
type?: "last_edited_by";
|
|
7012
7333
|
name?: string;
|
|
7334
|
+
description?: PropertyDescriptionRequest | null;
|
|
7013
7335
|
} | null | {
|
|
7014
7336
|
last_edited_time: EmptyObject;
|
|
7015
7337
|
type?: "last_edited_time";
|
|
7016
7338
|
name?: string;
|
|
7339
|
+
description?: PropertyDescriptionRequest | null;
|
|
7017
7340
|
} | null | {
|
|
7018
7341
|
name: string;
|
|
7019
7342
|
} | null>;
|
|
7020
7343
|
is_inline?: boolean;
|
|
7021
7344
|
archived?: boolean;
|
|
7345
|
+
in_trash?: boolean;
|
|
7022
7346
|
};
|
|
7023
7347
|
export type UpdateDatabaseParameters = UpdateDatabasePathParameters & UpdateDatabaseBodyParameters;
|
|
7024
7348
|
export type UpdateDatabaseResponse = PartialDatabaseObjectResponse | DatabaseObjectResponse;
|
|
@@ -7026,7 +7350,7 @@ export declare const updateDatabase: {
|
|
|
7026
7350
|
readonly method: "patch";
|
|
7027
7351
|
readonly pathParams: readonly ["database_id"];
|
|
7028
7352
|
readonly queryParams: readonly [];
|
|
7029
|
-
readonly bodyParams: readonly ["title", "description", "icon", "cover", "properties", "is_inline", "archived"];
|
|
7353
|
+
readonly bodyParams: readonly ["title", "description", "icon", "cover", "properties", "is_inline", "archived", "in_trash"];
|
|
7030
7354
|
readonly path: (p: UpdateDatabasePathParameters) => string;
|
|
7031
7355
|
};
|
|
7032
7356
|
type QueryDatabasePathParameters = {
|
|
@@ -7059,6 +7383,7 @@ type QueryDatabaseBodyParameters = {
|
|
|
7059
7383
|
start_cursor?: string;
|
|
7060
7384
|
page_size?: number;
|
|
7061
7385
|
archived?: boolean;
|
|
7386
|
+
in_trash?: boolean;
|
|
7062
7387
|
};
|
|
7063
7388
|
export type QueryDatabaseParameters = QueryDatabasePathParameters & QueryDatabaseQueryParameters & QueryDatabaseBodyParameters;
|
|
7064
7389
|
export type QueryDatabaseResponse = {
|
|
@@ -7073,7 +7398,7 @@ export declare const queryDatabase: {
|
|
|
7073
7398
|
readonly method: "post";
|
|
7074
7399
|
readonly pathParams: readonly ["database_id"];
|
|
7075
7400
|
readonly queryParams: readonly ["filter_properties"];
|
|
7076
|
-
readonly bodyParams: readonly ["sorts", "filter", "start_cursor", "page_size", "archived"];
|
|
7401
|
+
readonly bodyParams: readonly ["sorts", "filter", "start_cursor", "page_size", "archived", "in_trash"];
|
|
7077
7402
|
readonly path: (p: QueryDatabasePathParameters) => string;
|
|
7078
7403
|
};
|
|
7079
7404
|
type ListDatabasesQueryParameters = {
|
|
@@ -7109,27 +7434,33 @@ type CreateDatabaseBodyParameters = {
|
|
|
7109
7434
|
format?: NumberFormat;
|
|
7110
7435
|
};
|
|
7111
7436
|
type?: "number";
|
|
7437
|
+
description?: PropertyDescriptionRequest | null;
|
|
7112
7438
|
} | {
|
|
7113
7439
|
formula: {
|
|
7114
7440
|
expression?: string;
|
|
7115
7441
|
};
|
|
7116
7442
|
type?: "formula";
|
|
7443
|
+
description?: PropertyDescriptionRequest | null;
|
|
7117
7444
|
} | {
|
|
7118
7445
|
select: {
|
|
7119
7446
|
options?: Array<{
|
|
7120
7447
|
name: StringRequest;
|
|
7121
7448
|
color?: SelectColor;
|
|
7449
|
+
description?: StringRequest | null;
|
|
7122
7450
|
}>;
|
|
7123
7451
|
};
|
|
7124
7452
|
type?: "select";
|
|
7453
|
+
description?: PropertyDescriptionRequest | null;
|
|
7125
7454
|
} | {
|
|
7126
7455
|
multi_select: {
|
|
7127
7456
|
options?: Array<{
|
|
7128
7457
|
name: StringRequest;
|
|
7129
7458
|
color?: SelectColor;
|
|
7459
|
+
description?: StringRequest | null;
|
|
7130
7460
|
}>;
|
|
7131
7461
|
};
|
|
7132
7462
|
type?: "multi_select";
|
|
7463
|
+
description?: PropertyDescriptionRequest | null;
|
|
7133
7464
|
} | {
|
|
7134
7465
|
relation: {
|
|
7135
7466
|
single_property: EmptyObject;
|
|
@@ -7141,6 +7472,7 @@ type CreateDatabaseBodyParameters = {
|
|
|
7141
7472
|
type?: "dual_property";
|
|
7142
7473
|
};
|
|
7143
7474
|
type?: "relation";
|
|
7475
|
+
description?: PropertyDescriptionRequest | null;
|
|
7144
7476
|
} | {
|
|
7145
7477
|
rollup: {
|
|
7146
7478
|
rollup_property_name: string;
|
|
@@ -7168,50 +7500,65 @@ type CreateDatabaseBodyParameters = {
|
|
|
7168
7500
|
relation_property_name?: string;
|
|
7169
7501
|
};
|
|
7170
7502
|
type?: "rollup";
|
|
7503
|
+
description?: PropertyDescriptionRequest | null;
|
|
7171
7504
|
} | {
|
|
7172
7505
|
unique_id: {
|
|
7173
7506
|
prefix?: string | null;
|
|
7174
7507
|
};
|
|
7175
7508
|
type?: "unique_id";
|
|
7509
|
+
description?: PropertyDescriptionRequest | null;
|
|
7176
7510
|
} | {
|
|
7177
7511
|
title: EmptyObject;
|
|
7178
7512
|
type?: "title";
|
|
7513
|
+
description?: PropertyDescriptionRequest | null;
|
|
7179
7514
|
} | {
|
|
7180
7515
|
rich_text: EmptyObject;
|
|
7181
7516
|
type?: "rich_text";
|
|
7517
|
+
description?: PropertyDescriptionRequest | null;
|
|
7182
7518
|
} | {
|
|
7183
7519
|
url: EmptyObject;
|
|
7184
7520
|
type?: "url";
|
|
7521
|
+
description?: PropertyDescriptionRequest | null;
|
|
7185
7522
|
} | {
|
|
7186
7523
|
people: EmptyObject;
|
|
7187
7524
|
type?: "people";
|
|
7525
|
+
description?: PropertyDescriptionRequest | null;
|
|
7188
7526
|
} | {
|
|
7189
7527
|
files: EmptyObject;
|
|
7190
7528
|
type?: "files";
|
|
7529
|
+
description?: PropertyDescriptionRequest | null;
|
|
7191
7530
|
} | {
|
|
7192
7531
|
email: EmptyObject;
|
|
7193
7532
|
type?: "email";
|
|
7533
|
+
description?: PropertyDescriptionRequest | null;
|
|
7194
7534
|
} | {
|
|
7195
7535
|
phone_number: EmptyObject;
|
|
7196
7536
|
type?: "phone_number";
|
|
7537
|
+
description?: PropertyDescriptionRequest | null;
|
|
7197
7538
|
} | {
|
|
7198
7539
|
date: EmptyObject;
|
|
7199
7540
|
type?: "date";
|
|
7541
|
+
description?: PropertyDescriptionRequest | null;
|
|
7200
7542
|
} | {
|
|
7201
7543
|
checkbox: EmptyObject;
|
|
7202
7544
|
type?: "checkbox";
|
|
7545
|
+
description?: PropertyDescriptionRequest | null;
|
|
7203
7546
|
} | {
|
|
7204
7547
|
created_by: EmptyObject;
|
|
7205
7548
|
type?: "created_by";
|
|
7549
|
+
description?: PropertyDescriptionRequest | null;
|
|
7206
7550
|
} | {
|
|
7207
7551
|
created_time: EmptyObject;
|
|
7208
7552
|
type?: "created_time";
|
|
7553
|
+
description?: PropertyDescriptionRequest | null;
|
|
7209
7554
|
} | {
|
|
7210
7555
|
last_edited_by: EmptyObject;
|
|
7211
7556
|
type?: "last_edited_by";
|
|
7557
|
+
description?: PropertyDescriptionRequest | null;
|
|
7212
7558
|
} | {
|
|
7213
7559
|
last_edited_time: EmptyObject;
|
|
7214
7560
|
type?: "last_edited_time";
|
|
7561
|
+
description?: PropertyDescriptionRequest | null;
|
|
7215
7562
|
}>;
|
|
7216
7563
|
icon?: {
|
|
7217
7564
|
emoji: EmojiRequest;
|
|
@@ -7221,6 +7568,13 @@ type CreateDatabaseBodyParameters = {
|
|
|
7221
7568
|
url: TextRequest;
|
|
7222
7569
|
};
|
|
7223
7570
|
type?: "external";
|
|
7571
|
+
} | null | {
|
|
7572
|
+
custom_emoji: {
|
|
7573
|
+
id: IdRequest;
|
|
7574
|
+
name?: string;
|
|
7575
|
+
url?: string;
|
|
7576
|
+
};
|
|
7577
|
+
type?: "custom_emoji";
|
|
7224
7578
|
} | null;
|
|
7225
7579
|
cover?: {
|
|
7226
7580
|
external: {
|