{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/algo-pw/json-schema/algo-pw-trust-row-schema.json",
  "title": "TrustRow",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/algo-pw-openapi.json#/components/schemas/TrustRow",
  "type": "object",
  "properties": {
    "targetId": {
      "type": "string",
      "format": "uuid"
    },
    "targetKind": {
      "type": "string"
    },
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "authorId": {
      "type": "string",
      "format": "uuid"
    },
    "interactionId": {
      "type": "string",
      "format": "uuid"
    },
    "context": {
      "type": "string"
    },
    "value": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "reason": {
      "type": "string"
    },
    "evidenceIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    },
    "visibility": {
      "type": "string"
    },
    "revoked": {
      "type": "boolean"
    },
    "version": {
      "pattern": "^-?(?:0|[1-9]\\d*)$",
      "type": [
        "integer",
        "string"
      ],
      "format": "int32"
    },
    "createdAt": {
      "format": "date-time"
    },
    "updatedAt": {
      "format": "date-time"
    }
  }
}