Lets holders of a blinkers key read, change and optionally create selected records in this repo.
any
Any valid record key
Properties
allow
array
of
string
Optional
add lets keys create new records.
collection
string
nsid
Required
The collection this lens covers, in this lens's repo.
condition
string
Optional
CEL expression. The lens only covers records for which it is true.
createdAt
string
datetime
Optional
An RFC 3339 formatted timestamp.
fields
array
of
ref
#field
Required
The top-level fields of the blink.
newRecord
unknown
Optional
The object new records start from. Strings wrapped in {% %} are CEL expressions.
rkey
string
Required
A record key, or a pattern where * stands for one or more characters, e.g. byjp.*
maxLength: 512 bytesView raw schema
{
"description": "Lets holders of a blinkers key read, change and optionally create selected records in this repo.",
"key": "any",
"record": {
"properties": {
"allow": {
"description": "add lets keys create new records.",
"items": {
"knownValues": [
"add"
],
"type": "string"
},
"type": "array"
},
"collection": {
"description": "The collection this lens covers, in this lens's repo.",
"format": "nsid",
"type": "string"
},
"condition": {
"description": "CEL expression. The lens only covers records for which it is true.",
"type": "string"
},
"createdAt": {
"format": "datetime",
"type": "string"
},
"fields": {
"description": "The top-level fields of the blink.",
"items": {
"ref": "#field",
"type": "ref"
},
"type": "array"
},
"newRecord": {
"description": "The object new records start from. Strings wrapped in {% %} are CEL expressions.",
"type": "unknown"
},
"rkey": {
"description": "A record key, or a pattern where * stands for one or more characters, e.g. byjp.*",
"maxLength": 512,
"type": "string"
}
},
"required": [
"collection",
"rkey",
"fields"
],
"type": "object"
},
"type": "record"
}