{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/graphiant/main/json-schema/graphiant-v1-audit-logs-post-response-schema.json",
  "title": "v1AuditLogsPostResponse",
  "x-generated": "2026-10-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/graphiant-audit-api-openapi.yml#/components/schemas/v1AuditLogsPostResponse",
  "type": "object",
  "properties": {
    "cursorRef": {
      "type": "string"
    },
    "histogram": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/auditmonHistogram"
      }
    },
    "logs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/auditAuditEntry"
      }
    },
    "totalLogs": {
      "type": "integer",
      "format": "int64",
      "minimum": 0
    }
  },
  "additionalProperties": false,
  "$defs": {
    "auditAuditEntry": {
      "type": "object",
      "properties": {
        "activity": {
          "type": "string"
        },
        "actor": {
          "type": "string"
        },
        "category": {
          "type": "string"
        },
        "end": {
          "$ref": "#/$defs/googleProtobufTimestamp"
        },
        "failedTargetResults": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/auditTargetResult"
          }
        },
        "info": {
          "type": "string"
        },
        "reason": {
          "type": "string"
        },
        "service": {
          "type": "string"
        },
        "start": {
          "$ref": "#/$defs/googleProtobufTimestamp"
        },
        "status": {
          "type": "string"
        },
        "targets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/auditTargetResult"
          }
        }
      },
      "additionalProperties": false
    },
    "auditTarget": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64",
          "minimum": 0
        },
        "name": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "auditTargetResult": {
      "type": "object",
      "properties": {
        "reason": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "target": {
          "$ref": "#/$defs/auditTarget"
        }
      },
      "additionalProperties": false
    },
    "auditmonHistogram": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "format": "int32",
          "minimum": 0
        },
        "ts": {
          "$ref": "#/$defs/googleProtobufTimestamp"
        }
      },
      "additionalProperties": false
    },
    "googleProtobufTimestamp": {
      "type": "object",
      "properties": {
        "nanos": {
          "type": "integer",
          "format": "int32"
        },
        "seconds": {
          "type": "integer",
          "format": "int64"
        }
      },
      "additionalProperties": false
    }
  }
}