{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eon.io/json-schema/eon.io-design-partner-summary-schema.json",
  "title": "DesignPartnerSummary",
  "description": "An environment as the console records it (``DesignPartner.summary``).",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/console-era-openapi.json#/components/schemas/DesignPartnerSummary",
  "properties": {
    "tenant": {
      "type": "string",
      "title": "Tenant"
    },
    "owner": {
      "type": "string",
      "title": "Owner"
    },
    "industry": {
      "type": "string",
      "title": "Industry"
    },
    "size": {
      "type": "string",
      "title": "Size"
    },
    "model": {
      "type": "string",
      "title": "Model"
    },
    "connectors": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Connectors",
      "description": "The systems the company was ordered with."
    },
    "provisioned": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Provisioned",
      "description": "The systems it stands on, as of the fleet's last answer."
    },
    "created_at": {
      "type": "number",
      "title": "Created At",
      "description": "Epoch seconds."
    },
    "employees": {
      "type": "integer",
      "title": "Employees"
    },
    "customers": {
      "type": "integer",
      "title": "Customers"
    },
    "subset": {
      "anyOf": [
        {
          "$ref": "#/$defs/CompanySubset"
        },
        {
          "type": "null"
        }
      ],
      "description": "The fixed customer cohort's business predicates; null for the whole book."
    },
    "scenario": {
      "type": "string",
      "title": "Scenario",
      "description": "The overlay the company is living through, or empty."
    },
    "dataset": {
      "type": "string",
      "title": "Dataset",
      "description": "The corpus the company is, or empty for a modelled one."
    },
    "name": {
      "type": "string",
      "title": "Name",
      "description": "What the fleet named the company; empty until the fleet reports it."
    },
    "domain": {
      "type": "string",
      "title": "Domain"
    },
    "alias": {
      "type": "string",
      "title": "Alias"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Tags"
    },
    "labels": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object",
      "title": "Labels"
    },
    "expires_at": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Expires At",
      "description": "ISO 8601, UTC; null for an environment that does not expire."
    },
    "description": {
      "anyOf": [
        {
          "$ref": "#/$defs/CompanyDescription"
        },
        {
          "type": "null"
        }
      ],
      "description": "Absent where the company's axes have no written profile."
    }
  },
  "type": "object",
  "required": [
    "tenant",
    "owner",
    "industry",
    "size",
    "model",
    "connectors",
    "provisioned",
    "created_at",
    "employees",
    "customers",
    "subset",
    "scenario",
    "dataset",
    "name",
    "domain",
    "alias",
    "tags",
    "labels",
    "expires_at"
  ],
  "$defs": {
    "CompanyDescription": {
      "properties": {
        "summary": {
          "type": "string",
          "title": "Summary"
        },
        "sections": {
          "items": {
            "$ref": "#/$defs/CompanySection"
          },
          "type": "array",
          "title": "Sections"
        }
      },
      "type": "object",
      "required": [
        "summary",
        "sections"
      ],
      "title": "CompanyDescription",
      "description": "What the company is, faceted for the reader (``segments.describe``)."
    },
    "CompanySection": {
      "properties": {
        "label": {
          "type": "string",
          "title": "Label"
        },
        "lines": {
          "items": {
            "type": "string"
          },
          "type": "array",
          "title": "Lines"
        }
      },
      "type": "object",
      "required": [
        "label",
        "lines"
      ],
      "title": "CompanySection"
    },
    "CompanySubset": {
      "properties": {
        "count": {
          "type": "integer",
          "maximum": 200.0,
          "minimum": 1.0,
          "title": "Count"
        },
        "tier": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "enum": [
                  "smb",
                  "mid-market",
                  "enterprise"
                ]
              },
              "type": "array",
              "maxItems": 10,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Tier"
        },
        "region": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "enum": [
                  "EMEA",
                  "AMER",
                  "APAC"
                ]
              },
              "type": "array",
              "maxItems": 10,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Region"
        },
        "industry": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "enum": [
                  "SaaS",
                  "Fintech",
                  "Healthcare",
                  "Retail",
                  "Manufacturing",
                  "Media",
                  "Logistics"
                ]
              },
              "type": "array",
              "maxItems": 10,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Industry"
        },
        "lifecycle": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "enum": [
                  "prospect",
                  "active",
                  "dormant",
                  "churned",
                  "reactivated"
                ]
              },
              "type": "array",
              "maxItems": 10,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Lifecycle"
        },
        "ticket": {
          "anyOf": [
            {
              "$ref": "#/$defs/TicketSubset"
            },
            {
              "type": "null"
            }
          ]
        },
        "renewal": {
          "anyOf": [
            {
              "type": "string",
              "enum": [
                "this_quarter",
                "next_quarter"
              ]
            },
            {
              "$ref": "#/$defs/RenewalWithinDays"
            },
            {
              "type": "null"
            }
          ],
          "title": "Renewal"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "count"
      ],
      "title": "CompanySubset"
    },
    "RenewalWithinDays": {
      "properties": {
        "within_days": {
          "type": "integer",
          "minimum": 0.0,
          "title": "Within Days"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "within_days"
      ],
      "title": "RenewalWithinDays"
    },
    "TicketSubset": {
      "properties": {
        "priority": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "enum": [
                  "low",
                  "normal",
                  "high",
                  "urgent",
                  "p1",
                  "p2"
                ]
              },
              "type": "array",
              "maxItems": 10,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Priority"
        },
        "open": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Open"
        },
        "escalated": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Escalated"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "title": "TicketSubset"
    }
  }
}