{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agentdrives-com/json-schema/agentdrives-com-directory-place-schema.json",
  "title": "DirectoryPlace",
  "description": "Where a product stands in our directory, as its owner sees it: audited (a valid certificate, until its date), in_audit (an Audit year runs, shown since its date), hidden (an Audit runs, kept private until it is Audited), lapsed (its certificate ended on until, as ended says), none (not in the directory)",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agentdrives-com-claims-api-openapi.yml#/components/schemas/DirectoryPlace",
  "type": "object",
  "required": [
    "state",
    "since",
    "until"
  ],
  "properties": {
    "state": {
      "enum": [
        "audited",
        "in_audit",
        "hidden",
        "lapsed",
        "none"
      ]
    },
    "since": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "until": {
      "type": [
        "string",
        "null"
      ],
      "format": "date"
    },
    "order_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Your running Audit the switch acts on (POST /api/claims/{id}/directory)"
    },
    "listed": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether that Audit shows as In Audit"
    },
    "ended": {
      "enum": [
        "lapsed",
        "withdrawn",
        "expired"
      ],
      "description": "state lapsed: how the certificate ended (lapsed: a lower level and no fix in time; withdrawn: we took it back; expired: its year ran out)"
    }
  }
}