{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/run402-com/json-schema/run402-com-app-repo-commit-list-schema.json",
  "title": "AppRepoCommitList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/run402-com-app-repos-api-openapi.yml#/components/schemas/AppRepoCommitList",
  "type": "object",
  "required": [
    "commits",
    "head",
    "has_more",
    "next_cursor"
  ],
  "properties": {
    "commits": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AppRepoCommit"
      },
      "description": "Newest first."
    },
    "head": {
      "type": [
        "string",
        "null"
      ]
    },
    "has_more": {
      "type": "boolean"
    },
    "next_cursor": {
      "type": [
        "string",
        "null"
      ],
      "description": "Opaque `arc_…` cursor for the next (older) page."
    },
    "reset": {
      "type": "boolean",
      "description": "Present (true) when the cursor sent was unusable: start again without one."
    }
  },
  "$defs": {
    "AppRepoCommit": {
      "type": "object",
      "description": "One commit on main's first-parent history.",
      "required": [
        "commit",
        "parent",
        "seq",
        "author",
        "committer",
        "message",
        "committed_at",
        "paths",
        "paths_total",
        "actor_user_id"
      ],
      "properties": {
        "commit": {
          "type": "string",
          "description": "40-hex SHA-1 commit id."
        },
        "parent": {
          "type": [
            "string",
            "null"
          ],
          "description": "First parent; null for the root commit."
        },
        "seq": {
          "type": "integer"
        },
        "author": {
          "$ref": "#/$defs/AppRepoPerson"
        },
        "committer": {
          "$ref": "#/$defs/AppRepoPerson"
        },
        "message": {
          "type": "string"
        },
        "committed_at": {
          "type": "string",
          "format": "date-time"
        },
        "paths": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Changed paths relative to the first parent, at most 100."
        },
        "paths_total": {
          "type": "integer",
          "description": "Exact number of changed paths."
        },
        "actor_user_id": {
          "type": [
            "string",
            "null"
          ],
          "description": "The end user the gateway verified from the request's data-plane actor token (also the `Run402-Actor` trailer); null when none was verified (and for pushed commits)."
        }
      }
    },
    "AppRepoPerson": {
      "type": "object",
      "required": [
        "name",
        "email"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "email": {
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  }
}