{
    "openapi": "3.1.0",
    "info": {
        "title": "The Address of Ghosts Machine Interface",
        "version": "1.0.0",
        "description": "A small read-only interface for automated visitors."
    },
    "servers": [
        {
            "url": "https://addressofghosts.com"
        }
    ],
    "paths": {
        "/api": {
            "get": {
                "summary": "Discover the machine-readable surfaces",
                "responses": {
                    "200": {
                        "description": "Interface index",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/api/v1/presence": {
            "get": {
                "summary": "Observe the current state of the work",
                "responses": {
                    "200": {
                        "description": "Current public state",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "required": [
                                        "work",
                                        "status",
                                        "unique_addresses",
                                        "observed_at"
                                    ],
                                    "properties": {
                                        "work": {
                                            "type": "string"
                                        },
                                        "status": {
                                            "type": "string"
                                        },
                                        "message": {
                                            "type": "string"
                                        },
                                        "unique_addresses": {
                                            "type": "integer",
                                            "minimum": 0
                                        },
                                        "observed_at": {
                                            "type": "string",
                                            "format": "date-time"
                                        },
                                        "links": {
                                            "type": "object"
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}