ink.resenha.shop.sample
Requires the caller's service token. The first sample or take of a version may take up to a minute while the server copies it from its source.
Details · procedure
| Kind | procedure |
|---|---|
| Authority | shop.resenha.ink |
| Commit rev | 3n25admy2zu2s |
| Indexed |
Checks
Validunlimited-stringdefs.main.output.schema.properties.sourceNo maxLength, maxGraphemes or format limits this string.
{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"description": "Requires the caller's service token. The first sample or take of a version may take up to a minute while the server copies it from its source.",
"errors": [
{
"description": "The Shop is paused.",
"name": "ShopOff"
},
{
"description": "The account has opened 30 samples today (UTC). Takes have their own cap.",
"name": "DailyCap"
},
{
"description": "The Shop has copied all it may from its sources today.",
"name": "SourceBusy"
},
{
"description": "The source refused or the file didn't arrive.",
"name": "SourceFailed"
},
{
"description": "No such edition, or it is hidden.",
"name": "NotFound"
}
],
"input": {
"encoding": "application/json",
"schema": {
"properties": {
"edition": {
"maxLength": 128,
"type": "string"
}
},
"required": [
"edition"
],
"type": "object"
}
},
"output": {
"encoding": "application/json",
"schema": {
"properties": {
"contentCID": {
"description": "CIDv1 (raw, sha2-256, base32) of the file's bytes.",
"maxLength": 128,
"type": "string"
},
"expiresAt": {
"format": "datetime",
"type": "string"
},
"filename": {
"maxLength": 256,
"type": "string"
},
"id": {
"maxLength": 128,
"type": "string"
},
"size": {
"minimum": 0,
"type": "integer"
},
"source": {
"knownValues": [
"se",
"pg"
],
"type": "string"
},
"url": {
"description": "Pre-signed; good for 15 minutes.",
"format": "uri",
"type": "string"
},
"version": {
"maxLength": 64,
"type": "string"
}
},
"required": [
"url",
"expiresAt",
"size",
"contentCID",
"version",
"source",
"id",
"filename"
],
"type": "object"
}
},
"type": "procedure"
}
},
"description": "Sample: a short-lived address for an edition's current file, the same one shop.take hands out, which the app downloads to a temporary file, checks against contentCID, opens at its first pages and discards. Nothing is added to the account. The server counts samples per account without the book, apart from takes, and counts no edition.",
"id": "ink.resenha.shop.sample",
"lexicon": 1
}