dev.blinkers.lens

Lets holders of a blinkers key read, change and optionally create selected records in this repo.

Repository @blinkers.dev did:web:blinkers.dev namespace authority
Details · record, key any
Kindrecord
Record keyany
Authorityblinkers.dev
Indexed

Record

record · key any

Properties

allow

array

add lets keys create new records.

itemsstring
  • knownValues: add

collection

requiredstring · nsid

The collection this lens covers, in this lens's repo.

condition

string

CEL expression. The lens only covers records for which it is true.

createdAt

string · datetime

fields

requiredarray

The top-level fields of the blink.

itemsref
Reference

newRecord

unknown

The object new records start from. Strings wrapped in {% %} are CEL expressions.

rkey

requiredstring

A record key, or a pattern where * stands for one or more characters, e.g. byjp.*

  • maxLength: 512

#each

object

With items: how each item appears in the blink. Set path for a bare value or fields for an object. Paths are relative to the item. Leave each out to show the whole item.

Properties

allow

array
itemsstring
  • knownValues: add | remove | replace

fields

array
itemsref
Reference

path

string

#field

object

One field of the blink. Set exactly one of path, items or fields.

Properties

allow

array

Changes callers may make. Leave it out to make the field read-only.

itemsstring
  • knownValues: add | remove | replace

each

ref
Reference

fields

array

Child fields; the blink shows an object.

itemsref
Reference

items

string

JSONPath (RFC 9535) selecting list items: a singular query followed by one filter or wildcard selector.

key

requiredstring

The field's name in the blink.

newItem

unknown

With items: the object new items start from, before posted values are filled in. Strings wrapped in {% %} are CEL expressions.

path

string

JSONPath (RFC 9535) selecting at most one value in the record.