ink.resenha.shop.take

Requires the caller's service token. The first take of a version may take up to a minute while the server copies it from its source.

Repository @resenha.ink did:plc:v7itjf4h3sb5zuegiiskctqb not from the namespace authority
Details · procedure
Kindprocedure
Authorityshop.resenha.ink
Commit rev3n25adnswpv24
Indexed
cid bafyreiaq6exb3bxbprcqsoy3k5cskgaathionjowzay4um373fpxrgb35m

Checks

Valid
  • unlimited-string defs.main.output.schema.properties.sourceNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Requires the caller's service token. The first 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 taken 20 books today (UTC).",
          "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": "Get: a short-lived address for an edition's current file, which the app downloads, checks against contentCID and saves as an uploaded eBook. The server counts takes per edition without the account, and per account without the book.",
  "id": "ink.resenha.shop.take",
  "lexicon": 1
}