{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scoopkit-dev/json-schema/scoopkit-dev-verify-confirm-result-schema.json",
  "title": "VerifyConfirmResult",
  "description": "Result of actually consuming a magic-link token (POST /v1/auth/verify/confirm).\n\n`status` drives which other fields are populated:\n- \"minted\": plaintext_key + email are set. The key is shown exactly once — no\n  endpoint can ever retrieve it again after this response.\n- \"already_issued\": email + key_hint are set (plaintext_key is never re-shown).\n- \"invalid\" | \"used\" | \"expired\": no other fields are set.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scoopkit-dev-openapi.json#/components/schemas/VerifyConfirmResult",
  "properties": {
    "status": {
      "type": "string",
      "enum": [
        "minted",
        "already_issued",
        "invalid",
        "used",
        "expired"
      ],
      "title": "Status"
    },
    "plaintext_key": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Plaintext Key"
    },
    "email": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Email"
    },
    "key_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Key Id"
    },
    "key_hint": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Key Hint"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "status"
  ]
}