com.suibari.nagi.drawCard

全肯定カードを1枚引く。my Nagiの通常枠と他ユーザーへのリアクション枠を1日各1回利用できる(JST 4:00 が日付境界)。同じ枠を既に引いている場合は、そのカードをそのまま返す(冪等)。抽選はサーバ側で行う。source=anniversary は抽選ではなく、その日が記念日の人へ未受領ぶんを一括で配る(同じ記念日は1年に1枚)。

Repository @suibari.com did:plc:uixgxpiqf4i63p6rgpu7ytmx namespace authority
Details · procedure
Kindprocedure
Authoritynagi.suibari.com
Indexed
cid bafyreibgmer6i234oxyhptl4nobfar2by57xpnldye3od7foofrsrrt5n4

Checks

Valid
  • unlimited-string defs.main.input.schema.properties.guestTokenNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.input.schema.properties.sourceNo maxLength, maxGraphemes or format limits this string.
  • unlimited-string defs.main.output.schema.properties.sourceNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "全肯定カードを1枚引く。my Nagiの通常枠と他ユーザーへのリアクション枠を1日各1回利用できる(JST 4:00 が日付境界)。同じ枠を既に引いている場合は、そのカードをそのまま返す(冪等)。抽選はサーバ側で行う。source=anniversary は抽選ではなく、その日が記念日の人へ未受領ぶんを一括で配る(同じ記念日は1年に1枚)。",
      "errors": [
        {
          "name": "AuthRequired"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "guestToken": {
              "description": "未サインイン中に同日引いた通常枠を引き継ぐ端末秘密。source=my_nagi のときだけ利用できる。",
              "type": "string"
            },
            "reactionUri": {
              "description": "source=reaction のとき必須。本人が当日作成した他ユーザー宛てリアクション。",
              "format": "at-uri",
              "type": "string"
            },
            "source": {
              "description": "省略時は後方互換のためmy_nagi。anniversary は記念日カードの受け取りで、抽選枠を消費しない。",
              "knownValues": [
                "my_nagi",
                "reaction",
                "anniversary"
              ],
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "alreadyDrawn": {
              "description": "true なら本日は既に引き済みで、返しているのはそのカード。",
              "type": "boolean"
            },
            "card": {
              "description": "引いたカード(定義 + 所持情報)。botたんコメントは非同期生成なので初回は空。",
              "type": "unknown"
            },
            "cards": {
              "description": "source=anniversary のみ。同日に複数の記念日が重なることがあるので今回受け取ったぶんを全部返す。card はこの先頭と同じ。",
              "items": {
                "type": "unknown"
              },
              "type": "array"
            },
            "commentPending": {
              "description": "true の間は botたんコメントを生成中。クライアントは getCards で取り直す。",
              "type": "boolean"
            },
            "drawStatus": {
              "type": "unknown"
            },
            "isNew": {
              "description": "コレクション初登場なら true。既に持っているカードなら false。",
              "type": "boolean"
            },
            "source": {
              "knownValues": [
                "my_nagi",
                "reaction",
                "anniversary"
              ],
              "type": "string"
            }
          },
          "required": [
            "card",
            "source",
            "alreadyDrawn",
            "drawStatus"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "com.suibari.nagi.drawCard",
  "lexicon": 1
}