From bf56c63b0c9ef77f798a375463e8bc3a8642829a Mon Sep 17 00:00:00 2001 From: Phil Date: Wed, 13 Nov 2024 13:14:18 +0100 Subject: [PATCH] add custom_emoji type --- src/api-endpoints.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/api-endpoints.ts b/src/api-endpoints.ts index 0af39b58..090c28b6 100644 --- a/src/api-endpoints.ts +++ b/src/api-endpoints.ts @@ -4512,6 +4512,11 @@ type EmojiRequest = | "🏴󠁧󠁢󠁥󠁮󠁧󠁿" | "🏴󠁧󠁢󠁳󠁣󠁴󠁿" | "🏴󠁧󠁢󠁷󠁬󠁳󠁿" +type CustomEmojiRequest = { + id: string; + name: string; + url: string; +} export type PageObjectResponse = { parent: @@ -4673,6 +4678,8 @@ export type PageObjectResponse = { | null | { type: "file"; file: { url: string; expiry_time: string } } | null + | { type: "custom_emoji"; emoji: CustomEmojiRequest } + | null cover: | { type: "external"; external: { url: TextRequest } } | null @@ -4991,6 +4998,8 @@ export type DatabaseObjectResponse = { | null | { type: "file"; file: { url: string; expiry_time: string } } | null + | { type: "custom_emoji"; emoji: CustomEmojiRequest } + | null cover: | { type: "external"; external: { url: TextRequest } } | null @@ -5451,6 +5460,8 @@ export type CalloutBlockObjectResponse = { | null | { type: "file"; file: { url: string; expiry_time: string } } | null + | { type: "custom_emoji"; emoji: CustomEmojiRequest } + | null } parent: | { type: "database_id"; database_id: string }