grants

abstract fun grants(grants: List<TokenGrant>): GrantTokenBuilder

Supplies the flat list of grants for the modern grant path. Each TokenGrant carries its own resource bucket (ChannelGrant, ChannelGroupGrant or com.pubnub.api.java.models.consumer.access_manager.v3.DataSyncGrant). Additive with channels(...)/channelGroups(...); cannot be combined with the legacy uuids(...) bucket.