minca
ApiSessionFunctions

Function: grantTerms()

function grantTerms(access, spaceIds): NoteTerms;

Defined in: packages/core/src/session/connect.ts:255

The terms of the note a grant carries, for these spaces. Writing is every command; records is records only, for a key the account trusts less: it can't define collections, change who may do what, or write for the account (identity/abilities.ts).

Parameters

ParameterType
access"read" | "records" | "write"
spaceIdsreadonly string[] | "all"

Returns

NoteTerms

On this page