Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom_emoji type #533

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/api-endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4512,6 +4512,11 @@ type EmojiRequest =
| "🏴󠁧󠁢󠁥󠁮󠁧󠁿"
| "🏴󠁧󠁢󠁳󠁣󠁴󠁿"
| "🏴󠁧󠁢󠁷󠁬󠁳󠁿"
type CustomEmojiRequest = {
id: string;
name: string;
url: string;
}

export type PageObjectResponse = {
parent:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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 }
Expand Down