async fn save_token_permissions( client: &Client, owner_id: i32, id: &str, scope: TokenScope, notes: NoteGrant, ) -> Result<(), AppError>