org.cairnsproto.draft.getBadges

A participant's badges, each computed from the latest snapshot a project maintainer published.

Repository @cairnsproto.org did:plc:np7ezqujtsry4bkogisaabul namespace authority
Details · query
Kindquery
Authoritydraft.cairnsproto.org
Indexed

Showing version bafyreiffnji4forvoppossysqlr33iuyi5ex432nlzzzvst45k6fk3ta3m. Show the latest

cid bafyreiffnji4forvoppossysqlr33iuyi5ex432nlzzzvst45k6fk3ta3m

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "badgeView": {
      "properties": {
        "date": {
          "description": "The snapshot's createdAt.",
          "format": "datetime",
          "type": "string"
        },
        "export": {
          "description": "For published/v1, the merged export the badge comes from.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "members": {
          "description": "For an org's badge rolled up from its members, the members who hold it.",
          "items": {
            "format": "did",
            "type": "string"
          },
          "type": "array"
        },
        "n": {
          "description": "The rank cutoff, for top/v1.",
          "minimum": 1,
          "type": "integer"
        },
        "project": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "rule": {
          "description": "The versioned rule, such as contributor/v1 or top/v1.",
          "maxLength": 64,
          "type": "string"
        },
        "snapshot": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "stones": {
          "description": "The stones whose finalized credit earned the badge.",
          "items": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "rule",
        "project",
        "snapshot",
        "date",
        "stones"
      ],
      "type": "object"
    },
    "main": {
      "description": "A participant's badges, each computed from the latest snapshot a project maintainer published.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actor": {
              "format": "did",
              "type": "string"
            },
            "badges": {
              "items": {
                "ref": "#badgeView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "actor",
            "badges"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "did",
            "type": "string"
          },
          "project": {
            "description": "Limit to one project.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "org.cairnsproto.draft.getBadges",
  "lexicon": 1
}