Skip to content

Commit

Permalink
fix: add missing fields for entity
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Jan 12, 2023
1 parent a3da88c commit c90871f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
24 changes: 14 additions & 10 deletions src/mastodon/v1/entities/relationship.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,28 @@ export interface Relationship {
id: string;
/** Are you following this user? */
following: boolean;
/** Do you have a pending follow request for this user? */
requested: boolean;
/** Are you featuring this user on your profile? */
endorsed: boolean;
/** Are you receiving this user's boosts in your home timeline? */
showingReblogs: boolean;
/** Have you enabled notifications for this user? */
notifying: boolean;
/** Which languages are you following from this user? */
languages: string[];
/** Are you followed by this user? */
followedBy: boolean;
/** Are you blocking this user? */
blocking: boolean;
/** Is this user blocking you? */
blockedBy: boolean;
/** Are you muting this user? */
muting: boolean;
/** Are you muting notifications from this user? */
mutingNotifications: boolean;
/** Are you receiving this user's boosts in your home timeline? */
showingReblogs: boolean;
/** Are you blocking this user? */
blocking: boolean;
/** Do you have a pending follow request for this user? */
requested: boolean;
/** Are you blocking this user's domain? */
domainBlocking: boolean;
/** Is this user blocking you? */
blockedBy: boolean;
/** Are you featuring this user on your profile? */
endorsed: boolean;
/** Personal note for this account */
note?: string | null;
}
6 changes: 5 additions & 1 deletion src/mastodon/v1/repositories/account-repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,12 @@ export interface ListAccountStatusesParams extends DefaultPaginationParams {
}

export interface FollowAccountParams {
/** Whether the followed accounts reblogs will show up in the home timeline */
/** Receive this account's reblogs in home timeline? Defaults to true */
readonly reblogs?: boolean | null;
/** Receive notifications when this account posts a status? Defaults to false */
readonly notify?: boolean | null;
/** Array of String (ISO 639-1 language two-letter code). Filter received statuses for these languages. If not provided, you will receive this account's posts in all languages */
readonly languages?: string[] | null;
}

export interface SearchAccountsParams {
Expand Down

0 comments on commit c90871f

Please sign in to comment.