Type Alias PermissionGrantData

PermissionGrantData: {
    conditions?: PermissionConditions;
    dateExpires: string;
    delegated?: boolean;
    description?: string;
    requestId?: string;
    scope: PermissionScope;
}

Type for the data payload of a permission grant message.

Type declaration

  • Optionalconditions?: PermissionConditions
  • dateExpires: string

    Timestamp at which this grant will no longer be active.

  • Optionaldelegated?: boolean

    Whether this grant is delegated or not. If true, the grantedTo will be able to act as the grantedTo within the scope of this grant.

  • Optionaldescription?: string

    Optional string that communicates what the grant would be used for

  • OptionalrequestId?: string

    Optional CID of a permission request. This is optional because grants may be given without being officially requested

  • scope: PermissionScope

    The scope of the allowed access.