Skip to content

Commit 23cad4f

Browse files
neetclaude
andauthored
fix: Add missing Application entity fields introduced in Mastodon 4.3/4.4 (#1409)
Closes #1408 Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 75fb2a8 commit 23cad4f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/mastodon/entities/v1/application.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
/**
22
* Represents an application that interfaces with the REST API to access accounts or post statuses.
3-
* @see https://docs.joinmastodon.org/entities/application/
3+
* @see https://docs.joinmastodon.org/entities/Application/
44
*/
55
export interface Application {
66
/** The name of your application. */
77
name: string;
88
/** The website associated with your application. */
99
website?: string | null;
10+
/** The OAuth scopes requested for this application. Added in 4.3.0. */
11+
scopes?: string[] | null;
12+
/** Redirect URIs registered for this application. Added in 4.3.0. */
13+
redirectUris?: string[] | null;
1014
/** Used for Push Streaming API. Returned with POST /api/v1/apps. Equivalent to PushSubscription#server_key */
1115
vapidKey?: string | null;
1216
}
@@ -16,4 +20,6 @@ export interface Client extends Application {
1620
clientId?: string | null;
1721
/** Client secret key, to be used for obtaining OAuth tokens */
1822
clientSecret?: string | null;
23+
/** When the client secret expires. Returns "0" if it doesn't expire. Added in 4.4.0. */
24+
clientSecretExpiresAt?: string | null;
1925
}

0 commit comments

Comments
 (0)