Snapvisor · Schema

Build

Build

Visual RegressionCI/CDOpen SourceSoftware-as-a-ServiceAI Integration

Properties

Name Type Description
id object
number object
head object The head reference of the build
base object The base reference of the build
status object The status of the build
conclusion object The conclusion of the build
autoApproved boolean True when the build ran on an auto-approved branch (by default the project's default base branch): it became the new baseline by itself and needs no review, even when `status` is `changes-detected`. F
creator object Who or what created the build, for telling an agent-created build from a CI or a person's. Null for a build created before this was recorded: it is not guessed.
stats object Stats of the diffs present in the build
metadata object
url string The URL of the build
notification object The notification payload for the build
View JSON Schema on GitHub

JSON Schema

snapvisor-io-build-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/snapvisor-io/json-schema/snapvisor-io-build-schema.json",
  "title": "Build",
  "description": "Build",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/snapvisor-io-openapi.yml#/components/schemas/Build",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/BuildId"
    },
    "number": {
      "$ref": "#/$defs/BuildNumber"
    },
    "head": {
      "description": "The head reference of the build",
      "$ref": "#/$defs/BuildGitReference"
    },
    "base": {
      "anyOf": [
        {
          "$ref": "#/$defs/BuildGitReference"
        },
        {
          "type": "null"
        }
      ],
      "description": "The base reference of the build"
    },
    "status": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "accepted",
            "rejected"
          ]
        },
        {
          "type": "string",
          "enum": [
            "no-changes",
            "changes-detected"
          ]
        },
        {
          "type": "string",
          "enum": [
            "expired",
            "pending",
            "progress",
            "error",
            "aborted"
          ]
        }
      ],
      "description": "The status of the build"
    },
    "conclusion": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "no-changes",
            "changes-detected"
          ]
        },
        {
          "type": "null"
        }
      ],
      "description": "The conclusion of the build"
    },
    "autoApproved": {
      "type": "boolean",
      "description": "True when the build ran on an auto-approved branch (by default the project's default base branch): it became the new baseline by itself and needs no review, even when `status` is `changes-detected`. False until the build is processed."
    },
    "creator": {
      "anyOf": [
        {
          "$ref": "#/$defs/BuildCreator"
        },
        {
          "type": "null"
        }
      ],
      "description": "Who or what created the build, for telling an agent-created build from a CI or a person's. Null for a build created before this was recorded: it is not guessed."
    },
    "stats": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "added": {
              "type": "number",
              "description": "Added snapshots"
            },
            "removed": {
              "type": "number",
              "description": "Removed snapshots"
            },
            "unchanged": {
              "type": "number",
              "description": "Unchanged snapshots"
            },
            "changed": {
              "type": "number",
              "description": "Changed snapshots"
            },
            "ignored": {
              "type": "number",
              "description": "Ignored snapshots"
            },
            "failure": {
              "type": "number",
              "description": "Failure screenshots"
            },
            "retryFailure": {
              "type": "number",
              "description": "Retry failure screenshots"
            },
            "total": {
              "type": "number",
              "description": "Total number of snapshots"
            }
          },
          "required": [
            "added",
            "removed",
            "unchanged",
            "changed",
            "ignored",
            "failure",
            "retryFailure",
            "total"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "Stats of the diffs present in the build"
    },
    "metadata": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "testReport": {
              "description": "Test suite report",
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "passed",
                    "failed",
                    "timedout",
                    "interrupted"
                  ],
                  "description": "Status of the test suite"
                },
                "stats": {
                  "type": "object",
                  "properties": {
                    "startTime": {
                      "description": "Date when the test suite started",
                      "type": "string"
                    },
                    "duration": {
                      "description": "Duration of the test suite in milliseconds",
                      "type": "number"
                    }
                  },
                  "additionalProperties": false
                }
              },
              "required": [
                "status"
              ],
              "additionalProperties": false
            }
          },
          "additionalProperties": false,
          "description": "Metadata associated to the build"
        },
        {
          "type": "null"
        }
      ]
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "The URL of the build"
    },
    "notification": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "description": {
              "type": "string"
            },
            "context": {
              "type": "string"
            },
            "github": {
              "type": "object",
              "properties": {
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "success",
                    "error",
                    "failure"
                  ]
                }
              },
              "required": [
                "state"
              ],
              "additionalProperties": false
            },
            "gitlab": {
              "type": "object",
              "properties": {
                "state": {
                  "type": "string",
                  "enum": [
                    "pending",
                    "running",
                    "success",
                    "failed",
                    "canceled"
                  ]
                }
              },
              "required": [
                "state"
              ],
              "additionalProperties": false
            },
            "origin": {
              "type": "object",
              "properties": {
                "status": {
                  "type": "string",
                  "enum": [
                    "queued",
                    "in_progress",
                    "completed"
                  ]
                },
                "conclusion": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "success",
                        "failure"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "status",
                "conclusion"
              ],
              "additionalProperties": false
            },
            "url": {
              "type": "string",
              "format": "uri"
            }
          },
          "required": [
            "description",
            "context",
            "github",
            "gitlab",
            "origin",
            "url"
          ],
          "additionalProperties": false
        },
        {
          "type": "null"
        }
      ],
      "description": "The notification payload for the build"
    }
  },
  "required": [
    "id",
    "number",
    "head",
    "base",
    "status",
    "conclusion",
    "autoApproved",
    "creator",
    "stats",
    "metadata",
    "url",
    "notification"
  ],
  "additionalProperties": false,
  "$defs": {
    "Agent": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Stable id of the agent, e.g. `claude-code`. `unknown` when it could not be identified."
        },
        "name": {
          "description": "Name to display, e.g. `Claude Code`. Null for an agent we cannot name.",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "id",
        "name"
      ],
      "additionalProperties": false,
      "description": "A coding agent acting on behalf of a user."
    },
    "BuildCreator": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "ci",
            "agent",
            "user"
          ],
          "description": "Who created the build: `ci` (a project token: CI, tokenless or OIDC), `agent` (a coding agent, over the MCP server or reporting itself as one) or `user` (a person's own call: the web app, or a personal token with no agent marker). Self-reported by the caller, so not proof of who it was."
        },
        "agent": {
          "anyOf": [
            {
              "$ref": "#/$defs/Agent"
            },
            {
              "type": "null"
            }
          ],
          "description": "The coding agent that created the build. Set exactly when `kind` is `agent`; `unknown` as its id when the agent could not be identified."
        }
      },
      "required": [
        "kind",
        "agent"
      ],
      "additionalProperties": false,
      "description": "Who or what created a build."
    },
    "BuildGitReference": {
      "type": "object",
      "properties": {
        "sha": {
          "description": "The commit SHA",
          "$ref": "#/$defs/Sha1Hash"
        },
        "branch": {
          "type": "string",
          "description": "The branch name"
        }
      },
      "required": [
        "sha",
        "branch"
      ],
      "additionalProperties": false,
      "description": "Git reference"
    },
    "BuildId": {
      "type": "string",
      "description": "A unique identifier for the build"
    },
    "BuildNumber": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991,
      "description": "The build number"
    },
    "Sha1Hash": {
      "type": "string",
      "pattern": "^[0-9a-f]{40}$",
      "description": "SHA1 hash"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/snapvisor-io-build"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.