{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/jid-com/json-schema/jid-com-verify-response-schema.json",
  "title": "VerifyResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/jid-com-openapi.json#/components/schemas/VerifyResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "file_checked_at": {
      "type": "string"
    },
    "owner_status": {
      "type": "string"
    },
    "status": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "active",
            "attention",
            "inactive",
            "unknown"
          ]
        },
        "summary": {
          "type": "string"
        },
        "flags": {
          "type": "array",
          "items": {
            "type": "object"
          }
        },
        "rules_version": {
          "type": "string"
        }
      }
    },
    "identifiers": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        }
      }
    },
    "facts": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Fact"
      }
    },
    "not_in_sources": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "terms": {
      "type": "string"
    },
    "decision": {
      "$ref": "#/$defs/Decision"
    },
    "receipt": {
      "$ref": "#/$defs/Receipt"
    }
  },
  "$defs": {
    "Decision": {
      "type": "object",
      "properties": {
        "decision": {
          "type": "string",
          "enum": [
            "proceed",
            "review",
            "stop",
            "insufficient_data"
          ]
        },
        "activity": {
          "type": "string",
          "enum": [
            "general_commerce",
            "sell_prescription_drugs",
            "manufacture_drugs",
            "sell_medical_devices",
            "haul_freight",
            "broker_freight",
            "sell_alcohol",
            "produce_spirits",
            "provide_investment_advice",
            "accept_deposits",
            "lend",
            "bill_medicare_medicaid",
            "healthcare_supplier",
            "federal_contracting",
            "charitable_solicitation",
            "construction",
            "operate_psilocybin_healing_center"
          ]
        },
        "jurisdiction": {
          "type": [
            "string",
            "null"
          ]
        },
        "amount": {
          "type": [
            "number",
            "null"
          ]
        },
        "currency": {
          "type": [
            "string",
            "null"
          ]
        },
        "reasons": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Reason"
          }
        },
        "notes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "rules_version": {
          "type": "string"
        },
        "rules_url": {
          "type": "string"
        },
        "not_legal_advice": {
          "type": "string"
        },
        "receipt_id": {
          "type": "string"
        }
      }
    },
    "Fact": {
      "type": "object",
      "properties": {
        "predicate": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "value": {},
        "source": {
          "type": "object",
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "agency": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        },
        "source_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "observed_at": {
          "type": [
            "string",
            "null"
          ]
        },
        "verified_at": {
          "type": "string",
          "format": "date-time"
        },
        "next_check_at": {
          "type": "string",
          "format": "date-time"
        },
        "confidence": {
          "type": "string",
          "enum": [
            "high",
            "medium",
            "low"
          ]
        },
        "snapshot_sha256": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Reason": {
      "type": "object",
      "required": [
        "code",
        "requirement",
        "met",
        "fact_ids"
      ],
      "properties": {
        "code": {
          "type": "string"
        },
        "requirement": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "registration",
            "flag",
            "unheld"
          ]
        },
        "met": {
          "oneOf": [
            {
              "type": "boolean"
            },
            {
              "type": "string",
              "const": "unknown"
            }
          ]
        },
        "effect": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "stop",
            "review",
            null
          ]
        },
        "detail": {
          "type": "string"
        },
        "fact_ids": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "source": {
          "type": [
            "object",
            "null"
          ],
          "properties": {
            "id": {
              "type": "string"
            },
            "name": {
              "type": "string"
            },
            "agency": {
              "type": "string"
            }
          }
        },
        "source_url": {
          "type": [
            "string",
            "null"
          ]
        },
        "verified_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "fresh_until": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "authority": {
          "type": "string"
        }
      }
    },
    "Receipt": {
      "type": "object",
      "properties": {
        "receipt_id": {
          "type": "string"
        },
        "url": {
          "type": "string"
        },
        "statement": {
          "type": "object",
          "description": "Exactly what was signed: type, version, receipt_id, issued_at, issuer, entity, inputs, decision, rules_version, reasons (code, met, effect, fact_ids, source, verified_at, fresh_until), facts (id, predicate, source, value_sha256, verified_at), terms."
        },
        "signature": {
          "type": "object",
          "properties": {
            "alg": {
              "const": "Ed25519"
            },
            "kid": {
              "type": "string"
            },
            "canonicalization": {
              "const": "sorted-keys-json"
            },
            "sig": {
              "type": "string",
              "description": "base64url"
            }
          }
        },
        "verify": {
          "type": "string"
        }
      }
    }
  }
}