channel

open fun channel(name: String): DataSyncGrant

Grants DataSync REST CRUD on a channel record. The permission bits land in the plain channels bucket, shared with pub/sub and App Context v2: update() also authorizes App Context v2 setChannelMetadata for the same id. A projection(...) is emitted into the token meta as datasync:channels:<name>; it does not affect realtime subscribe (see subscribe). A named projection only has an effect for channels of a custom Channel subclass that declares it: the built-in Channel class exposes its fields through __default__ only.