dev.knotless.getActorActivity
How much an account did on each day since a time, by kind, as an appview has indexed it, and its repositories' pushes: when each was last pushed to, and how often on each of those days. Days are dates in the zone `tz`, and only days with something done are listed. Repositories and accounts taken down count for nothing. No authentication needed; asked with a service token or the pages' session cookie by the account itself, or by a member of its private repositories, those it may read are among `repos` too, and the answer is the asker's alone.
Details · query
| Kind | query |
|---|---|
| Authority | knotless.dev |
| Indexed |
Checks
Validunlimited-stringdefs.dayView.properties.dayNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.repoActivity.properties.nameNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.repoDay.properties.dayNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"dayView": {
"description": "What the account did on one day.",
"properties": {
"comments": {
"description": "Comments it wrote.",
"minimum": 0,
"type": "integer"
},
"day": {
"description": "The date in `tz`, as YYYY-MM-DD.",
"type": "string"
},
"issues": {
"description": "Issues it opened.",
"minimum": 0,
"type": "integer"
},
"pulls": {
"description": "Pulls it opened.",
"minimum": 0,
"type": "integer"
},
"pushes": {
"description": "Refs it moved, made or deleted, one for each claim.",
"minimum": 0,
"type": "integer"
},
"repos": {
"description": "Repositories it made.",
"minimum": 0,
"type": "integer"
}
},
"required": [
"day"
],
"type": "object"
},
"main": {
"description": "How much an account did on each day since a time, by kind, as an appview has indexed it, and its repositories' pushes: when each was last pushed to, and how often on each of those days. Days are dates in the zone `tz`, and only days with something done are listed. Repositories and accounts taken down count for nothing. No authentication needed; asked with a service token or the pages' session cookie by the account itself, or by a member of its private repositories, those it may read are among `repos` too, and the answer is the asker's alone.",
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"days": {
"description": "Oldest first.",
"items": {
"ref": "#dayView",
"type": "ref"
},
"type": "array"
},
"repos": {
"description": "Each of the account's repositories ever pushed to, by name.",
"items": {
"ref": "#repoActivity",
"type": "ref"
},
"type": "array"
}
},
"required": [
"days",
"repos"
],
"type": "object"
}
},
"parameters": {
"properties": {
"actor": {
"description": "The account.",
"format": "did",
"type": "string"
},
"since": {
"description": "The first day counted is the one this falls on in `tz`; a year before now if not given.",
"format": "datetime",
"type": "string"
},
"tz": {
"description": "The IANA time zone whose days are counted, as `America/New_York`; UTC if not given or not known.",
"maxLength": 64,
"type": "string"
}
},
"required": [
"actor"
],
"type": "params"
},
"type": "query"
},
"repoActivity": {
"description": "The pushes to one of the account's repositories.",
"properties": {
"days": {
"description": "The days since `since` it was pushed to, oldest first.",
"items": {
"ref": "#repoDay",
"type": "ref"
},
"type": "array"
},
"name": {
"description": "The repository's name: its record key.",
"type": "string"
},
"pushedAt": {
"description": "When it was last pushed to, ever.",
"format": "datetime",
"type": "string"
}
},
"required": [
"name",
"pushedAt",
"days"
],
"type": "object"
},
"repoDay": {
"description": "The pushes to a repository on one day.",
"properties": {
"day": {
"description": "The date in `tz`, as YYYY-MM-DD.",
"type": "string"
},
"pushes": {
"description": "Refs moved, made or deleted.",
"minimum": 1,
"type": "integer"
}
},
"required": [
"day",
"pushes"
],
"type": "object"
}
},
"description": "How much an account did on each day, as an appview has indexed it.",
"id": "dev.knotless.getActorActivity",
"lexicon": 1
}