app.thesocialwire.appview.getReadAgeOptions
Get calendar-day read cutoffs represented by unread stories in the full indexed feed scope, capped at seven days. The seven-day option includes all older unread stories. The default output is application/json. Clients may request Accept: application/x-ndjson for progressive options snapshots; each line is an options event with type, referenceDay, and options, a done event with type, or an error event with type and message. Options snapshots replace earlier snapshots and remain partial until done.
Details · query
| Kind | query |
|---|---|
| Authority | appview.thesocialwire.app |
| Commit rev | 3n2ums66i442h |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Get calendar-day read cutoffs represented by unread stories in the full indexed feed scope, capped at seven days. The seven-day option includes all older unread stories. The default output is application/json. Clients may request Accept: application/x-ndjson for progressive options snapshots; each line is an options event with type, referenceDay, and options, a done event with type, or an error event with type and message. Options snapshots replace earlier snapshots and remain partial until done.",
"errors": [
{
"name": "InvalidRequest"
},
{
"name": "UpstreamUnavailable"
}
],
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"options": {
"items": {
"ref": "#option",
"type": "ref"
},
"maxLength": 7,
"type": "array"
},
"referenceDay": {
"description": "Start of the current local calendar day, expressed as a UTC instant.",
"format": "datetime",
"type": "string"
}
},
"required": [
"referenceDay",
"options"
],
"type": "object"
}
},
"parameters": {
"properties": {
"folderRkey": {
"maxLength": 512,
"type": "string"
},
"kind": {
"knownValues": [
"publication",
"folder",
"subscribed",
"following"
],
"maxLength": 32,
"type": "string"
},
"publicationId": {
"maxLength": 2048,
"type": "string"
},
"timeZone": {
"description": "IANA time zone identifier used for local calendar days, such as America/Chicago.",
"maxLength": 255,
"minLength": 1,
"type": "string"
}
},
"required": [
"kind",
"timeZone"
],
"type": "params"
},
"type": "query"
},
"option": {
"properties": {
"before": {
"description": "Exclusive UTC publication-time cutoff. For one day this is the start of today in the requested time zone.",
"format": "datetime",
"type": "string"
},
"count": {
"description": "Number of unread stories in scope before this cutoff.",
"minimum": 1,
"type": "integer"
},
"days": {
"description": "Calendar-day age represented by unread stories, capped at seven days. One includes yesterday and earlier; seven includes all stories aged seven calendar days or more.",
"maximum": 7,
"minimum": 1,
"type": "integer"
}
},
"required": [
"days",
"before",
"count"
],
"type": "object"
}
},
"id": "app.thesocialwire.appview.getReadAgeOptions",
"lexicon": 1
}