feat: add follow/unfollow commands

- bird follow <username-or-id>: follow a user by handle or ID
- bird unfollow <username-or-id>: unfollow a user by handle or ID

Uses REST API /1.1/friendships/create.json and /destroy.json with GraphQL fallback.
Accepts @handles, bare usernames, or numeric user IDs.
This commit is contained in:
Henry Lee
2026-06-24 18:41:35 +09:00
committed by yuta
parent 3c2f6f480e
commit df449ea736
6 changed files with 339 additions and 2 deletions
+11
View File
@@ -228,6 +228,17 @@ export type BookmarkMutationResult =
error: string;
};
export type FollowMutationResult =
| {
success: true;
userId?: string;
username?: string;
}
| {
success: false;
error: string;
};
export interface UploadMediaResult {
success: boolean;
mediaId?: string;