{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/argus-town/json-schema/argus-town-project-schema.json",
  "title": "Project",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/argus-town-project-api-openapi.yml#/components/schemas/Project",
  "type": "object",
  "required": [
    "object",
    "id",
    "name",
    "created_at",
    "key",
    "permissions",
    "plan",
    "next_steps"
  ],
  "properties": {
    "object": {
      "type": "string",
      "enum": [
        "project"
      ]
    },
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    },
    "key": {
      "type": "object",
      "required": [
        "object",
        "id",
        "type",
        "name",
        "prefix"
      ],
      "properties": {
        "object": {
          "type": "string",
          "enum": [
            "key"
          ]
        },
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "api"
          ]
        },
        "name": {
          "type": "string"
        },
        "prefix": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "permissions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Operation ids this key may call."
    },
    "plan": {
      "type": "object",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      },
      "additionalProperties": true
    },
    "next_steps": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NextStepItem"
      }
    }
  },
  "additionalProperties": true,
  "$defs": {
    "NextStepItem": {
      "type": "object",
      "required": [
        "rel",
        "method",
        "href",
        "why"
      ],
      "properties": {
        "rel": {
          "type": "string"
        },
        "method": {
          "type": "string"
        },
        "href": {
          "type": "string"
        },
        "why": {
          "type": "string"
        }
      },
      "additionalProperties": true
    }
  }
}