import { type AuthorisationScheme } from "https://deno.land/x/willow@0.2.1/src/store/types.ts";
Configures the AuthorisationToken
and is_authorised_write
parameters of the Willow data model, used to restrict write access to a Willow data store.
definition: { isAuthorisedWrite: (entry: Entry<NamespaceId, SubspaceId, PayloadDigest>, token: AuthorisationToken) => Promise<boolean>; tokenEncoding: EncodingScheme<AuthorisationToken>; authorise(entry: Entry<NamespaceId, SubspaceId, PayloadDigest>, opts: AuthorisationOpts): Promise<AuthorisationToken>; }