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
cid bafyreicuasft6ogndb3vrg24jlgmj6jkoi3cjzbdgryhbrjfwv4t5mgzpq

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "each": {
      "description": "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": {
          "items": {
            "knownValues": [
              "add",
              "remove",
              "replace"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "fields": {
          "items": {
            "ref": "#field",
            "type": "ref"
          },
          "type": "array"
        },
        "path": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "field": {
      "description": "One field of the blink. Set exactly one of path, items or fields.",
      "properties": {
        "allow": {
          "description": "Changes callers may make. Leave it out to make the field read-only.",
          "items": {
            "knownValues": [
              "add",
              "remove",
              "replace"
            ],
            "type": "string"
          },
          "type": "array"
        },
        "each": {
          "ref": "#each",
          "type": "ref"
        },
        "fields": {
          "description": "Child fields; the blink shows an object.",
          "items": {
            "ref": "#field",
            "type": "ref"
          },
          "type": "array"
        },
        "items": {
          "description": "JSONPath (RFC 9535) selecting list items: a singular query followed by one filter or wildcard selector.",
          "type": "string"
        },
        "key": {
          "description": "The field's name in the blink.",
          "type": "string"
        },
        "newItem": {
          "description": "With items: the object new items start from, before posted values are filled in. Strings wrapped in {% %} are CEL expressions.",
          "type": "unknown"
        },
        "path": {
          "description": "JSONPath (RFC 9535) selecting at most one value in the record.",
          "type": "string"
        }
      },
      "required": [
        "key"
      ],
      "type": "object"
    },
    "main": {
      "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"
    }
  },
  "id": "dev.blinkers.lens",
  "lexicon": 1
}