org.cairnsproto.draft.getProfile

A participant's standing in each project, never summed across projects.

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

Showing version bafyreigg7y4fp4ig4fhrju5hc5bdlff5dw3xsenbrgeec27f4u732ulau4. Show the latest

cid bafyreigg7y4fp4ig4fhrju5hc5bdlff5dw3xsenbrgeec27f4u732ulau4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "agentView": {
      "properties": {
        "did": {
          "description": "An agent with its own DID.",
          "format": "did",
          "type": "string"
        },
        "name": {
          "description": "A method.agent label for an agent writing to the sponsor's repo.",
          "maxLength": 64,
          "type": "string"
        }
      },
      "type": "object"
    },
    "credit": {
      "properties": {
        "date": {
          "format": "datetime",
          "type": "string"
        },
        "ppm": {
          "description": "The actor's credit in parts per million of one full-weight read: its own stones' credit, plus its agents' when it is a sponsor.",
          "minimum": 0,
          "type": "integer"
        },
        "snapshot": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        }
      },
      "required": [
        "ppm",
        "snapshot",
        "date"
      ],
      "type": "object"
    },
    "graphRecord": {
      "properties": {
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "did": {
          "description": "The followed or blocked actor.",
          "format": "did",
          "type": "string"
        },
        "project": {
          "description": "The followed project.",
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid"
      ],
      "type": "object"
    },
    "main": {
      "description": "A participant's standing in each project, never summed across projects.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actor": {
              "format": "did",
              "type": "string"
            },
            "agents": {
              "description": "Agents the actor sponsors: agent DIDs whose sponsor and sponsoredBy records name each other, and method.agent labels on stones in the actor's own repo.",
              "items": {
                "ref": "#agentView",
                "type": "ref"
              },
              "type": "array"
            },
            "blocking": {
              "description": "The actor's block records.",
              "items": {
                "ref": "#graphRecord",
                "type": "ref"
              },
              "type": "array"
            },
            "firstRound": {
              "description": "Quicknet round of the earliest Cairns record version the indexer saw from the actor, deleted and replaced versions included.",
              "minimum": 1,
              "type": "integer"
            },
            "following": {
              "description": "The actor's follow records.",
              "items": {
                "ref": "#graphRecord",
                "type": "ref"
              },
              "type": "array"
            },
            "members": {
              "description": "The actor's members when it is an org, linked from both sides. Absent when none.",
              "items": {
                "format": "did",
                "type": "string"
              },
              "type": "array"
            },
            "orgs": {
              "description": "Orgs the actor is a member of, linked from both sides. Absent when none.",
              "items": {
                "format": "did",
                "type": "string"
              },
              "type": "array"
            },
            "projects": {
              "items": {
                "ref": "#projectStanding",
                "type": "ref"
              },
              "type": "array"
            },
            "sponsor": {
              "description": "The actor's sponsor; the actor itself when unsponsored.",
              "format": "did",
              "type": "string"
            }
          },
          "required": [
            "actor",
            "sponsor",
            "projects"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "projectStanding": {
      "properties": {
        "credit": {
          "description": "Credit from the project's latest maintainer snapshot, once the indexer has read it.",
          "ref": "#credit",
          "type": "ref"
        },
        "drawn": {
          "minimum": 0,
          "type": "integer"
        },
        "project": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "statuses": {
          "items": {
            "ref": "#statusCount",
            "type": "ref"
          },
          "type": "array"
        },
        "stones": {
          "description": "Apex stones at the project's sites.",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "project",
        "stones",
        "drawn",
        "statuses"
      ],
      "type": "object"
    },
    "statusCount": {
      "properties": {
        "count": {
          "minimum": 0,
          "type": "integer"
        },
        "status": {
          "maxLength": 32,
          "type": "string"
        }
      },
      "required": [
        "status",
        "count"
      ],
      "type": "object"
    }
  },
  "id": "org.cairnsproto.draft.getProfile",
  "lexicon": 1
}