org.cairnsproto.draft.transform

A Starlark script that turns a source into a derived source. It runs inside the interpreter check Cairns ships, so nothing decodes the source outside WASM.

Repository @cairnsproto.org did:plc:np7ezqujtsry4bkogisaabul namespace authority
Details · record, key tid
Kindrecord
Record keytid
Authoritydraft.cairnsproto.org
Indexed
cid bafyreieiw4l7czfxrqdxvl5y2n4gm7xd5sxhlead5dbs4lkyy6ma4txfba

Checks

Valid
  • large-string defs.main.record.properties.scriptmaxLength is over 20 KB. Use a blob for content that large.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A Starlark script that turns a source into a derived source. It runs inside the interpreter check Cairns ships, so nothing decodes the source outside WASM.",
      "key": "tid",
      "record": {
        "properties": {
          "accepts": {
            "description": "MIME types of the sources the script reads.",
            "items": {
              "maxLength": 256,
              "type": "string"
            },
            "maxLength": 16,
            "minLength": 1,
            "type": "array"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "interpreter": {
            "description": "The interpreter check, at the version the script was written for.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "license": {
            "description": "SPDX expression or URL.",
            "maxLength": 512,
            "type": "string"
          },
          "name": {
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "output": {
            "description": "Hash of the payload schema the output conforms to.",
            "ref": "org.cairnsproto.draft.defs#hash",
            "type": "ref"
          },
          "script": {
            "description": "Starlark source. It can't load other records.",
            "maxLength": 200000,
            "type": "string"
          },
          "tags": {
            "description": "Layouts the script handles, lowercase kebab-case, for discovery.",
            "items": {
              "maxLength": 64,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          }
        },
        "required": [
          "interpreter",
          "script",
          "accepts",
          "output",
          "name",
          "license",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.cairnsproto.draft.transform",
  "lexicon": 1
}