full diff

pub.chive.admin.getTrendingVelocity

From
bafyreiaog554a5t75bruw2ffhauayepw7bvwb2kr27nzlbuuadeeybz3za indexed 2026-06-18 13:14 UTC View this version
To
bafyreiaog554a5t75bruw2ffhauayepw7bvwb2kr27nzlbuuadeeybz3za indexed 2026-06-18 13:14 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
55 "description": "Get trending eprints ranked by engagement velocity",
66 "errors": [
77 {
88 "name": "AuthenticationRequired"
99 },
1010 {
1111 "name": "AdminRequired"
1212 }
1313 ],
1414 "output": {
1515 "encoding": "application/json",
1616 "schema": {
1717 "properties": {
1818 "items": {
1919 "description": "Trending eprints with velocity data",
2020 "items": {
2121 "ref": "#velocityEntry",
2222 "type": "ref"
2323 },
2424 "type": "array"
2525 }
2626 },
2727 "required": [
2828 "items"
2929 ],
3030 "type": "object"
3131 }
3232 },
3333 "parameters": {
3434 "properties": {
3535 "limit": {
3636 "default": 20,
3737 "description": "Maximum number of results",
3838 "maximum": 100,
3939 "minimum": 1,
4040 "type": "integer"
4141 },
4242 "window": {
4343 "default": "24h",
4444 "description": "Time window for velocity calculation",
4545 "knownValues": [
4646 "24h",
4747 "7d",
4848 "30d"
4949 ],
5050 "type": "string"
5151 }
5252 },
5353 "type": "params"
5454 },
5555 "type": "query"
5656 },
5757 "velocityEntry": {
5858 "description": "Eprint trending velocity entry",
5959 "properties": {
6060 "acceleration": {
6161 "description": "Velocity change between windows in milliunits (divide by 1000)",
6262 "type": "integer"
6363 },
6464 "authorDid": {
6565 "description": "Author DID",
6666 "format": "did",
6767 "type": "string"
6868 },
6969 "dailyAvgBaseline": {
7070 "description": "Baseline window daily average views in milliunits (divide by 1000)",
7171 "type": "integer"
7272 },
7373 "dailyAvgCurrent": {
7474 "description": "Current window daily average views in milliunits (divide by 1000)",
7575 "type": "integer"
7676 },
7777 "downloads": {
7878 "description": "Total downloads in window",
7979 "type": "integer"
8080 },
8181 "title": {
8282 "description": "Eprint title",
8383 "type": "string"
8484 },
8585 "uri": {
8686 "description": "Eprint AT URI",
8787 "format": "at-uri",
8888 "type": "string"
8989 },
9090 "velocity": {
9191 "description": "Engagement velocity in milliunits (divide by 1000 for ratio of current to baseline)",
9292 "type": "integer"
9393 },
9494 "views": {
9595 "description": "Total views in window",
9696 "type": "integer"
9797 }
9898 },
9999 "required": [
100100 "uri",
101101 "title",
102102 "velocity"
103103 ],
104104 "type": "object"
105105 }
106106 },
107107 "id": "pub.chive.admin.getTrendingVelocity",
108108 "lexicon": 1,
109109 "revision": 1
110110}