For targets, if you’re granting access to a specific target you don’t need the type parameter.
type
Full documentation on grant permission formats is here; there’s an example of how I granted access to different targets to different roles in this post.