buzz.bookhive.putSyncProgress
Push reading progress for a document. Mirrors KOSync PUT /syncs/progress semantics.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | bookhive.buzz |
| Commit rev | 3n2mntp2l7c2e |
| Indexed |
Checks
Validunlimited-stringdefs.main.input.schema.properties.deviceNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.device_idNo maxLength, maxGraphemes or format limits this string.field-name-syntaxdefs.main.input.schema.properties.device_idThe field name device_id should be letters and digits, starting with a letter.unlimited-stringdefs.main.input.schema.properties.documentNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.percentageNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.input.schema.properties.progressNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.main.output.schema.properties.statusNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.syncMetadata.properties.authorsNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.syncMetadata.properties.filenameNo maxLength, maxGraphemes or format limits this string.unlimited-stringdefs.syncMetadata.properties.titleNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Push reading progress for a document. Mirrors KOSync PUT /syncs/progress semantics.",
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"device": {
"description": "Device name",
"type": "string"
},
"device_id": {
"description": "Device identifier",
"type": "string"
},
"document": {
"description": "Document identifier",
"type": "string"
},
"metadata": {
"ref": "#syncMetadata",
"type": "ref"
},
"percentage": {
"description": "Reading progress as a decimal string (0-1, e.g. '0.42')",
"type": "string"
},
"progress": {
"description": "Reading progress position (KOSync format)",
"type": "string"
}
},
"required": [
"document",
"progress",
"percentage",
"device",
"device_id"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"status": {
"description": "Result status of the operation",
"type": "string"
}
},
"required": [
"status"
],
"type": "object"
}
},
"type": "procedure"
},
"syncMetadata": {
"description": "Optional metadata about the document being synced",
"properties": {
"authors": {
"description": "Authors of the document",
"type": "string"
},
"filename": {
"description": "Original filename of the document",
"type": "string"
},
"title": {
"description": "Title of the document",
"type": "string"
}
},
"type": "object"
}
},
"id": "buzz.bookhive.putSyncProgress",
"lexicon": 1
}