{
 "openapi": "3.0.3",
 "info": {
  "title": "PetSpace API",
  "version": "1.0.0",
  "description": "Photos of a home space in, an evidence-labelled pet-safety and comfort report out: hazards ruled per species, five scores and a budget-checked plan of reversible changes, all computed and re-verified in code. A guide, not an inspection or a safety certificate. Only POST /analyses is billed, after success."
 },
 "servers": [
  {
   "url": "https://petspace.sensifai.com"
  }
 ],
 "security": [
  {
   "ApiKey": []
  },
  {
   "Bearer": []
  }
 ],
 "paths": {
  "/api/v1/meta": {
   "get": {
    "summary": "The closed vocabularies",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Meta"
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/preview": {
   "post": {
    "summary": "Free photo preview (quality and light, no AI, never billed)",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/PreviewRequest"
       }
      },
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "photo": {
          "type": "array",
          "items": {
           "type": "string",
           "format": "binary"
          },
          "maxItems": 3
         }
        }
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Preview"
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "415": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "422": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/analyses": {
   "post": {
    "summary": "Start an analysis (billed once delivered)",
    "description": "Photos the model cannot use, a photo with no space in it and any failure bill nothing; one unit is billed under the identifier minted here, only after success.",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/StartRequest"
       }
      },
      "multipart/form-data": {
       "schema": {
        "type": "object",
        "properties": {
         "photo": {
          "type": "array",
          "items": {
           "type": "string",
           "format": "binary"
          },
          "maxItems": 3
         },
         "space_id": {
          "type": "string"
         },
         "space_kind": {
          "type": "string"
         },
         "pet": {
          "type": "array",
          "items": {
           "type": "string"
          },
          "description": "one JSON object per pet, e.g. {\"species\":\"dog\",\"size\":\"large\",\"age\":\"senior\",\"mobility\":\"limited\"}"
         },
         "pets": {
          "type": "string",
          "description": "alternatively, one JSON array of pets"
         },
         "activity": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "restriction": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "budget_eur": {
          "type": "integer"
         },
         "width_cm": {
          "type": "integer"
         },
         "length_cm": {
          "type": "integer"
         },
         "height_cm": {
          "type": "integer"
         },
         "language": {
          "type": "string"
         }
        }
       }
      }
     }
    },
    "responses": {
     "202": {
      "description": "Accepted",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Accepted"
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "402": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "403": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "422": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "429": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "get": {
    "summary": "List analyses",
    "parameters": [
     {
      "name": "limit",
      "in": "query",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "offset",
      "in": "query",
      "schema": {
       "type": "integer"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AnalysisSummary"
         }
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/analyses/{id}": {
   "get": {
    "summary": "One analysis, with the whole report",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/AnalysisView"
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   },
   "delete": {
    "summary": "Delete an analysis (its result, thumbnail, history row and checklist steps)",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "204": {
      "description": "Deleted"
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/analyses/{id}/replan": {
   "post": {
    "summary": "What if? Recompute for edited items or changed facts (free, not stored)",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ReplanRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Report"
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "422": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/analyses/{id}/confirm": {
   "post": {
    "summary": "Confirm what a photo cannot show: plant names, storage answers, acknowledged questions (free, stored)",
    "description": "Recomputes the report in code and stores it. A plant name makes the item user_confirmed; it never turns a finding into a safety claim.",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/ConfirmRequest"
       }
      }
     }
    },
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Report"
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "422": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/jobs/{id}": {
   "get": {
    "summary": "Poll a job",
    "parameters": [
     {
      "name": "id",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "$ref": "#/components/schemas/Job"
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "404": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/history": {
   "get": {
    "summary": "Weekly averages, hazard and tag counts, spaces over time",
    "parameters": [
     {
      "name": "days",
      "in": "query",
      "schema": {
       "type": "integer"
      }
     },
     {
      "name": "space_kind",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "space_id",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     },
     "422": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  },
  "/api/v1/spaces": {
   "get": {
    "summary": "The saved spaces",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/Space"
         }
        }
       }
      }
     },
     "401": {
      "description": "Problem",
      "content": {
       "application/problem+json": {
        "schema": {
         "$ref": "#/components/schemas/Problem"
        }
       }
      }
     }
    }
   }
  }
 },
 "components": {
  "securitySchemes": {
   "ApiKey": {
    "type": "apiKey",
    "in": "header",
    "name": "X-API-Key"
   },
   "Bearer": {
    "type": "http",
    "scheme": "bearer"
   }
  },
  "schemas": {
   "Problem": {
    "type": "object",
    "properties": {
     "type": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "status": {
      "type": "integer"
     },
     "detail": {
      "type": "string"
     },
     "code": {
      "type": "string"
     },
     "timestamp": {
      "type": "integer"
     },
     "errors": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "field": {
         "type": "string"
        },
        "message": {
         "type": "string"
        }
       }
      }
     }
    }
   },
   "Dims": {
    "type": "object",
    "properties": {
     "width_cm": {
      "type": "integer",
      "minimum": 100,
      "maximum": 2000
     },
     "length_cm": {
      "type": "integer",
      "minimum": 100,
      "maximum": 2000
     },
     "height_cm": {
      "type": "integer",
      "description": "optional, 100 to 2000"
     }
    },
    "required": [
     "width_cm",
     "length_cm"
    ],
    "description": "The customer's own measurements in cm. Never read from a photo."
   },
   "PetProfile": {
    "type": "object",
    "properties": {
     "species": {
      "type": "string",
      "enum": [
       "cat",
       "dog",
       "rabbit"
      ]
     },
     "size": {
      "type": "string",
      "enum": [
       "small",
       "medium",
       "large"
      ],
      "description": "dogs and rabbits only; omit for cats"
     },
     "age": {
      "type": "string",
      "enum": [
       "young",
       "adult",
       "senior"
      ]
     },
     "mobility": {
      "type": "string",
      "enum": [
       "full",
       "reduced",
       "limited"
      ]
     }
    },
    "required": [
     "species",
     "age",
     "mobility"
    ]
   },
   "Meta": {
    "type": "object",
    "properties": {
     "space_kinds": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        }
       }
      }
     },
     "activities": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "asks": {
         "type": "string"
        }
       }
      }
     },
     "restrictions": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        }
       }
      }
     },
     "species": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "needs_size": {
         "type": "boolean"
        }
       }
      }
     },
     "sizes": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        }
       }
      }
     },
     "ages": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        }
       }
      }
     },
     "mobilities": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "note": {
         "type": "string"
        }
       }
      }
     },
     "kinds": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "group": {
         "type": "string"
        },
        "reach": {
         "type": "string"
        },
        "not_verifiable": {
         "type": "boolean"
        },
        "hazard": {
         "type": "boolean"
        },
        "species": {
         "type": "array",
         "items": {
          "type": "string"
         }
        }
       }
      }
     },
     "tags": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "dimension": {
         "type": "string"
        }
       }
      }
     },
     "zones": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        }
       }
      }
     },
     "dimensions": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "weight": {
         "type": "number"
        }
       }
      }
     },
     "risks": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        },
        "rank": {
         "type": "integer"
        }
       }
      }
     },
     "languages": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "id": {
         "type": "string"
        },
        "label": {
         "type": "string"
        }
       }
      }
     },
     "checklist_statuses": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "max_photos": {
      "type": "integer"
     },
     "max_pets": {
      "type": "integer"
     },
     "emergency": {
      "type": "object"
     },
     "plants": {
      "type": "object",
      "properties": {
       "note": {
        "type": "string"
       },
       "reference_url": {
        "type": "string"
       }
      }
     }
    },
    "description": "The closed vocabularies the request values come from."
   },
   "PreviewRequest": {
    "type": "object",
    "properties": {
     "photos": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "minItems": 1,
      "maxItems": 3,
      "description": "base64 JPEG or PNG (data: URLs accepted)"
     }
    },
    "required": [
     "photos"
    ]
   },
   "Preview": {
    "type": "object",
    "properties": {
     "image_quality": {
      "type": "object"
     },
     "photo_quality": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "measured": {
      "type": "object",
      "properties": {
       "photos": {
        "type": "integer"
       },
       "brightness": {
        "type": "number"
       },
       "dark_share": {
        "type": "number"
       },
       "glare_share": {
        "type": "number"
       },
       "busyness": {
        "type": "number"
       },
       "sharpness": {
        "type": "number"
       }
      }
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "thumbnail": {
      "type": "string",
      "description": "base64 JPEG, at most 640 px"
     }
    }
   },
   "StartRequest": {
    "type": "object",
    "properties": {
     "photos": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "minItems": 1,
      "maxItems": 3
     },
     "space_id": {
      "type": "string",
      "description": "a saved space; fills what is omitted"
     },
     "space_kind": {
      "type": "string"
     },
     "pets": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PetProfile"
      },
      "minItems": 1,
      "maxItems": 4
     },
     "activities": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "budget_eur": {
      "type": "integer",
      "minimum": 0,
      "maximum": 20000
     },
     "dims": {
      "$ref": "#/components/schemas/Dims"
     },
     "restrictions": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "language": {
      "type": "string"
     }
    },
    "required": [
     "photos"
    ]
   },
   "Accepted": {
    "type": "object",
    "properties": {
     "job_id": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "poll": {
      "type": "string"
     }
    }
   },
   "Job": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "status": {
      "type": "string",
      "enum": [
       "queued",
       "running",
       "succeeded",
       "failed"
      ]
     },
     "analysis_id": {
      "type": "string"
     },
     "space_kind": {
      "type": "string"
     },
     "error": {
      "type": "string"
     },
     "created_at": {
      "type": "string",
      "format": "date-time"
     }
    }
   },
   "AnalysisSummary": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "status": {
      "type": "string"
     },
     "created_at": {
      "type": "string",
      "format": "date-time"
     },
     "space_id": {
      "type": "string"
     },
     "space_kind": {
      "type": "string"
     },
     "space_label": {
      "type": "string"
     },
     "species": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "overall": {
      "type": "integer"
     },
     "safety": {
      "type": "integer",
      "description": "-1 when safety did not apply"
     },
     "act_open": {
      "type": "integer"
     },
     "review_open": {
      "type": "integer"
     },
     "steps": {
      "type": "integer"
     },
     "plan_min_eur": {
      "type": "integer"
     },
     "plan_max_eur": {
      "type": "integer"
     },
     "budget_eur": {
      "type": "integer"
     },
     "partial": {
      "type": "boolean"
     },
     "error": {
      "type": "string"
     },
     "has_thumbnail": {
      "type": "boolean"
     },
     "units": {
      "type": "integer"
     }
    }
   },
   "Report": {
    "type": "object",
    "properties": {
     "version": {
      "type": "string"
     },
     "context": {
      "type": "object",
      "properties": {
       "space": {
        "type": "string"
       },
       "pets": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/PetProfile"
        }
       },
       "activities": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "budget_eur": {
        "type": "integer"
       },
       "dims": {
        "$ref": "#/components/schemas/Dims"
       },
       "restrictions": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      }
     },
     "items": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "observations": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "findings": {
      "type": "array",
      "items": {
       "type": "object",
       "description": "id, item_id, kind, title, count, risk (note|review|act), status (observed|possible|user_confirmed|not_verifiable), why, species, resolved"
      }
     },
     "scores": {
      "type": "object",
      "description": "overall and five dimensions (safety, enrichment, access, zones, calm) with evidence; a dimension that did not apply has applicable=false"
     },
     "checks": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "ok": {
         "type": "boolean"
        },
        "detail": {
         "type": "string"
        }
       }
      }
     },
     "plan_checks": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        },
        "ok": {
         "type": "boolean"
        },
        "detail": {
         "type": "string"
        }
       }
      }
     },
     "checks_passed": {
      "type": "boolean"
     },
     "plan": {
      "type": "object",
      "description": "steps with a cost range, tier (fits|may_fit|later), the findings each resolves; budget; dropped proposals"
     },
     "priorities": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "questions": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "not_inspected": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "advisories": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "zones": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "shopping_list": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "measurement_requests": {
      "type": "array",
      "items": {
       "type": "object"
      }
     },
     "sitter": {
      "type": "object"
     },
     "emergency": {
      "type": "object"
     },
     "summary": {
      "type": "string"
     },
     "partial": {
      "type": "boolean"
     },
     "notes": {
      "type": "array",
      "items": {
       "type": "string"
      }
     }
    },
    "description": "docs/ANALYST_RESULT.md lists every field. Money is always a range; a photo is never proof of safety."
   },
   "AnalysisView": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "created_at": {
      "type": "string",
      "format": "date-time"
     },
     "space_id": {
      "type": "string"
     },
     "result": {
      "$ref": "#/components/schemas/Report"
     },
     "has_thumbnail": {
      "type": "boolean"
     },
     "units": {
      "type": "integer"
     },
     "cost_eur": {
      "type": "number"
     },
     "source": {
      "type": "string"
     }
    }
   },
   "ReplanRequest": {
    "type": "object",
    "properties": {
     "items": {
      "type": "array",
      "items": {
       "type": "object"
      },
      "description": "the full item list as the customer sees it (id, kind, count, zone, label, answer); omit to keep the items"
     },
     "context": {
      "type": "object",
      "properties": {
       "space_kind": {
        "type": "string"
       },
       "pets": {
        "type": "array",
        "items": {
         "$ref": "#/components/schemas/PetProfile"
        }
       },
       "activities": {
        "type": "array",
        "items": {
         "type": "string"
        }
       },
       "budget_eur": {
        "type": "integer"
       },
       "dims": {
        "$ref": "#/components/schemas/Dims"
       },
       "clear_dims": {
        "type": "boolean"
       },
       "restrictions": {
        "type": "array",
        "items": {
         "type": "string"
        }
       }
      }
     }
    }
   },
   "ConfirmRequest": {
    "type": "object",
    "properties": {
     "plants": {
      "type": "object",
      "additionalProperties": {
       "type": "string"
      },
      "description": "houseplant item id -> the name the customer gives it (empty clears it)"
     },
     "storage": {
      "type": "object",
      "additionalProperties": {
       "type": "boolean"
      },
      "description": "cleaning-products or medicine item id -> stored out of reach"
     },
     "clear": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "item ids whose storage answer is taken back"
     },
     "acknowledge": {
      "type": "array",
      "items": {
       "type": "string"
      },
      "description": "question ids (q1...) or \"all\""
     }
    }
   },
   "Space": {
    "type": "object",
    "properties": {
     "id": {
      "type": "string"
     },
     "name": {
      "type": "string"
     },
     "space_kind": {
      "type": "string"
     },
     "pets": {
      "type": "array",
      "items": {
       "$ref": "#/components/schemas/PetProfile"
      }
     },
     "activities": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "budget_eur": {
      "type": "integer"
     },
     "dims": {
      "$ref": "#/components/schemas/Dims"
     },
     "restrictions": {
      "type": "array",
      "items": {
       "type": "string"
      }
     },
     "created_at": {
      "type": "string",
      "format": "date-time"
     },
     "updated_at": {
      "type": "string",
      "format": "date-time"
     }
    }
   }
  }
 }
}
