chadtmiller.com/knotless
git that lives in your Atmosphere account
7
{
"lexicon": 1,
"id": "dev.knotless.updateSeen",
"description": "Says the asking account has seen its notifications up to a time.",
"defs": {
"main": {
"type": "procedure",
"description": "Keeps, on the appview, when the asking account last saw its notifications: those from then on are unread. A time before the one kept leaves it. Requires authentication: a service token, or the session cookie the pages' login sets, from the pages themselves.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["seenAt"],
"properties": {
"seenAt": { "type": "string", "format": "datetime", "description": "The newest notification seen, by its createdAt." }
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["seenAt"],
"properties": {
"seenAt": { "type": "string", "format": "datetime", "description": "When it last saw them now, as kept." }
}
}
},
"errors": [{ "name": "AuthenticationRequired", "description": "No account asks." }]
}
}
}