~ knotless Search/
↑↓ move↵ open⇧↵ all results

socialweb.computer/socialweb-computer-kcp

socialweb.computer: a compute market on atproto (kcp)

1 collaborator
0
0
40 lines · 1.9 KB Raw History
{
  "lexicon": 1,
  "id": "com.publicdomainrelay.temp.market.submitBid",
  "defs": {
    "main": {
      "type": "procedure",
      "description": "A bidder submits a bid it wrote to the requester. Requires a service-auth JWT with lxm set to this NSID; the bidder is the token issuer.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["uri", "cid", "record"],
          "properties": {
            "uri": { "type": "string", "format": "at-uri", "description": "The market.bid record." },
            "cid": { "type": "string", "format": "cid" },
            "record": { "type": "ref", "ref": "com.publicdomainrelay.temp.market.bid", "description": "The market.bid record value." },
            "ingress": { "type": "array", "items": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "description": "The bidder's com.publicdomainrelay.temp.ingress.webRTC listen records for this call." }
          }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["ok"],
          "properties": {
            "ok": { "type": "boolean" },
            "ingress": { "type": "array", "items": { "type": "ref", "ref": "com.atproto.repo.strongRef" }, "description": "The requester's com.publicdomainrelay.temp.ingress.webRTC listen records for this call." }
          }
        }
      },
      "errors": [
        { "name": "InvalidRequest", "description": "400: the body is not JSON or the record is not a valid market.bid." },
        { "name": "Unauthorized", "description": "401: the service-auth token is missing or not valid for this method." },
        { "name": "Forbidden", "description": "403: the bid record is not in the token issuer's repo." },
        { "name": "Unavailable", "description": "503: the requester is starting, or it could not queue the bid." }
      ]
    }
  }
}