{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "カードをおすそわけボードに置き、Ƶ を受け取る。手元に3枚を残し、ゼンカツでお休み中の在庫には手を付けない。mode=all は置けるぶんをすべて置く。置いたカードは取り下げられない。要認証。",
      "errors": [
        {
          "name": "AuthRequired"
        },
        {
          "name": "not_donatable"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "card": {
              "description": "mode=single のとき必須。{ volume, id }。",
              "type": "unknown"
            },
            "mode": {
              "knownValues": [
                "all",
                "single"
              ],
              "type": "string"
            },
            "quantity": {
              "description": "mode=single の枚数。省略時は1。置ける枚数を超えたらエラー。",
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "mode"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "balance": {
              "type": "integer"
            },
            "donated": {
              "description": "置いたカードごとの { volume, id, rarity, quantity, zenny }。図鑑順。演出の並びに使う。",
              "items": {
                "type": "unknown"
              },
              "type": "array"
            },
            "earned": {
              "type": "integer"
            }
          },
          "required": [
            "donated",
            "earned",
            "balance"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.suibari.nagi.donateCards",
  "lexicon": 1
}
