{
  "openapi": "3.1.2",
  "jsonSchemaDialect": "https://json-schema.org/draft/2020-12/schema",
  "info": {
    "title": "Elta Public API",
    "version": "1.0.0",
    "description": "Elta Public API v1. Read a team's properties, placements, observations and observation photo details, create properties and observations, correct observations and change observation status under the same business rules as the Elta web app.\n\nSlice A adds account-wide observation reads and incremental property/observation sync. It must be enabled in your environment; collaborators remain limited to currently assigned properties and receive no deletion metadata.\n\nSlice R adds assigned-property reads, completion discovery and evidence corrections, and inspector-only evidence requirements. Collaborators can access their assigned properties and latest completion; internal members can read full completion history and edit older completions. Published R operations also require the R rollout switch to be enabled.\n\nA team owner allows external integrations for the team; members then create their own expiring personal API tokens with selected capabilities, without owner approval. Send the token as `Authorization: Bearer <token>`. Every request and retry rechecks the member's live permissions, the team's lifecycle and the integration setting, so a token never grants more than its member currently has.\n\nSlice C adds observation deletion, separate scoped remediation costs, minimized status history and account wording suggestions. This group must be enabled in your environment. Cost changes advance observation versions; deleted data recovery requires Elta support.\n\nSlice G adds inspections, paged locked checklists and extension definitions, versioned answers, checklist observations and guarded completion. Completion returns a committed completed or validation_failed result with safe bounded question errors. New personal tokens and connections must explicitly include inspection scopes; existing credentials gain no scopes. G must be enabled in your environment.\n\nSlice H adds read-only report metadata and existing generated PDF downloads. Explicit reports:read consent includes property, contact, observation, photo and cost data in PDFs; no extra credential scopes are needed. Existing credentials gain no scopes. H must be enabled in your environment. No report authoring, generation or retry operations are exposed.\n\nSlice I adds measuring equipment and inspector certificates, including A4 cover scans through the shared upload batch. Explicit inspection-tools and certificate scopes are required; existing credentials gain no scopes. Certificate metadata visibility does not grant another member’s cover access: only the holder or certificates.manage can download or maintain it. I must be enabled in your environment, and certificate batches also use the D transport switch. Equipment and certificate sync generations roll at Europe/Oslo midnight; reconcile a new snapshot after resync_required.\n\nPaths start with the team API address `/api/v1/accounts/{accountId}`. Capabilities:\n\n- `properties:read`: read properties, placements and placement templates\n- `properties:write`: create, update and archive properties and manage placements and placement templates\n- `observations:read`: read observations\n- `observations:write`: create, edit and delete observations and set their evidence requirements\n- `remediation:write`: change status, add completion comments and remediation photos\n- `observation-photos:read`: read observation photo details and download photos\n- `observation-photos:write`: upload and arrange observation photos\n- `remediation-costs:read`: read observation remediation costs in NOK\n- `remediation-costs:write`: set and clear observation remediation costs\n- `contacts:read`: read persons, companies and their links\n- `contacts:write`: create, update and delete persons, companies and their links\n- `inspections:read`: read inspections, locked checklists and answers\n- `inspections:write`: manage inspections, checklist answers and completion\n- `documents:read`: read property document metadata and download document contents\n- `documents:write`: upload, reclassify, rename and delete property documents\n- `reports:read`: read report metadata and download generated PDFs; PDFs may include property, contact, observation, photo and cost data\n- `inspection-tools:read`: read measuring equipment and calibration dates\n- `inspection-tools:write`: create, update and delete measuring equipment\n- `certificates:read`: read eligible member certificate metadata and download own or managed covers\n- `certificates:write`: create and maintain own or managed certificates and cover scans\n\nSlice D adds bounded photo upload, download and cover operations. Slice E adds persons, companies and ordinary property roles; existing credentials gain no scopes. Each group must be enabled in your environment. Access-granting roles remain web administration. Offset pages are not snapshots. UTC timestamps; explicit nulls; strict camelCase objects. Runtime checks and named x-validation rules are normative.\n\nDeveloper guide (Norwegian Bokmål): /docs/api/overview"
  },
  "externalDocs": {
    "description": "Elta developer guide (Norwegian Bokmål)",
    "url": "/docs/api/overview"
  },
  "x-renderer-version": "1",
  "x-schema-generator": "zod@4.6.7 native JSON Schema",
  "x-query-policy": "Reject unknown and repeated parameters, including repeated equal values. Numeric bounds use unsigned decimal integers.",
  "x-cache-control": "private, no-store",
  "x-cors-policy": "Registered web-app origins only; absent Origin is permitted for authenticated server clients. Cookies are unsupported.",
  "security": [
    {
      "OpaqueBearer": []
    }
  ],
  "paths": {
    "/api/v1/accounts/{accountId}/properties": {
      "get": {
        "operationId": "listProperties",
        "summary": "List account properties",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "allOf": [
                {
                  "pattern": "\\S"
                },
                {
                  "pattern": "^[^\\u0000]*$"
                }
              ],
              "x-normalization": "trim before validation",
              "maxLength": 200,
              "x-length-unit": "Unicode code points"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "default": "active",
              "type": "string",
              "enum": [
                "active",
                "archived"
              ]
            },
            "example": "active",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "propertyType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "detached",
                "apartment",
                "townhouse",
                "semi_detached",
                "cabin",
                "commercial",
                "other"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "default": "updatedAt",
              "type": "string",
              "enum": [
                "address",
                "propertyType",
                "constructionYear",
                "createdAt",
                "updatedAt"
              ]
            },
            "example": "updatedAt",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "example": "desc",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "updatedAt",
            "desc"
          ],
          "tieBreak": [
            "id",
            "asc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedPropertyListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "22222222-2222-4222-8222-222222222222",
                          "version": "prop-v1.22222222-2222-4222-8222-222222222222.0",
                          "accountId": "11111111-1111-4111-8111-111111111111",
                          "address": {
                            "streetAddress": "Storgata 1",
                            "postalCode": "0155",
                            "city": "Oslo"
                          },
                          "cadastral": {
                            "gnr": "1",
                            "bnr": "2",
                            "municipality": "Oslo",
                            "municipalityCode": "0301",
                            "fnr": null,
                            "snr": null
                          },
                          "registryAddress": null,
                          "registryApartment": null,
                          "propertyType": "apartment",
                          "status": "active",
                          "constructionYear": 1990,
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "updatedAt": "2026-10-26T10:00:00.000Z"
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createProperty",
        "summary": "Create an account property",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "x-field-slices": {
          "placementTemplateId": "B"
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProperty"
              },
              "examples": {
                "command": {
                  "value": {
                    "address": {
                      "streetAddress": "Storgata 1",
                      "postalCode": "0155",
                      "city": "Oslo"
                    },
                    "propertyType": "detached",
                    "constructionYear": 1990
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "22222222-2222-4222-8222-222222222222",
                        "version": "prop-v1.22222222-2222-4222-8222-222222222222.0",
                        "accountId": "11111111-1111-4111-8111-111111111111",
                        "address": {
                          "streetAddress": "Storgata 1",
                          "postalCode": "0155",
                          "city": "Oslo"
                        },
                        "cadastral": {
                          "gnr": "1",
                          "bnr": "2",
                          "municipality": "Oslo",
                          "municipalityCode": "0301",
                          "fnr": null,
                          "snr": null
                        },
                        "registryAddress": null,
                        "registryApartment": null,
                        "propertyType": "apartment",
                        "status": "active",
                        "constructionYear": 1990,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "address"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}": {
      "get": {
        "operationId": "getProperty",
        "summary": "Get a property",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "22222222-2222-4222-8222-222222222222",
                        "version": "prop-v1.22222222-2222-4222-8222-222222222222.0",
                        "accountId": "11111111-1111-4111-8111-111111111111",
                        "address": {
                          "streetAddress": "Storgata 1",
                          "postalCode": "0155",
                          "city": "Oslo"
                        },
                        "cadastral": {
                          "gnr": "1",
                          "bnr": "2",
                          "municipality": "Oslo",
                          "municipalityCode": "0301",
                          "fnr": null,
                          "snr": null
                        },
                        "registryAddress": null,
                        "registryApartment": null,
                        "propertyType": "apartment",
                        "status": "active",
                        "constructionYear": 1990,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "propertyId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateProperty",
        "summary": "Update property facts with a version precondition",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProperty"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "prop-v1.22222222-2222-4222-8222-222222222222.0",
                    "constructionYear": 1991
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "22222222-2222-4222-8222-222222222222",
                        "version": "prop-v1.22222222-2222-4222-8222-222222222222.1",
                        "accountId": "11111111-1111-4111-8111-111111111111",
                        "address": {
                          "streetAddress": "Storgata 1",
                          "postalCode": "0155",
                          "city": "Oslo"
                        },
                        "cadastral": {
                          "gnr": "1",
                          "bnr": "2",
                          "municipality": "Oslo",
                          "municipalityCode": "0301",
                          "fnr": null,
                          "snr": null
                        },
                        "registryAddress": null,
                        "registryApartment": null,
                        "propertyType": "apartment",
                        "status": "active",
                        "constructionYear": 1990,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/placements": {
      "get": {
        "operationId": "listPropertyPlacements",
        "summary": "Discover property placement targets",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "position",
            "asc"
          ],
          "tieBreak": [
            "id",
            "asc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedPlacementListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "33333333-3333-4333-8333-333333333333",
                          "propertyId": "22222222-2222-4222-8222-222222222222",
                          "parentId": null,
                          "name": "Sikringsskap",
                          "placementType": "single",
                          "position": 0,
                          "installationYear": null,
                          "isActive": true
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false,
                        "placementSetVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createPropertyPlacement",
        "summary": "createPropertyPlacement",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlacement"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0",
                    "name": "Sikringsskap",
                    "placementType": "single"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "33333333-3333-4333-8333-333333333333",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "parentId": null,
                        "name": "Sikringsskap",
                        "placementType": "single",
                        "position": 0,
                        "installationYear": null,
                        "isActive": true
                      },
                      "meta": {
                        "placementSetVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations": {
      "get": {
        "operationId": "listPropertyObservations",
        "summary": "List property observations",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "in_progress",
                "resolved"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "tgGrade",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "TG0",
                "TG1",
                "TG2",
                "TG3",
                "TG-IU"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "placementId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "default": "createdAt",
              "type": "string",
              "const": "createdAt"
            },
            "example": "createdAt",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "example": "desc",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "createdAt",
            "desc"
          ],
          "tieBreak": [
            "id",
            "asc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedObservationListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "44444444-4444-4444-8444-444444444444",
                          "propertyId": "22222222-2222-4222-8222-222222222222",
                          "placementId": "33333333-3333-4333-8333-333333333333",
                          "number": "26.0001",
                          "controlPoint": "Sikringsskap",
                          "title": "Manglende kursmerking",
                          "description": "Manglende merking av kurs.",
                          "tgGrade": "TG2",
                          "status": "open",
                          "installationYear": null,
                          "resolvedAt": null,
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "updatedAt": "2026-10-26T10:00:00.000Z",
                          "version": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                          "remediation": {
                            "imageRequired": false,
                            "commentRequired": true
                          }
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createPropertyObservation",
        "summary": "Create a direct-property observation",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "observations:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateObservation"
              },
              "examples": {
                "command": {
                  "value": {
                    "placementId": "33333333-3333-4333-8333-333333333333",
                    "controlPoint": "Sikringsskap",
                    "title": "Manglende kursmerking",
                    "description": "Manglende merking av kurs.",
                    "tgGrade": "TG2",
                    "installationYear": null
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId",
            "observationId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Observation created; the authorized completed outcome can be replayed.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "44444444-4444-4444-8444-444444444444",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "placementId": "33333333-3333-4333-8333-333333333333",
                        "number": "26.0001",
                        "controlPoint": "Sikringsskap",
                        "title": "Manglende kursmerking",
                        "description": "Manglende merking av kurs.",
                        "tgGrade": "TG2",
                        "status": "open",
                        "installationYear": null,
                        "resolvedAt": null,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "version": "obs-v1.44444444-4444-4444-8444-444444444444.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "placementId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}": {
      "get": {
        "operationId": "getPropertyObservation",
        "summary": "Get a property observation",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationDetailResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "44444444-4444-4444-8444-444444444444",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "placementId": "33333333-3333-4333-8333-333333333333",
                        "number": "26.0001",
                        "controlPoint": "Sikringsskap",
                        "title": "Manglende kursmerking",
                        "description": "Manglende merking av kurs.",
                        "tgGrade": "TG2",
                        "status": "open",
                        "installationYear": null,
                        "resolvedAt": null,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "version": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                        "remediation": {
                          "imageRequired": false,
                          "commentRequired": true,
                          "latestCompletion": null
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "observationId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updatePropertyObservation",
        "summary": "Correct observation fields with a version precondition",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "observations:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateObservation"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                    "title": "Manglende kursmerking i sikringsskap",
                    "tgGrade": "TG3"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId",
            "observationId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Observation corrected; the authorized completed outcome can be replayed.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationDetailResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "44444444-4444-4444-8444-444444444444",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "placementId": "33333333-3333-4333-8333-333333333333",
                        "number": "26.0001",
                        "controlPoint": "Sikringsskap",
                        "title": "Manglende kursmerking i sikringsskap",
                        "description": "Manglende merking av kurs.",
                        "tgGrade": "TG3",
                        "status": "open",
                        "installationYear": null,
                        "resolvedAt": null,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "version": "obs-v1.44444444-4444-4444-8444-444444444444.2",
                        "remediation": {
                          "imageRequired": false,
                          "commentRequired": true,
                          "latestCompletion": null
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removePropertyObservation",
        "summary": "Soft-delete an observation; recovery requires contacting support",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "observations:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "obs-v1.44444444-4444-4444-8444-444444444444.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "observationId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "44444444-4444-4444-8444-444444444444",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z",
                        "version": "obs-v1.44444444-4444-4444-8444-444444444444.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/status": {
      "patch": {
        "operationId": "updatePropertyObservationStatus",
        "summary": "Change observation status with a version precondition",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "remediation:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateObservationStatus"
              },
              "examples": {
                "command": {
                  "value": {
                    "status": "resolved",
                    "expectedVersion": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                    "comment": "Connection repaired and verified.",
                    "imageIds": []
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId",
            "observationId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationDetailResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "44444444-4444-4444-8444-444444444444",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "placementId": "33333333-3333-4333-8333-333333333333",
                        "number": "26.0001",
                        "controlPoint": "Sikringsskap",
                        "title": "Manglende kursmerking",
                        "description": "Manglende merking av kurs.",
                        "tgGrade": "TG2",
                        "status": "resolved",
                        "installationYear": null,
                        "resolvedAt": "2026-10-26T10:00:00.000Z",
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "version": "obs-v1.44444444-4444-4444-8444-444444444444.2",
                        "remediation": {
                          "imageRequired": false,
                          "commentRequired": true,
                          "latestCompletion": {
                            "id": "55555555-5555-4555-8555-555555555555",
                            "comment": "Connection repaired and verified.",
                            "imageIds": []
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/photos": {
      "get": {
        "operationId": "listObservationPhotos",
        "summary": "List finding photos and current evidence of the latest completion",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read",
          "observation-photos:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Photos are identified by (kind, id). Finding photos precede the latest completion evidence; each kind is ordered by position, then ascending id.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationPhotoPage"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "66666666-6666-4666-8666-666666666666",
                          "kind": "finding",
                          "position": 0,
                          "caption": "Kursmerking",
                          "width": null,
                          "height": null,
                          "mimeType": "image/webp",
                          "sizeBytes": 2048,
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "completionId": null
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/evidence-requirements": {
      "patch": {
        "operationId": "updateObservationEvidenceRequirement",
        "summary": "Set one inspector evidence requirement",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "observations:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateObservationEvidenceRequirement"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                    "kind": "image",
                    "required": true
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId",
            "observationId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationDetailResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "44444444-4444-4444-8444-444444444444",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "placementId": "33333333-3333-4333-8333-333333333333",
                        "number": "26.0001",
                        "controlPoint": "Sikringsskap",
                        "title": "Manglende kursmerking",
                        "description": "Manglende merking av kurs.",
                        "tgGrade": "TG2",
                        "status": "open",
                        "installationYear": null,
                        "resolvedAt": null,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "version": "obs-v1.44444444-4444-4444-8444-444444444444.2",
                        "remediation": {
                          "imageRequired": true,
                          "commentRequired": false,
                          "latestCompletion": null
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/observations": {
      "get": {
        "operationId": "listAccountObservations",
        "summary": "List account observations",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "propertyId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "in_progress",
                "resolved"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "tgGrade",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "TG0",
                "TG1",
                "TG2",
                "TG3",
                "TG-IU"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "default": "createdAt",
              "type": "string",
              "enum": [
                "createdAt",
                "updatedAt"
              ]
            },
            "example": "createdAt",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "example": "desc",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "createdAt",
            "desc"
          ],
          "tieBreak": [
            "id",
            "asc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedObservationListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "44444444-4444-4444-8444-444444444444",
                          "propertyId": "22222222-2222-4222-8222-222222222222",
                          "placementId": "33333333-3333-4333-8333-333333333333",
                          "number": "26.0001",
                          "controlPoint": "Sikringsskap",
                          "title": "Manglende kursmerking",
                          "description": "Manglende merking av kurs.",
                          "tgGrade": "TG2",
                          "status": "open",
                          "installationYear": null,
                          "resolvedAt": null,
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "updatedAt": "2026-10-26T10:00:00.000Z",
                          "version": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                          "remediation": {
                            "imageRequired": false,
                            "commentRequired": true
                          }
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/assigned-properties": {
      "get": {
        "operationId": "listAssignedProperties",
        "summary": "List assigned properties",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "allOf": [
                {
                  "pattern": "\\S"
                },
                {
                  "pattern": "^[^\\u0000]*$"
                }
              ],
              "x-normalization": "trim before validation",
              "maxLength": 200,
              "x-length-unit": "Unicode code points"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "default": "active",
              "type": "string",
              "enum": [
                "active",
                "archived"
              ]
            },
            "example": "active",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "propertyType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "detached",
                "apartment",
                "townhouse",
                "semi_detached",
                "cabin",
                "commercial",
                "other"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "default": "updatedAt",
              "type": "string",
              "enum": [
                "address",
                "propertyType",
                "constructionYear",
                "createdAt",
                "updatedAt"
              ]
            },
            "example": "updatedAt",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "example": "desc",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "updatedAt",
            "desc"
          ],
          "tieBreak": [
            "id",
            "asc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssignedPropertyListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/assigned-properties/{propertyId}": {
      "get": {
        "operationId": "getAssignedProperty",
        "summary": "Get an assigned property",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssignedPropertyResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "22222222-2222-4222-8222-222222222222",
                        "version": "prop-v1.22222222-2222-4222-8222-222222222222.0",
                        "accountId": "11111111-1111-4111-8111-111111111111",
                        "address": {
                          "streetAddress": "Storgata 1",
                          "postalCode": "0155",
                          "city": "Oslo"
                        },
                        "cadastral": {
                          "gnr": "1",
                          "bnr": "2",
                          "municipality": "Oslo"
                        },
                        "registryApartment": null,
                        "propertyType": "apartment",
                        "status": "active",
                        "constructionYear": 1990,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "permissions": [
                          "properties.read"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "propertyId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/completions": {
      "get": {
        "operationId": "listObservationCompletions",
        "summary": "List completion evidence; collaborators see only the latest completion",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationCompletionListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "55555555-5555-4555-8555-555555555555",
                          "fixedAt": "2026-10-26T10:00:00.000Z",
                          "comment": "",
                          "imageIds": []
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      },
                      "version": "obs-v1.44444444-4444-4444-8444-444444444444.1"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/completions/{completionId}/evidence": {
      "patch": {
        "operationId": "updateObservationCompletionEvidence",
        "summary": "Correct the current evidence of a completion",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "remediation:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "completionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "55555555-5555-4555-8555-555555555555"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateObservationEvidence"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                    "comment": "",
                    "imageIds": []
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId",
            "observationId",
            "completionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationCompletionResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "55555555-5555-4555-8555-555555555555",
                        "fixedAt": "2026-10-26T10:00:00.000Z",
                        "comment": "",
                        "imageIds": []
                      },
                      "version": "obs-v1.44444444-4444-4444-8444-444444444444.2"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/evidence": {
      "patch": {
        "operationId": "updateObservationLegacyEvidence",
        "summary": "Record evidence for a legacy resolution with no completion",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "remediation:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateObservationEvidence"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                    "comment": "",
                    "imageIds": []
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId",
            "observationId",
            "completionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationCompletionResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "55555555-5555-4555-8555-555555555555",
                        "fixedAt": "2026-10-26T10:00:00.000Z",
                        "comment": "",
                        "imageIds": []
                      },
                      "version": "obs-v1.44444444-4444-4444-8444-444444444444.2"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/status": {
      "patch": {
        "operationId": "updatePropertyStatus",
        "summary": "Set the property archive status with a version precondition",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePropertyStatus"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "prop-v1.22222222-2222-4222-8222-222222222222.0",
                    "status": "archived"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "22222222-2222-4222-8222-222222222222",
                        "version": "prop-v1.22222222-2222-4222-8222-222222222222.1",
                        "accountId": "11111111-1111-4111-8111-111111111111",
                        "address": {
                          "streetAddress": "Storgata 1",
                          "postalCode": "0155",
                          "city": "Oslo"
                        },
                        "cadastral": {
                          "gnr": "1",
                          "bnr": "2",
                          "municipality": "Oslo",
                          "municipalityCode": "0301",
                          "fnr": null,
                          "snr": null
                        },
                        "registryAddress": null,
                        "registryApartment": null,
                        "propertyType": "apartment",
                        "status": "archived",
                        "constructionYear": 1990,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/placements/{placementId}": {
      "patch": {
        "operationId": "updatePropertyPlacement",
        "summary": "updatePropertyPlacement",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "placementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "33333333-3333-4333-8333-333333333333"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePlacement"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0",
                    "name": "Kjøkken"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "33333333-3333-4333-8333-333333333333",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "parentId": null,
                        "name": "Sikringsskap",
                        "placementType": "single",
                        "position": 0,
                        "installationYear": null,
                        "isActive": true
                      },
                      "meta": {
                        "placementSetVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removePropertyPlacement",
        "summary": "removePropertyPlacement",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "placementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "33333333-3333-4333-8333-333333333333"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "placements-v1.22222222-2222-4222-8222-222222222222.0",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "33333333-3333-4333-8333-333333333333",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z"
                      },
                      "meta": {
                        "placementSetVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/placements/{placementId}/position": {
      "patch": {
        "operationId": "movePropertyPlacement",
        "summary": "movePropertyPlacement",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "placementId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "33333333-3333-4333-8333-333333333333"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MovePlacement"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0",
                    "parentId": null,
                    "position": 0
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "placementId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "33333333-3333-4333-8333-333333333333",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "parentId": null,
                        "name": "Sikringsskap",
                        "placementType": "single",
                        "position": 0,
                        "installationYear": null,
                        "isActive": true
                      },
                      "meta": {
                        "placementSetVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/placements/order": {
      "put": {
        "operationId": "reorderPropertyPlacements",
        "summary": "reorderPropertyPlacements",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReorderPlacements"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0",
                    "orderedPlacementIds": [
                      "33333333-3333-4333-8333-333333333333"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementOrderResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "33333333-3333-4333-8333-333333333333",
                          "propertyId": "22222222-2222-4222-8222-222222222222",
                          "parentId": null,
                          "name": "Sikringsskap",
                          "placementType": "single",
                          "position": 0,
                          "installationYear": null,
                          "isActive": true
                        }
                      ],
                      "meta": {
                        "placementSetVersion": "placements-v1.22222222-2222-4222-8222-222222222222.0"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/placement-templates": {
      "get": {
        "operationId": "listPlacementTemplates",
        "summary": "List team and standard placement templates",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "propertyType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "detached",
                "apartment",
                "townhouse",
                "semi_detached",
                "cabin",
                "commercial",
                "other"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "allOf": [
                {
                  "pattern": "\\S"
                },
                {
                  "pattern": "^[^\\u0000]*$"
                }
              ],
              "x-normalization": "trim before validation",
              "maxLength": 200,
              "x-length-unit": "Unicode code points"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedPlacementTemplateListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "77777777-7777-4777-8777-777777777777",
                          "name": "Bolig",
                          "propertyType": "other",
                          "structure": {
                            "nodes": [
                              {
                                "name": "Sikringsskap",
                                "type": "single",
                                "position": 0,
                                "installationYear": null,
                                "children": []
                              }
                            ]
                          },
                          "isStandard": false,
                          "version": "template-v1.77777777-7777-4777-8777-777777777777.1"
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createPlacementTemplate",
        "summary": "Create a custom placement template",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePlacementTemplate"
              },
              "examples": {
                "command": {
                  "value": {
                    "name": "Bolig",
                    "propertyType": "other",
                    "structure": {
                      "nodes": [
                        {
                          "name": "Sikringsskap",
                          "type": "single",
                          "position": 0,
                          "installationYear": null,
                          "children": []
                        }
                      ]
                    }
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "templateId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementTemplateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "77777777-7777-4777-8777-777777777777",
                        "name": "Bolig",
                        "propertyType": "other",
                        "structure": {
                          "nodes": [
                            {
                              "name": "Sikringsskap",
                              "type": "single",
                              "position": 0,
                              "installationYear": null,
                              "children": []
                            }
                          ]
                        },
                        "isStandard": false,
                        "version": "template-v1.77777777-7777-4777-8777-777777777777.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "name"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/placement-templates/{templateId}": {
      "get": {
        "operationId": "getPlacementTemplate",
        "summary": "Get a placement template",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "77777777-7777-4777-8777-777777777777"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementTemplateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "77777777-7777-4777-8777-777777777777",
                        "name": "Bolig",
                        "propertyType": "other",
                        "structure": {
                          "nodes": [
                            {
                              "name": "Sikringsskap",
                              "type": "single",
                              "position": 0,
                              "installationYear": null,
                              "children": []
                            }
                          ]
                        },
                        "isStandard": false,
                        "version": "template-v1.77777777-7777-4777-8777-777777777777.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "templateId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updatePlacementTemplate",
        "summary": "Update a custom placement template with a version precondition",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "77777777-7777-4777-8777-777777777777"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePlacementTemplate"
              },
              "examples": {
                "command": {
                  "value": {
                    "name": "Endret",
                    "expectedVersion": "template-v1.77777777-7777-4777-8777-777777777777.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "templateId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementTemplateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "77777777-7777-4777-8777-777777777777",
                        "name": "Bolig",
                        "propertyType": "other",
                        "structure": {
                          "nodes": [
                            {
                              "name": "Sikringsskap",
                              "type": "single",
                              "position": 0,
                              "installationYear": null,
                              "children": []
                            }
                          ]
                        },
                        "isStandard": false,
                        "version": "template-v1.77777777-7777-4777-8777-777777777777.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removePlacementTemplate",
        "summary": "Soft-delete a custom placement template with a query version",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "77777777-7777-4777-8777-777777777777"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "template-v1.77777777-7777-4777-8777-777777777777.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "templateId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementTemplateRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "77777777-7777-4777-8777-777777777777",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z",
                        "version": "template-v1.77777777-7777-4777-8777-777777777777.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/placement-templates/{templateId}/duplicate": {
      "post": {
        "operationId": "duplicatePlacementTemplate",
        "summary": "Duplicate a visible template into the team",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "templateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "77777777-7777-4777-8777-777777777777"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DuplicatePlacementTemplate"
              },
              "examples": {
                "command": {
                  "value": {
                    "name": "Kopi"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "sourceTemplateId",
            "templateId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementTemplateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "77777777-7777-4777-8777-777777777777",
                        "name": "Bolig",
                        "propertyType": "other",
                        "structure": {
                          "nodes": [
                            {
                              "name": "Sikringsskap",
                              "type": "single",
                              "position": 0,
                              "installationYear": null,
                              "children": []
                            }
                          ]
                        },
                        "isStandard": false,
                        "version": "template-v1.77777777-7777-4777-8777-777777777777.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "name"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/placement-template": {
      "post": {
        "operationId": "savePlacementTemplateFromProperty",
        "summary": "Save a property placement tree as an independent template",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SavePlacementTemplateFromProperty"
              },
              "examples": {
                "command": {
                  "value": {
                    "name": "Fra eiendom"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "templateId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PlacementTemplateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "77777777-7777-4777-8777-777777777777",
                        "name": "Bolig",
                        "propertyType": "other",
                        "structure": {
                          "nodes": [
                            {
                              "name": "Sikringsskap",
                              "type": "single",
                              "position": 0,
                              "installationYear": null,
                              "children": []
                            }
                          ]
                        },
                        "isStandard": false,
                        "version": "template-v1.77777777-7777-4777-8777-777777777777.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "name"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/remediation-costs": {
      "get": {
        "operationId": "listPropertyRemediationCosts",
        "summary": "List remediation costs for a property",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "remediation-costs:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedRemediationCostListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "observationId": "44444444-4444-4444-8444-444444444444",
                          "type": "fixed",
                          "currency": "NOK",
                          "netOre": 10000,
                          "vatBasisPoints": 2500,
                          "vatOre": 2500,
                          "grossOre": 12500,
                          "version": "cost-v1.44444444-4444-4444-8444-444444444444.1"
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/remediation-cost": {
      "get": {
        "operationId": "getObservationRemediationCost",
        "summary": "Read an observation remediation cost",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "remediation-costs:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationCostResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "observationId": "44444444-4444-4444-8444-444444444444",
                        "type": "fixed",
                        "currency": "NOK",
                        "netOre": 10000,
                        "vatBasisPoints": 2500,
                        "vatOre": 2500,
                        "grossOre": 12500,
                        "version": "cost-v1.44444444-4444-4444-8444-444444444444.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "observationId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "setObservationRemediationCost",
        "summary": "Set or clear an observation remediation cost",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "observations:read",
          "remediation-costs:read",
          "remediation-costs:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReplaceRemediationCost"
              },
              "examples": {
                "command": {
                  "value": {
                    "type": "fixed",
                    "netOre": 10000,
                    "vatBasisPoints": 2500,
                    "expectedVersion": "cost-v1.44444444-4444-4444-8444-444444444444.0"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "observationId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RemediationCostResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "observationId": "44444444-4444-4444-8444-444444444444",
                        "type": "fixed",
                        "currency": "NOK",
                        "netOre": 10000,
                        "vatBasisPoints": 2500,
                        "vatOre": 2500,
                        "grossOre": 12500,
                        "version": "cost-v1.44444444-4444-4444-8444-444444444444.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/status-history": {
      "get": {
        "operationId": "listObservationStatusHistory",
        "summary": "Page minimized recorded status history, in sequence order",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationStatusHistoryListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "sequence": 1,
                          "eventType": "created",
                          "previousStatus": null,
                          "status": "open",
                          "occurredAt": "2026-10-26T10:00:00.000Z",
                          "completionId": null
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false,
                        "legacy": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/observation-suggestions": {
      "get": {
        "operationId": "searchObservationSuggestions",
        "summary": "Search inspector title or control-point suggestions for an account",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "title",
                "controlPoint"
              ]
            },
            "example": "title",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "query",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200,
              "pattern": "^[^\\u0000]*$",
              "x-normalization": "trim and collapse whitespace",
              "x-length-unit": "Unicode code points"
            },
            "example": "kurs",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ObservationSuggestionListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "kind": "title",
                          "entryId": "1001",
                          "shortCode": "KM",
                          "category": "Kurs",
                          "option": "Merking",
                          "description": "Manglende merking.",
                          "missingDescription": false
                        }
                      ],
                      "meta": {
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "kind"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/photos/{photoId}/content": {
      "get": {
        "operationId": "getObservationPhotoContent",
        "summary": "Download an authorized observation photo",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read",
          "observation-photos:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "photoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "88888888-8888-4888-8888-888888888888"
          },
          {
            "name": "kind",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "finding",
                "remediation"
              ]
            },
            "example": "finding",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "302": {
            "description": "A private, no-store redirect to one authorized object, valid for 60 seconds. Each link admission consumes bytes, including retries.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Location": {
                "required": true,
                "description": "Single-object signed download URL, valid for 60 seconds.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "kind"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/uploads": {
      "post": {
        "operationId": "startPhotoUploadBatch",
        "summary": "Start a photo upload batch",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [],
        "x-any-of-capabilities": [
          "observation-photos:write",
          "remediation:write",
          "properties:write",
          "documents:write",
          "certificates:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartPhotoUploadBatch"
              },
              "examples": {
                "command": {
                  "value": {
                    "files": [
                      {
                        "target": {
                          "kind": "finding",
                          "propertyId": "22222222-2222-4222-8222-222222222222",
                          "observationId": "44444444-4444-4444-8444-444444444444"
                        },
                        "filename": "photo.png",
                        "mimeType": "image/png",
                        "sizeBytes": 1024
                      }
                    ]
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "batchId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhotoUploadBatchStarted"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "55555555-5555-4555-8555-555555555555",
                        "expiresAt": "2026-10-26T10:00:00.000Z",
                        "files": [
                          {
                            "id": "44444444-4444-4444-8444-444444444444",
                            "problem": null,
                            "upload": {
                              "uploadUrl": "https://storage.example.test/upload?token=example",
                              "resumableUrl": "https://storage.example.test/storage/v1/upload/resumable/sign",
                              "uploadToken": "example",
                              "bucket": "image_upload_staging",
                              "objectName": "11111111-1111-4111-8111-111111111111/api-photo-44444444-4444-4444-8444-444444444444/44444444-4444-4444-8444-444444444444",
                              "chunkSizeBytes": 6291456
                            }
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "files"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/uploads/{batchId}/complete": {
      "post": {
        "operationId": "completePhotoUploadBatch",
        "summary": "Verify and queue a photo upload batch",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [],
        "x-any-of-capabilities": [
          "observation-photos:write",
          "remediation:write",
          "properties:write",
          "documents:write",
          "certificates:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "55555555-5555-4555-8555-555555555555"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePhotoUploadBatch"
              },
              "examples": {
                "command": {
                  "value": {}
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "batchId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "202": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhotoUploadBatchAccepted"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "55555555-5555-4555-8555-555555555555"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/uploads/{batchId}": {
      "get": {
        "operationId": "getPhotoUploadBatch",
        "summary": "Read per-file upload progress",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [],
        "x-any-of-capabilities": [
          "observation-photos:write",
          "remediation:write",
          "properties:write",
          "documents:write",
          "certificates:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "batchId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "55555555-5555-4555-8555-555555555555"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PhotoUploadBatchStatus"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "55555555-5555-4555-8555-555555555555",
                        "expiresAt": "2026-10-26T10:00:00.000Z",
                        "files": [
                          {
                            "id": "44444444-4444-4444-8444-444444444444",
                            "status": "processing"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "batchId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/photos/{photoId}": {
      "patch": {
        "operationId": "updateObservationPhotoCaption",
        "summary": "Edit a finding photo caption",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read",
          "observation-photos:read",
          "observation-photos:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "photoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "66666666-6666-4666-8666-666666666666"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FindingPhotoCaptionCommand"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                    "caption": "Panel"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "observationId",
            "photoId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FindingPhotoCaptionResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "66666666-6666-4666-8666-666666666666",
                        "kind": "finding",
                        "position": 0,
                        "caption": "Panel",
                        "width": null,
                        "height": null,
                        "mimeType": "image/webp",
                        "sizeBytes": 2048,
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "completionId": null
                      },
                      "meta": {
                        "observationVersion": "obs-v1.44444444-4444-4444-8444-444444444444.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeObservationPhoto",
        "summary": "Remove a finding photo",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read",
          "observation-photos:read",
          "observation-photos:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "photoId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "66666666-6666-4666-8666-666666666666"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "obs-v1.44444444-4444-4444-8444-444444444444.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "observationId",
            "photoId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FindingPhotoDeletionResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "66666666-6666-4666-8666-666666666666",
                        "observationId": "44444444-4444-4444-8444-444444444444",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z"
                      },
                      "meta": {
                        "observationVersion": "obs-v1.44444444-4444-4444-8444-444444444444.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/observations/{observationId}/photos/order": {
      "put": {
        "operationId": "reorderObservationPhotos",
        "summary": "Reorder the complete finding photo set",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "observations:read",
          "observation-photos:read",
          "observation-photos:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "44444444-4444-4444-8444-444444444444"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FindingPhotoOrderCommand"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "obs-v1.44444444-4444-4444-8444-444444444444.1",
                    "orderedPhotoIds": [
                      "66666666-6666-4666-8666-666666666666"
                    ]
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "observationId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FindingPhotoOrderResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "66666666-6666-4666-8666-666666666666",
                          "kind": "finding",
                          "position": 0,
                          "caption": "Kursmerking",
                          "width": null,
                          "height": null,
                          "mimeType": "image/webp",
                          "sizeBytes": 2048,
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "completionId": null
                        }
                      ],
                      "meta": {
                        "observationVersion": "obs-v1.44444444-4444-4444-8444-444444444444.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/cover": {
      "get": {
        "operationId": "getPropertyCover",
        "summary": "Read a property cover",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyCoverResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "88888888-8888-4888-8888-888888888888",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "width": 1600,
                        "height": 1200,
                        "mimeType": "image/webp",
                        "uploadedAt": "2026-10-26T10:00:00.000Z"
                      },
                      "meta": {
                        "propertyVersion": "prop-v1.22222222-2222-4222-8222-222222222222.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "propertyId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removePropertyCover",
        "summary": "Remove a property cover",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "properties:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "prop-v1.22222222-2222-4222-8222-222222222222.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "imageId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyCoverDeletionResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "imageId": "88888888-8888-4888-8888-888888888888",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z"
                      },
                      "meta": {
                        "propertyVersion": "prop-v1.22222222-2222-4222-8222-222222222222.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/cover/content": {
      "get": {
        "operationId": "getPropertyCoverContent",
        "summary": "Download the full property cover",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          }
        ],
        "responses": {
          "302": {
            "description": "Private no-store redirect to the full rendition for 60 seconds; each admission consumes measured bytes.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Location": {
                "required": true,
                "description": "Single-object signed download URL, valid for 60 seconds.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "propertyId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/persons": {
      "get": {
        "operationId": "listPersons",
        "summary": "List persons",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-normalization": "trim before matching",
              "x-normalized-maxLength": 300,
              "x-length-unit": "Unicode code points"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "companyId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "default": "updatedAt",
              "type": "string",
              "enum": [
                "fullName",
                "email",
                "createdAt",
                "updatedAt"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "updatedAt",
            "desc"
          ],
          "tieBreak": [
            "id",
            "asc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedPersonListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "93900000-0000-4000-8000-000000000010",
                          "createdAt": "2026-11-07T10:00:00Z",
                          "updatedAt": "2026-11-07T10:00:00Z",
                          "version": "person-v1.93900000-0000-4000-8000-000000000010.1",
                          "fullName": "Kari Nordmann",
                          "email": "kari@example.test",
                          "phone": null,
                          "isMemberBacked": false,
                          "companies": []
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createPerson",
        "summary": "Create a person",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreatePerson"
              },
              "examples": {
                "command": {
                  "value": {
                    "fullName": "Kari Nordmann",
                    "email": "kari@example.test",
                    "phone": null,
                    "companyIds": []
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "personId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "93900000-0000-4000-8000-000000000010",
                        "createdAt": "2026-11-07T10:00:00Z",
                        "updatedAt": "2026-11-07T10:00:00Z",
                        "version": "person-v1.93900000-0000-4000-8000-000000000010.1",
                        "fullName": "Kari Nordmann",
                        "email": "kari@example.test",
                        "phone": null,
                        "isMemberBacked": false,
                        "companies": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "fullName"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/persons/{personId}": {
      "get": {
        "operationId": "getPerson",
        "summary": "Read a person",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "93900000-0000-4000-8000-000000000010"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "93900000-0000-4000-8000-000000000010",
                        "createdAt": "2026-11-07T10:00:00Z",
                        "updatedAt": "2026-11-07T10:00:00Z",
                        "version": "person-v1.93900000-0000-4000-8000-000000000010.1",
                        "fullName": "Kari Nordmann",
                        "email": "kari@example.test",
                        "phone": null,
                        "isMemberBacked": false,
                        "companies": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "personId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updatePerson",
        "summary": "Update a person",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "93900000-0000-4000-8000-000000000010"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePerson"
              },
              "examples": {
                "command": {
                  "value": {
                    "fullName": "Kari Nordmann",
                    "email": "kari@example.test",
                    "phone": null,
                    "companyIds": [],
                    "expectedVersion": "person-v1.93900000-0000-4000-8000-000000000010.1",
                    "confirmPropertyActorCleanup": false
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "personId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "93900000-0000-4000-8000-000000000010",
                        "createdAt": "2026-11-07T10:00:00Z",
                        "updatedAt": "2026-11-07T10:00:00Z",
                        "version": "person-v1.93900000-0000-4000-8000-000000000010.1",
                        "fullName": "Kari Nordmann",
                        "email": "kari@example.test",
                        "phone": null,
                        "isMemberBacked": false,
                        "companies": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removePerson",
        "summary": "Remove a person",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "personId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "93900000-0000-4000-8000-000000000010"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
            },
            "example": "person-v1.93900000-0000-4000-8000-000000000010.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "confirmPropertyActorCleanup",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "example": false,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "personId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PersonRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "93900000-0000-4000-8000-000000000010",
                        "deleted": true,
                        "deletedAt": "2026-11-07T10:00:00Z",
                        "version": "person-v1.93900000-0000-4000-8000-000000000010.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/companies": {
      "get": {
        "operationId": "listCompanies",
        "summary": "List companies",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-normalization": "trim before matching",
              "x-normalized-maxLength": 300,
              "x-length-unit": "Unicode code points"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortDirection",
            "in": "query",
            "required": false,
            "schema": {
              "default": "desc",
              "type": "string",
              "enum": [
                "asc",
                "desc"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "sortBy",
            "in": "query",
            "required": false,
            "schema": {
              "default": "updatedAt",
              "type": "string",
              "enum": [
                "name",
                "orgNumber",
                "sector",
                "createdAt",
                "updatedAt"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "updatedAt",
            "desc"
          ],
          "tieBreak": [
            "id",
            "asc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedCompanyListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "93900000-0000-4000-8000-000000000011",
                          "createdAt": "2026-11-07T10:00:00Z",
                          "updatedAt": "2026-11-07T10:00:00Z",
                          "version": "company-v1.93900000-0000-4000-8000-000000000011.1",
                          "name": "Example AS",
                          "orgNumber": "123456789",
                          "sector": null,
                          "isSelf": false,
                          "persons": [],
                          "activePersonCount": 0
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createCompany",
        "summary": "Create a company",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateCompany"
              },
              "examples": {
                "command": {
                  "value": {
                    "name": "Example AS",
                    "orgNumber": "123456789",
                    "sector": null,
                    "personIds": []
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "companyId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "93900000-0000-4000-8000-000000000011",
                        "createdAt": "2026-11-07T10:00:00Z",
                        "updatedAt": "2026-11-07T10:00:00Z",
                        "version": "company-v1.93900000-0000-4000-8000-000000000011.1",
                        "name": "Example AS",
                        "orgNumber": "123456789",
                        "sector": null,
                        "isSelf": false,
                        "persons": [],
                        "activePersonCount": 0
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "name"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/companies/{companyId}": {
      "get": {
        "operationId": "getCompany",
        "summary": "Read a company",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "93900000-0000-4000-8000-000000000011"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "93900000-0000-4000-8000-000000000011",
                        "createdAt": "2026-11-07T10:00:00Z",
                        "updatedAt": "2026-11-07T10:00:00Z",
                        "version": "company-v1.93900000-0000-4000-8000-000000000011.1",
                        "name": "Example AS",
                        "orgNumber": "123456789",
                        "sector": null,
                        "isSelf": false,
                        "persons": [],
                        "activePersonCount": 0
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "companyId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "put": {
        "operationId": "updateCompany",
        "summary": "Update a company",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "93900000-0000-4000-8000-000000000011"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCompany"
              },
              "examples": {
                "command": {
                  "value": {
                    "name": "Example AS",
                    "orgNumber": "123456789",
                    "sector": null,
                    "personIds": [],
                    "expectedVersion": "company-v1.93900000-0000-4000-8000-000000000011.1",
                    "confirmPropertyActorCleanup": false
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "companyId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "93900000-0000-4000-8000-000000000011",
                        "createdAt": "2026-11-07T10:00:00Z",
                        "updatedAt": "2026-11-07T10:00:00Z",
                        "version": "company-v1.93900000-0000-4000-8000-000000000011.1",
                        "name": "Example AS",
                        "orgNumber": "123456789",
                        "sector": null,
                        "isSelf": false,
                        "persons": [],
                        "activePersonCount": 0
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeCompany",
        "summary": "Remove a company",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "companyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "93900000-0000-4000-8000-000000000011"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
            },
            "example": "company-v1.93900000-0000-4000-8000-000000000011.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "confirmPropertyActorCleanup",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "example": false,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "companyId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "93900000-0000-4000-8000-000000000011",
                        "deleted": true,
                        "deletedAt": "2026-11-07T10:00:00Z",
                        "version": "company-v1.93900000-0000-4000-8000-000000000011.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/roles": {
      "get": {
        "operationId": "getPropertyRoles",
        "summary": "Read the complete role set and role catalogue",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "properties:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedPropertyRoleResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "94000000-0000-4000-8000-000000000010",
                          "role": "owner",
                          "personId": "94000000-0000-4000-8000-000000000020",
                          "actingForCompanyId": null
                        }
                      ],
                      "roles": [
                        {
                          "role": "owner",
                          "grantsPropertyAccess": false
                        },
                        {
                          "role": "buyer",
                          "grantsPropertyAccess": false
                        },
                        {
                          "role": "seller",
                          "grantsPropertyAccess": false
                        },
                        {
                          "role": "broker",
                          "grantsPropertyAccess": false
                        },
                        {
                          "role": "insurer",
                          "grantsPropertyAccess": false
                        },
                        {
                          "role": "property_manager",
                          "grantsPropertyAccess": false
                        },
                        {
                          "role": "collaborator",
                          "grantsPropertyAccess": true
                        }
                      ],
                      "version": "roles-v1.22222222-2222-4222-8222-222222222222.1"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "propertyId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "assignPropertyRole",
        "summary": "Assign an ordinary property role; access administration is web-only",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write",
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyRoleWrite"
              },
              "examples": {
                "command": {
                  "value": {
                    "role": "owner",
                    "personId": "94000000-0000-4000-8000-000000000020",
                    "actingForCompanyId": null,
                    "expectedVersion": "roles-v1.22222222-2222-4222-8222-222222222222.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "assignmentId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyRoleResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94000000-0000-4000-8000-000000000010",
                        "role": "owner",
                        "personId": "94000000-0000-4000-8000-000000000020",
                        "actingForCompanyId": null
                      },
                      "version": "roles-v1.22222222-2222-4222-8222-222222222222.2"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/roles/{assignmentId}": {
      "put": {
        "operationId": "updatePropertyRole",
        "summary": "Update an ordinary property role; access administration is web-only",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write",
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94000000-0000-4000-8000-000000000010"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PropertyRoleWrite"
              },
              "examples": {
                "command": {
                  "value": {
                    "role": "owner",
                    "personId": "94000000-0000-4000-8000-000000000020",
                    "actingForCompanyId": null,
                    "expectedVersion": "roles-v1.22222222-2222-4222-8222-222222222222.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "assignmentId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyRoleResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94000000-0000-4000-8000-000000000010",
                        "role": "owner",
                        "personId": "94000000-0000-4000-8000-000000000020",
                        "actingForCompanyId": null
                      },
                      "version": "roles-v1.22222222-2222-4222-8222-222222222222.2"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removePropertyRole",
        "summary": "Remove an ordinary property role; access administration is web-only",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "contacts:read",
          "contacts:write",
          "properties:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "assignmentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94000000-0000-4000-8000-000000000010"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^roles-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
              "description": "Opaque version of the complete property role set. Bind to the addressed property; compare under the mutation lock."
            },
            "example": "roles-v1.22222222-2222-4222-8222-222222222222.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "assignmentId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PropertyRoleRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94000000-0000-4000-8000-000000000010",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z"
                      },
                      "version": "roles-v1.22222222-2222-4222-8222-222222222222.2"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/create-options": {
      "get": {
        "operationId": "getInspectionCreateOptions",
        "summary": "Read the current creator inspector reference and selectable standard checklist versions",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionCreateOptionsResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "inspectors": [
                          {
                            "inspectorRef": "inspector-v1.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
                          }
                        ],
                        "checklists": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "propertyId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections": {
      "post": {
        "operationId": "createPropertyInspection",
        "summary": "Create an inspection with the current creator and one selectable checklist version",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read",
          "inspections:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInspection"
              },
              "examples": {
                "command": {
                  "value": {
                    "inspectorRef": "inspector-v1.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                    "checklistVersionId": "94100000-0000-4000-8000-000000000003"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionCreationResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94100000-0000-4000-8000-000000000001",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "controlNumber": "INSP-26.001",
                        "status": "started",
                        "inspectorRef": "inspector-v1.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
                        "checklist": {
                          "id": "94100000-0000-4000-8000-000000000002",
                          "versionId": "94100000-0000-4000-8000-000000000003",
                          "version": 2020
                        },
                        "answers": {
                          "answered": 0,
                          "total": 1
                        },
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "version": "inspection-v1.94100000-0000-4000-8000-000000000001.3"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "inspectorRef"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listPropertyInspections",
        "summary": "Page internal inspection progress; incremental scans accept scope filters only",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "started",
                "completed",
                "action_required"
              ]
            },
            "example": "started",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedInspectionListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/{inspectionId}": {
      "delete": {
        "operationId": "removePropertyInspection",
        "summary": "Soft-delete an inspection with a query version; recovery requires support",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read",
          "inspections:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94100000-0000-4000-8000-000000000001"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "inspection-v1.94100000-0000-4000-8000-000000000001.4",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94100000-0000-4000-8000-000000000001",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z",
                        "version": "inspection-v1.94100000-0000-4000-8000-000000000001.5"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "getPropertyInspection",
        "summary": "Read inspection progress and its immutable locked-checklist reference",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94100000-0000-4000-8000-000000000001"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94100000-0000-4000-8000-000000000001",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "controlNumber": "INSP-26.001",
                        "status": "started",
                        "inspectorRef": null,
                        "checklist": {
                          "id": "94100000-0000-4000-8000-000000000002",
                          "versionId": "94100000-0000-4000-8000-000000000003",
                          "version": 1
                        },
                        "answers": {
                          "answered": 0,
                          "total": 1
                        },
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "version": "inspection-v1.94100000-0000-4000-8000-000000000001.1"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "inspectionId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/inspections": {
      "get": {
        "operationId": "listAccountInspections",
        "summary": "Page internal inspection progress; incremental scans accept scope filters only",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "started",
                "completed",
                "action_required"
              ]
            },
            "example": "started",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedInspectionListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/{inspectionId}/checklist": {
      "get": {
        "operationId": "listInspectionChecklist",
        "summary": "Page typed locked-definition and answer entries; restart when inspection version changes",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94100000-0000-4000-8000-000000000001"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionChecklistResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      },
                      "version": "inspection-v1.94100000-0000-4000-8000-000000000001.1",
                      "checklistVersionId": "94100000-0000-4000-8000-000000000003"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/{inspectionId}/checklist/questions/{questionId}/answer": {
      "put": {
        "operationId": "setInspectionAnswer",
        "summary": "Set a locked question answer with a current per-question version",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read",
          "inspections:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94300000-0000-4000-8000-000000000001"
          },
          {
            "name": "questionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94300000-0000-4000-8000-000000000002"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetInspectionAnswer"
              },
              "examples": {
                "command": {
                  "value": {
                    "kind": "text",
                    "text": "Inspection answer",
                    "expectedVersion": "answer-v1.94300000-0000-4000-8000-000000000001.94300000-0000-4000-8000-000000000002.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId",
            "questionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionAnswerResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "kind": "answer",
                        "questionId": "94300000-0000-4000-8000-000000000002",
                        "inspectionId": "94300000-0000-4000-8000-000000000001",
                        "optionId": null,
                        "text": "Inspection answer",
                        "comment": null,
                        "version": "answer-v1.94300000-0000-4000-8000-000000000001.94300000-0000-4000-8000-000000000002.2",
                        "inspectionVersion": "inspection-v1.94300000-0000-4000-8000-000000000001.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "clearInspectionAnswer",
        "summary": "Clear an answer while preserving findings and option comments",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read",
          "inspections:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94300000-0000-4000-8000-000000000001"
          },
          {
            "name": "questionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94300000-0000-4000-8000-000000000002"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "answer-v1.94300000-0000-4000-8000-000000000001.94300000-0000-4000-8000-000000000002.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId",
            "questionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionAnswerResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "kind": "answer",
                        "questionId": "94300000-0000-4000-8000-000000000002",
                        "inspectionId": "94300000-0000-4000-8000-000000000001",
                        "optionId": null,
                        "text": null,
                        "comment": null,
                        "version": "answer-v1.94300000-0000-4000-8000-000000000001.94300000-0000-4000-8000-000000000002.2",
                        "inspectionVersion": "inspection-v1.94300000-0000-4000-8000-000000000001.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/{inspectionId}/checklist/questions/{questionId}/answer/comment": {
      "patch": {
        "operationId": "setInspectionAnswerComment",
        "summary": "Set a locked question annotation with a current per-question version",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read",
          "inspections:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94300000-0000-4000-8000-000000000001"
          },
          {
            "name": "questionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94300000-0000-4000-8000-000000000002"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetInspectionAnswerComment"
              },
              "examples": {
                "command": {
                  "value": {
                    "comment": "Additional context",
                    "expectedVersion": "answer-v1.94300000-0000-4000-8000-000000000001.94300000-0000-4000-8000-000000000002.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId",
            "questionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionAnswerResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "kind": "answer",
                        "questionId": "94300000-0000-4000-8000-000000000002",
                        "inspectionId": "94300000-0000-4000-8000-000000000001",
                        "optionId": null,
                        "text": null,
                        "comment": "Additional context",
                        "version": "answer-v1.94300000-0000-4000-8000-000000000001.94300000-0000-4000-8000-000000000002.2",
                        "inspectionVersion": "inspection-v1.94300000-0000-4000-8000-000000000001.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/{inspectionId}/checklist/questions/{questionId}/observations": {
      "post": {
        "operationId": "createInspectionObservation",
        "summary": "Create a numbered checklist finding through the canonical inspection operation",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "inspections:read",
          "inspections:write",
          "observations:read",
          "observations:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94400000-0000-4000-8000-000000000001"
          },
          {
            "name": "questionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94400000-0000-4000-8000-000000000002"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInspectionObservation"
              },
              "examples": {
                "command": {
                  "value": {
                    "optionId": "94400000-0000-4000-8000-000000000004",
                    "placementId": "94400000-0000-4000-8000-000000000005",
                    "controlPoint": "Circuit",
                    "title": "Observed defect",
                    "description": "Insulation is damaged.",
                    "tgGrade": "TG2",
                    "extensionValues": null,
                    "expectedVersion": "answer-v1.94400000-0000-4000-8000-000000000001.94400000-0000-4000-8000-000000000002.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId",
            "questionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionObservationCreatedResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "answer": {
                          "kind": "answer",
                          "questionId": "94400000-0000-4000-8000-000000000002",
                          "optionId": null,
                          "text": null,
                          "comment": null,
                          "version": "answer-v1.94400000-0000-4000-8000-000000000001.94400000-0000-4000-8000-000000000002.2",
                          "inspectionId": "94400000-0000-4000-8000-000000000001",
                          "inspectionVersion": "inspection-v1.94400000-0000-4000-8000-000000000001.2"
                        },
                        "observation": {
                          "id": "94400000-0000-4000-8000-000000000003",
                          "placementId": "94400000-0000-4000-8000-000000000005",
                          "sequenceYear": 2026,
                          "sequenceNumber": 1
                        },
                        "link": {
                          "id": "94400000-0000-4000-8000-000000000006",
                          "answerOptionId": "94400000-0000-4000-8000-000000000004",
                          "observationId": "94400000-0000-4000-8000-000000000003"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/{inspectionId}/checklist/questions/{questionId}/observations/link": {
      "post": {
        "operationId": "linkInspectionObservations",
        "summary": "Add existing same-property findings to a locked observation option",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "inspections:read",
          "inspections:write",
          "observations:read",
          "observations:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94400000-0000-4000-8000-000000000001"
          },
          {
            "name": "questionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94400000-0000-4000-8000-000000000002"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LinkInspectionObservations"
              },
              "examples": {
                "command": {
                  "value": {
                    "optionId": "94400000-0000-4000-8000-000000000004",
                    "observationIds": [
                      "94400000-0000-4000-8000-000000000003"
                    ],
                    "expectedVersion": "answer-v1.94400000-0000-4000-8000-000000000001.94400000-0000-4000-8000-000000000002.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId",
            "questionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionObservationsLinkedResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "answer": {
                          "kind": "answer",
                          "questionId": "94400000-0000-4000-8000-000000000002",
                          "optionId": null,
                          "text": null,
                          "comment": null,
                          "version": "answer-v1.94400000-0000-4000-8000-000000000001.94400000-0000-4000-8000-000000000002.2",
                          "inspectionId": "94400000-0000-4000-8000-000000000001",
                          "inspectionVersion": "inspection-v1.94400000-0000-4000-8000-000000000001.2"
                        },
                        "links": [
                          {
                            "id": "94400000-0000-4000-8000-000000000006",
                            "answerOptionId": "94400000-0000-4000-8000-000000000004",
                            "observationId": "94400000-0000-4000-8000-000000000003"
                          }
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/{inspectionId}/checklist/questions/{questionId}/observations/{observationId}": {
      "delete": {
        "operationId": "unlinkInspectionObservation",
        "summary": "Unlink a retained finding without deleting it",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "properties:read",
          "inspections:read",
          "inspections:write",
          "observations:read",
          "observations:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94400000-0000-4000-8000-000000000001"
          },
          {
            "name": "questionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94400000-0000-4000-8000-000000000002"
          },
          {
            "name": "observationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94400000-0000-4000-8000-000000000003"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "answer-v1.94400000-0000-4000-8000-000000000001.94400000-0000-4000-8000-000000000002.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId",
            "questionId",
            "observationId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionObservationUnlinkedResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "answer": {
                          "kind": "answer",
                          "questionId": "94400000-0000-4000-8000-000000000002",
                          "optionId": null,
                          "text": null,
                          "comment": null,
                          "version": "answer-v1.94400000-0000-4000-8000-000000000001.94400000-0000-4000-8000-000000000002.2",
                          "inspectionId": "94400000-0000-4000-8000-000000000001",
                          "inspectionVersion": "inspection-v1.94400000-0000-4000-8000-000000000001.2"
                        },
                        "observationId": "94400000-0000-4000-8000-000000000003",
                        "unlinked": true
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/inspections/{inspectionId}/completion": {
      "post": {
        "operationId": "completePropertyInspection",
        "summary": "Complete an inspection or return committed safe readiness blockers",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspections:read",
          "inspections:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "inspectionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94400000-0000-4000-8000-000000000001"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CompletePropertyInspection"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "inspection-v1.94400000-0000-4000-8000-000000000001.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "inspectionId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionCompletionResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "inspection": {
                          "id": "94400000-0000-4000-8000-000000000001",
                          "propertyId": "22222222-2222-4222-8222-222222222222",
                          "controlNumber": "INSP-26.001",
                          "status": "completed",
                          "inspectorRef": null,
                          "checklist": {
                            "id": "94400000-0000-4000-8000-000000000007",
                            "versionId": "94400000-0000-4000-8000-000000000008",
                            "version": 2023
                          },
                          "answers": {
                            "answered": 36,
                            "total": 36
                          },
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "updatedAt": "2026-10-26T10:00:00.000Z",
                          "version": "inspection-v1.94400000-0000-4000-8000-000000000001.2"
                        },
                        "completion": {
                          "outcome": "completed",
                          "issues": [],
                          "issueCount": 0,
                          "hasMore": false
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/documents": {
      "get": {
        "operationId": "listPropertyDocuments",
        "summary": "List authorized property document metadata",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "documents:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "documentType",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "sales_prospectus",
                "appraisal_report",
                "declaration_of_conformity",
                "previous_electrical_inspection_report",
                "electrical_documentation",
                "floor_plan",
                "other"
              ]
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-normalized-maxLength": 120,
              "x-length-unit": "Unicode code points",
              "x-normalization": "trim before validation"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedDocumentListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/documents/{documentId}/content": {
      "get": {
        "operationId": "getPropertyDocumentContent",
        "summary": "Download one authorized property document",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "documents:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94500000-0000-4000-8000-000000000003"
          }
        ],
        "responses": {
          "302": {
            "description": "A private, no-store redirect valid for 60 seconds. Every admitted link, including retries, consumes its measured byte budget.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Location": {
                "required": true,
                "description": "Single-object signed download URL, valid for 60 seconds.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "documentId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/documents/{documentId}": {
      "patch": {
        "operationId": "updatePropertyDocumentMetadata",
        "summary": "Rename or reclassify a property document",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "documents:read",
          "documents:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94600000-0000-4000-8000-000000000003"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdatePropertyDocumentMetadata"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "document-v1.94600000-0000-4000-8000-000000000003.1",
                    "filename": "report.pdf",
                    "documentType": "floor_plan"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "documentId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94600000-0000-4000-8000-000000000003",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "filename": "report.pdf",
                        "documentType": "floor_plan",
                        "pageCount": null,
                        "sizeBytes": 100,
                        "mimeType": "application/pdf",
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z",
                        "version": "document-v1.94600000-0000-4000-8000-000000000003.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removePropertyDocument",
        "summary": "Soft-delete a property document; recovery requires support",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "documents:read",
          "documents:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "documentId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94600000-0000-4000-8000-000000000003"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "document-v1.94600000-0000-4000-8000-000000000003.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "propertyId",
            "documentId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DocumentRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94600000-0000-4000-8000-000000000003",
                        "propertyId": "22222222-2222-4222-8222-222222222222",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z",
                        "version": "document-v1.94600000-0000-4000-8000-000000000003.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/reports": {
      "get": {
        "operationId": "listAccountReports",
        "summary": "List authorized account report metadata",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "reports:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-normalized-maxLength": 120,
              "x-length-unit": "Unicode code points",
              "x-normalization": "trim before validation"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedReportListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/properties/{propertyId}/reports": {
      "get": {
        "operationId": "listPropertyReports",
        "summary": "List authorized property report metadata",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "reports:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "propertyId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "22222222-2222-4222-8222-222222222222"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-normalized-maxLength": 120,
              "x-length-unit": "Unicode code points",
              "x-normalization": "trim before validation"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedReportListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "94700000-0000-4000-8000-000000000001",
                          "propertyId": "22222222-2222-4222-8222-222222222222",
                          "inspectorPersonId": "94700000-0000-4000-8000-000000000002",
                          "reportTemplateVersionId": null,
                          "reportType": null,
                          "name": "Kontrollrapport",
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "updatedAt": "2026-10-26T10:00:00.000Z"
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/reports/{reportId}/pdfs": {
      "get": {
        "operationId": "listReportPdfGenerations",
        "summary": "List generated PDF versions and pending or failed status",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "reports:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94700000-0000-4000-8000-000000000001"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportPdfListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "94700000-0000-4000-8000-000000000003",
                          "reportId": "94700000-0000-4000-8000-000000000001",
                          "revisionNumber": 123,
                          "versionLabel": "v123",
                          "status": "succeeded",
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "updatedAt": "2026-10-26T10:00:00.000Z",
                          "capturedAt": "2026-10-26T10:00:00.000Z",
                          "downloadable": true
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/reports/{reportId}/pdfs/{generationId}/content": {
      "get": {
        "operationId": "getReportPdfContent",
        "summary": "Download an existing completed report PDF",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "reports:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94700000-0000-4000-8000-000000000001"
          },
          {
            "name": "generationId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94700000-0000-4000-8000-000000000003"
          }
        ],
        "responses": {
          "302": {
            "description": "A private, no-store redirect valid for 60 seconds to an existing immutable PDF. Each admitted link consumes the measured byte budget. Pending or failed generations are not downloadable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Location": {
                "required": true,
                "description": "Single-object signed download URL, valid for 60 seconds.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "generationId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/inspection-tools": {
      "get": {
        "operationId": "listInspectionTools",
        "summary": "Read team measuring equipment",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspection-tools:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-normalized-maxLength": 200,
              "x-length-unit": "Unicode code points",
              "x-normalization": "trim before validation"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "updatedAt",
            "desc"
          ],
          "tieBreak": [
            "id",
            "desc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedInspectionToolListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "94800000-0000-4000-8000-000000000001",
                          "name": "Meter",
                          "manufacturer": "Acme",
                          "model": "M1",
                          "serialNumber": null,
                          "lastCalibrationAt": null,
                          "nextCalibrationAt": null,
                          "nextCalibrationIsManual": false,
                          "calibrationStatus": "not_set",
                          "version": "tool-v1.94800000-0000-4000-8000-000000000001.1",
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "updatedAt": "2026-10-26T10:00:00.000Z"
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createInspectionTool",
        "summary": "Create measuring equipment with advisory duplicate warnings",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspection-tools:read",
          "inspection-tools:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateInspectionTool"
              },
              "examples": {
                "command": {
                  "value": {
                    "name": "Meter",
                    "manufacturer": "Acme",
                    "model": "M1",
                    "serialNumber": null,
                    "lastCalibrationAt": null,
                    "nextCalibrationAt": null,
                    "nextCalibrationIsManual": false
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "toolId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "201": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionToolResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94800000-0000-4000-8000-000000000001",
                        "name": "Meter",
                        "manufacturer": "Acme",
                        "model": "M1",
                        "serialNumber": null,
                        "lastCalibrationAt": null,
                        "nextCalibrationAt": null,
                        "nextCalibrationIsManual": false,
                        "calibrationStatus": "not_set",
                        "version": "tool-v1.94800000-0000-4000-8000-000000000001.1",
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      },
                      "serialWarning": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "name"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/inspection-tools/{toolId}": {
      "patch": {
        "operationId": "updateInspectionTool",
        "summary": "Replace measuring-equipment metadata under its current version",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspection-tools:read",
          "inspection-tools:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "toolId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94800000-0000-4000-8000-000000000001"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateInspectionTool"
              },
              "examples": {
                "command": {
                  "value": {
                    "name": "Meter",
                    "manufacturer": "Acme",
                    "model": "M1",
                    "serialNumber": null,
                    "lastCalibrationAt": null,
                    "nextCalibrationAt": null,
                    "nextCalibrationIsManual": false,
                    "expectedVersion": "tool-v1.94800000-0000-4000-8000-000000000001.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "toolId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionToolResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94800000-0000-4000-8000-000000000001",
                        "name": "Meter",
                        "manufacturer": "Acme",
                        "model": "M1",
                        "serialNumber": null,
                        "lastCalibrationAt": null,
                        "nextCalibrationAt": null,
                        "nextCalibrationIsManual": false,
                        "calibrationStatus": "not_set",
                        "version": "tool-v1.94800000-0000-4000-8000-000000000001.2",
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      },
                      "serialWarning": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeInspectionTool",
        "summary": "Soft-delete measuring equipment; recovery requires support",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "inspection-tools:read",
          "inspection-tools:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "toolId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94800000-0000-4000-8000-000000000001"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "tool-v1.94800000-0000-4000-8000-000000000001.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "toolId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InspectionToolRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94800000-0000-4000-8000-000000000001",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z",
                        "version": "tool-v1.94800000-0000-4000-8000-000000000001.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/certificates": {
      "get": {
        "operationId": "listCertificates",
        "summary": "List own, eligible member or archived certificate metadata",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "certificates:read"
        ],
        "x-incremental-sync": {
          "changedSince": "initial or prior syncCheckpoint",
          "exclusiveParameters": [
            "changedSince",
            "cursor",
            "includeDeleted",
            "pageSize"
          ],
          "checkpoint": "Only the final page carries syncCheckpoint; intermediate pages carry nextCursor."
        },
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "pageIndex",
            "in": "query",
            "required": false,
            "schema": {
              "default": 0,
              "type": "integer",
              "minimum": 0,
              "maximum": 1000000
            },
            "example": 0,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "schema": {
              "default": 25,
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            },
            "example": 25,
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "view",
            "in": "query",
            "required": false,
            "schema": {
              "default": "mine",
              "type": "string",
              "enum": [
                "mine",
                "all",
                "archived"
              ]
            },
            "example": "mine",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "search",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "x-normalization": "trim",
              "x-normalized-maxLength": 200,
              "x-length-unit": "Unicode code points"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "changedSince",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "example": "initial",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 2048,
              "pattern": "^[A-Za-z0-9_.-]+$"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "includeDeleted",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          }
        ],
        "x-ordering": {
          "default": [
            "updatedAt",
            "desc"
          ],
          "tieBreak": [
            "id",
            "desc"
          ]
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServedCertificateListResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": [
                        {
                          "id": "94900000-0000-4000-8000-000000000001",
                          "holderPersonId": "94900000-0000-4000-8000-000000000002",
                          "holderName": "Inspector",
                          "name": "NEK405",
                          "standard": "NEK405-2",
                          "issuingBody": "Issuer",
                          "identifier": "A1",
                          "issuedAt": "2025-01-01",
                          "validUntil": "2027-01-01",
                          "archivedAt": null,
                          "status": "active",
                          "version": "cert-v1.94900000-0000-4000-8000-000000000001.1",
                          "createdAt": "2026-10-26T10:00:00.000Z",
                          "updatedAt": "2026-10-26T10:00:00.000Z"
                        }
                      ],
                      "meta": {
                        "pageIndex": 0,
                        "pageSize": 25,
                        "hasMore": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "pageSize"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/certificates/{certificateId}": {
      "get": {
        "operationId": "getCertificate",
        "summary": "Read eligible certificate metadata without cover access",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "certificates:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "certificateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94900000-0000-4000-8000-000000000001"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94900000-0000-4000-8000-000000000001",
                        "holderPersonId": "94900000-0000-4000-8000-000000000002",
                        "holderName": "Inspector",
                        "name": "NEK405",
                        "standard": "NEK405-2",
                        "issuingBody": "Issuer",
                        "identifier": "A1",
                        "issuedAt": "2025-01-01",
                        "validUntil": "2027-01-01",
                        "archivedAt": null,
                        "status": "active",
                        "version": "cert-v1.94900000-0000-4000-8000-000000000001.1",
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "certificateId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "patch": {
        "operationId": "updateCertificate",
        "summary": "Replace certificate metadata with an exact version",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "certificates:read",
          "certificates:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "certificateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94900000-0000-4000-8000-000000000001"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCertificate"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "cert-v1.94900000-0000-4000-8000-000000000001.1",
                    "name": "NEK405",
                    "standard": "NEK405-2",
                    "issuingBody": "Issuer",
                    "identifier": "A1",
                    "issuedAt": "2025-01-01",
                    "validUntil": "2027-01-01"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "certificateId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94900000-0000-4000-8000-000000000001",
                        "holderPersonId": "94900000-0000-4000-8000-000000000002",
                        "holderName": "Inspector",
                        "name": "NEK405",
                        "standard": "NEK405-2",
                        "issuingBody": "Issuer",
                        "identifier": "A1",
                        "issuedAt": "2025-01-01",
                        "validUntil": "2027-01-01",
                        "archivedAt": null,
                        "status": "active",
                        "version": "cert-v1.94900000-0000-4000-8000-000000000001.2",
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      },
      "delete": {
        "operationId": "removeCertificate",
        "summary": "Soft-delete an archived certificate; recovery requires support",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "certificates:read",
          "certificates:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "certificateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94900000-0000-4000-8000-000000000001"
          },
          {
            "name": "expectedVersion",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
            },
            "example": "cert-v1.94900000-0000-4000-8000-000000000001.1",
            "style": "form",
            "explode": false,
            "description": "At most one value; unknown and repeated query parameters are rejected."
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "certificateId"
          ],
          "replayReauthorization": "deletion_metadata"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateRemovalResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94900000-0000-4000-8000-000000000001",
                        "deleted": true,
                        "deletedAt": "2026-10-26T10:00:00.000Z",
                        "version": "cert-v1.94900000-0000-4000-8000-000000000001.2"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "query",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/certificates/{certificateId}/archive": {
      "post": {
        "operationId": "archiveCertificate",
        "summary": "Archive an active or expired certificate",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "certificates:read",
          "certificates:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "certificateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94900000-0000-4000-8000-000000000001"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateLifecycleCommand"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "cert-v1.94900000-0000-4000-8000-000000000001.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "certificateId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94900000-0000-4000-8000-000000000001",
                        "holderPersonId": "94900000-0000-4000-8000-000000000002",
                        "holderName": "Inspector",
                        "name": "NEK405",
                        "standard": "NEK405-2",
                        "issuingBody": "Issuer",
                        "identifier": "A1",
                        "issuedAt": "2025-01-01",
                        "validUntil": "2027-01-01",
                        "archivedAt": "2026-10-26T10:00:00.000Z",
                        "status": "archived",
                        "version": "cert-v1.94900000-0000-4000-8000-000000000001.2",
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/certificates/{certificateId}/unarchive": {
      "post": {
        "operationId": "unarchiveCertificate",
        "summary": "Unarchive a retained non-deleted certificate",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "certificates:read",
          "certificates:write"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "certificateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94900000-0000-4000-8000-000000000001"
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255,
              "pattern": "^[\\x21-\\x7e]+$",
              "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
            },
            "example": "9c2df7e8-b8aa-4c95-a1ac-38eb256435f4"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CertificateLifecycleCommand"
              },
              "examples": {
                "command": {
                  "value": {
                    "expectedVersion": "cert-v1.94900000-0000-4000-8000-000000000001.1"
                  }
                }
              }
            }
          }
        },
        "x-max-body-bytes": 262144,
        "x-idempotency": {
          "required": true,
          "completedOutcomeRetentionHoursMinimum": 24,
          "reauthorizeReplay": true,
          "namespace": [
            "account",
            "actor",
            "token",
            "operation"
          ],
          "fingerprint": [
            "apiMajorVersion",
            "operationCommandVersion",
            "operation",
            "URL account/property/resource IDs",
            "normalized validated command",
            "preconditions"
          ],
          "versionPolicy": "API major and operation command versions stay stable across compatible package releases. Retained retries use the recorded command/canonicalization version, never the current package minor or patch version.",
          "commandVersion": 1,
          "canonicalizationVersion": 1,
          "target": [
            "certificateId"
          ],
          "replayReauthorization": "live"
        },
        "responses": {
          "200": {
            "description": "Successful response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CertificateResponse"
                },
                "examples": {
                  "success": {
                    "value": {
                      "data": {
                        "id": "94900000-0000-4000-8000-000000000001",
                        "holderPersonId": "94900000-0000-4000-8000-000000000002",
                        "holderName": "Inspector",
                        "name": "NEK405",
                        "standard": "NEK405-2",
                        "issuingBody": "Issuer",
                        "identifier": "A1",
                        "issuedAt": "2025-01-01",
                        "validUntil": "2027-01-01",
                        "archivedAt": null,
                        "status": "active",
                        "version": "cert-v1.94900000-0000-4000-8000-000000000001.2",
                        "createdAt": "2026-10-26T10:00:00.000Z",
                        "updatedAt": "2026-10-26T10:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "body",
                            "expectedVersion"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The version is stale, the key was used for a different command, or the command is still pending.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 409
                        },
                        "code": {
                          "enum": [
                            "version_conflict",
                            "idempotency_conflict",
                            "idempotency_pending"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "version_conflict": {
                    "value": {
                      "type": "urn:elta:problem:version-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "version_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_conflict": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-conflict",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_conflict",
                      "requestId": "request-example-1"
                    }
                  },
                  "idempotency_pending": {
                    "value": {
                      "type": "urn:elta:problem:idempotency-pending",
                      "title": "Conflict",
                      "status": 409,
                      "detail": "The version is stale, the key was used for a different command, or the command is still pending.",
                      "instance": "/requests/request-example-1",
                      "code": "idempotency_pending",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers-by-code": {
              "idempotency_pending": [
                "Retry-After"
              ]
            }
          },
          "413": {
            "description": "The JSON body exceeds 256 KiB.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 413
                        },
                        "code": {
                          "enum": [
                            "payload_too_large"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "payload_too_large": {
                    "value": {
                      "type": "urn:elta:problem:payload-too-large",
                      "title": "Payload too large",
                      "status": 413,
                      "detail": "The JSON body exceeds 256 KiB.",
                      "instance": "/requests/request-example-1",
                      "code": "payload_too_large",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "The request body must use application/json.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 415
                        },
                        "code": {
                          "enum": [
                            "unsupported_media_type"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unsupported_media_type": {
                    "value": {
                      "type": "urn:elta:problem:unsupported-media-type",
                      "title": "Unsupported media type",
                      "status": 415,
                      "detail": "The request body must use application/json.",
                      "instance": "/requests/request-example-1",
                      "code": "unsupported_media_type",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/accounts/{accountId}/certificates/{certificateId}/cover/content": {
      "get": {
        "operationId": "getCertificateCoverContent",
        "summary": "Download the own or managed A4 certificate cover",
        "security": [
          {
            "OpaqueBearer": []
          }
        ],
        "x-required-capabilities": [
          "certificates:read"
        ],
        "parameters": [
          {
            "name": "accountId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "11111111-1111-4111-8111-111111111111"
          },
          {
            "name": "certificateId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "example": "94900000-0000-4000-8000-000000000001"
          }
        ],
        "responses": {
          "302": {
            "description": "Private no-store60-second redirect to the normalized WebP master. Another member’s visible metadata does not grant cover access. Each admitted link consumes the measured byte budget.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Location": {
                "required": true,
                "description": "Single-object signed download URL, valid for 60 seconds.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            }
          },
          "400": {
            "description": "The request is malformed or invalid.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 400
                        },
                        "code": {
                          "enum": [
                            "invalid_request"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "invalid_request": {
                    "value": {
                      "type": "urn:elta:problem:invalid-request",
                      "title": "Invalid request",
                      "status": 400,
                      "detail": "The request is malformed or invalid.",
                      "instance": "/requests/request-example-1",
                      "code": "invalid_request",
                      "requestId": "request-example-1",
                      "errors": [
                        {
                          "path": [
                            "path",
                            "certificateId"
                          ],
                          "code": "invalid",
                          "message": "This field is missing or invalid."
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "A valid opaque Bearer token is required.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "WWW-Authenticate": {
                "$ref": "#/components/headers/BearerChallenge"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 401
                        },
                        "code": {
                          "enum": [
                            "unauthenticated"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "unauthenticated": {
                    "value": {
                      "type": "urn:elta:problem:unauthenticated",
                      "title": "Unauthorized",
                      "status": 401,
                      "detail": "A valid opaque Bearer token is required.",
                      "instance": "/requests/request-example-1",
                      "code": "unauthenticated",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The current principal lacks the required capability or account lifecycle access.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 403
                        },
                        "code": {
                          "enum": [
                            "forbidden"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "forbidden": {
                    "value": {
                      "type": "urn:elta:problem:forbidden",
                      "title": "Forbidden",
                      "status": 403,
                      "detail": "The current principal lacks the required capability or account lifecycle access.",
                      "instance": "/requests/request-example-1",
                      "code": "forbidden",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "The requested resource was not found. Missing and foreign resources have the same response.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 404
                        },
                        "code": {
                          "enum": [
                            "not_found"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "not_found": {
                    "value": {
                      "type": "urn:elta:problem:not-found",
                      "title": "Not found",
                      "status": 404,
                      "detail": "The requested resource was not found. Missing and foreign resources have the same response.",
                      "instance": "/requests/request-example-1",
                      "code": "not_found",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "The request quota has been exhausted.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfterRequired"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 429
                        },
                        "code": {
                          "enum": [
                            "rate_limited"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "rate_limited": {
                    "value": {
                      "type": "urn:elta:problem:rate-limited",
                      "title": "Too many requests",
                      "status": 429,
                      "detail": "The request quota has been exhausted.",
                      "instance": "/requests/request-example-1",
                      "code": "rate_limited",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            },
            "x-required-headers": [
              "Retry-After"
            ]
          },
          "500": {
            "description": "An unexpected error occurred.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 500
                        },
                        "code": {
                          "enum": [
                            "internal_error"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "internal_error": {
                    "value": {
                      "type": "urn:elta:problem:internal-error",
                      "title": "Internal server error",
                      "status": 500,
                      "detail": "An unexpected error occurred.",
                      "instance": "/requests/request-example-1",
                      "code": "internal_error",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "A required dependency is unavailable.",
            "headers": {
              "Cache-Control": {
                "$ref": "#/components/headers/CacheControl"
              },
              "X-Request-Id": {
                "$ref": "#/components/headers/RequestId"
              },
              "Retry-After": {
                "$ref": "#/components/headers/RetryAfter"
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Problem"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "status": {
                          "const": 503
                        },
                        "code": {
                          "enum": [
                            "dependency_unavailable"
                          ]
                        }
                      }
                    }
                  ]
                },
                "examples": {
                  "dependency_unavailable": {
                    "value": {
                      "type": "urn:elta:problem:dependency-unavailable",
                      "title": "Service unavailable",
                      "status": 503,
                      "detail": "A required dependency is unavailable.",
                      "instance": "/requests/request-example-1",
                      "code": "dependency_unavailable",
                      "requestId": "request-example-1"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Certificate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "holderPersonId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "holderName": {
            "type": "string",
            "minLength": 1
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
          },
          "standard": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
              },
              {
                "type": "null"
              }
            ]
          },
          "issuingBody": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
          },
          "identifier": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
          },
          "issuedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "x-date-year-range": "0001 through9999"
              },
              {
                "type": "null"
              }
            ]
          },
          "validUntil": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "x-date-year-range": "0001 through9999"
              },
              {
                "type": "null"
              }
            ]
          },
          "archivedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "expired",
              "archived"
            ]
          },
          "version": {
            "type": "string",
            "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          }
        },
        "required": [
          "id",
          "holderPersonId",
          "holderName",
          "name",
          "standard",
          "issuingBody",
          "identifier",
          "issuedAt",
          "validUntil",
          "archivedAt",
          "status",
          "version",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false,
        "x-version-target": "version belongs to this id",
        "x-certificate-calendar": "Europe/Oslo; archived takes precedence, validUntil before today is expired"
      },
      "CertificateVersion": {
        "type": "string",
        "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
        "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
      },
      "CertificatePath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "certificateId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "certificateId"
        ],
        "additionalProperties": false
      },
      "CertificateQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "view": {
            "default": "mine",
            "type": "string",
            "enum": [
              "mine",
              "all",
              "archived"
            ]
          },
          "search": {
            "type": "string",
            "x-normalization": "trim",
            "x-normalized-maxLength": 200,
            "x-length-unit": "Unicode code points"
          }
        },
        "additionalProperties": false
      },
      "UpdateCertificate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "standard": {
            "type": [
              "string",
              "null"
            ]
          },
          "issuingBody": {
            "type": "string"
          },
          "identifier": {
            "type": "string"
          },
          "issuedAt": {
            "type": [
              "string",
              "null"
            ]
          },
          "validUntil": {
            "type": [
              "string",
              "null"
            ]
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
          }
        },
        "required": [
          "name",
          "issuingBody",
          "identifier",
          "expectedVersion"
        ],
        "additionalProperties": false,
        "x-normalization": "NFKC, whitespace collapse and trim; optional empty dates/text become null",
        "x-normalized-length-unit": "UTF-16 code units",
        "x-normalized-field-limits": {
          "name": 200,
          "standard": 200,
          "issuingBody": 200,
          "identifier": 120
        },
        "x-date-order": "validUntil >= issuedAt; YYYY-MM-DD years0001..9999"
      },
      "CertificateLifecycleCommand": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "CertificateResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "holderPersonId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "holderName": {
                "type": "string",
                "minLength": 1
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
              },
              "standard": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "issuingBody": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
              },
              "identifier": {
                "type": "string",
                "minLength": 1,
                "maxLength": 120,
                "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
              },
              "issuedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                    "x-date-year-range": "0001 through9999"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "validUntil": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                    "x-date-year-range": "0001 through9999"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "archivedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                    "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "expired",
                  "archived"
                ]
              },
              "version": {
                "type": "string",
                "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              }
            },
            "required": [
              "id",
              "holderPersonId",
              "holderName",
              "name",
              "standard",
              "issuingBody",
              "identifier",
              "issuedAt",
              "validUntil",
              "archivedAt",
              "status",
              "version",
              "createdAt",
              "updatedAt"
            ],
            "additionalProperties": false,
            "x-version-target": "version belongs to this id",
            "x-certificate-calendar": "Europe/Oslo; archived takes precedence, validUntil before today is expired"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "CertificateRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "version": {
                "type": "string",
                "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
              }
            },
            "required": [
              "id",
              "deleted",
              "deletedAt",
              "version"
            ],
            "additionalProperties": false,
            "x-version-target": "version belongs to this id"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "CertificateListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "holderPersonId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "holderName": {
                  "type": "string",
                  "minLength": 1
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                },
                "standard": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "issuingBody": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                },
                "identifier": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120,
                  "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                },
                "issuedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                      "x-date-year-range": "0001 through9999"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "validUntil": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                      "x-date-year-range": "0001 through9999"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "archivedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "expired",
                    "archived"
                  ]
                },
                "version": {
                  "type": "string",
                  "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                  "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                }
              },
              "required": [
                "id",
                "holderPersonId",
                "holderName",
                "name",
                "standard",
                "issuingBody",
                "identifier",
                "issuedAt",
                "validUntil",
                "archivedAt",
                "status",
                "version",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false,
              "x-version-target": "version belongs to this id",
              "x-certificate-calendar": "Europe/Oslo; archived takes precedence, validUntil before today is expired"
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "CertificateSyncResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "holderPersonId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "holderName": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "standard": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "issuingBody": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "identifier": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "issuedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "x-date-year-range": "0001 through9999"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "validUntil": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "x-date-year-range": "0001 through9999"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "archivedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "expired",
                        "archived"
                      ]
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                      "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "id",
                    "holderPersonId",
                    "holderName",
                    "name",
                    "standard",
                    "issuingBody",
                    "identifier",
                    "issuedAt",
                    "validUntil",
                    "archivedAt",
                    "status",
                    "version",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false,
                  "x-version-target": "version belongs to this id",
                  "x-certificate-calendar": "Europe/Oslo; archived takes precedence, validUntil before today is expired"
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                      "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
                    }
                  },
                  "required": [
                    "id",
                    "deleted",
                    "deletedAt",
                    "version"
                  ],
                  "additionalProperties": false,
                  "x-version-target": "version belongs to this id"
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "ServedCertificateQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "view": {
                "default": "mine",
                "type": "string",
                "enum": [
                  "mine",
                  "all",
                  "archived"
                ]
              },
              "search": {
                "type": "string",
                "x-normalization": "trim",
                "x-normalized-maxLength": 200,
                "x-length-unit": "Unicode code points"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedCertificateListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "holderPersonId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "holderName": {
                      "type": "string",
                      "minLength": 1
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "standard": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "issuingBody": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "identifier": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "issuedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "x-date-year-range": "0001 through9999"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "validUntil": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "x-date-year-range": "0001 through9999"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "archivedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "expired",
                        "archived"
                      ]
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                      "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "id",
                    "holderPersonId",
                    "holderName",
                    "name",
                    "standard",
                    "issuingBody",
                    "identifier",
                    "issuedAt",
                    "validUntil",
                    "archivedAt",
                    "status",
                    "version",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false,
                  "x-version-target": "version belongs to this id",
                  "x-certificate-calendar": "Europe/Oslo; archived takes precedence, validUntil before today is expired"
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "holderPersonId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "holderName": {
                          "type": "string",
                          "minLength": 1
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        "standard": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "issuingBody": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        "identifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        "issuedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                              "x-date-year-range": "0001 through9999"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "validUntil": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                              "x-date-year-range": "0001 through9999"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "archivedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                              "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "expired",
                            "archived"
                          ]
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                          "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        }
                      },
                      "required": [
                        "id",
                        "holderPersonId",
                        "holderName",
                        "name",
                        "standard",
                        "issuingBody",
                        "identifier",
                        "issuedAt",
                        "validUntil",
                        "archivedAt",
                        "status",
                        "version",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false,
                      "x-version-target": "version belongs to this id",
                      "x-certificate-calendar": "Europe/Oslo; archived takes precedence, validUntil before today is expired"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                          "x-version-target": "certificate UUID, positive signed-bigint revision; opaque to callers"
                        }
                      },
                      "required": [
                        "id",
                        "deleted",
                        "deletedAt",
                        "version"
                      ],
                      "additionalProperties": false,
                      "x-version-target": "version belongs to this id"
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "InspectionTool": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
          },
          "manufacturer": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
          },
          "model": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
          },
          "serialNumber": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 120
              },
              {
                "type": "null"
              }
            ]
          },
          "lastCalibrationAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "x-date-year-range": "0001 through 9999"
              },
              {
                "type": "null"
              }
            ]
          },
          "nextCalibrationAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "x-date-year-range": "0001 through 9999"
              },
              {
                "type": "null"
              }
            ]
          },
          "nextCalibrationIsManual": {
            "type": "boolean"
          },
          "calibrationStatus": {
            "type": "string",
            "enum": [
              "current",
              "past_due",
              "not_set"
            ]
          },
          "version": {
            "type": "string",
            "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          }
        },
        "required": [
          "id",
          "name",
          "manufacturer",
          "model",
          "serialNumber",
          "lastCalibrationAt",
          "nextCalibrationAt",
          "nextCalibrationIsManual",
          "calibrationStatus",
          "version",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false,
        "x-version-target": "version belongs to this id",
        "x-calibration-calendar": "Europe/Oslo; next calibration before today is past_due"
      },
      "ToolVersion": {
        "type": "string",
        "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
        "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
      },
      "InspectionToolPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "toolId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "toolId"
        ],
        "additionalProperties": false
      },
      "InspectionToolQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "type": "string",
            "x-normalized-maxLength": 200,
            "x-length-unit": "Unicode code points",
            "x-normalization": "trim before validation"
          }
        },
        "additionalProperties": false
      },
      "CreateInspectionTool": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "manufacturer": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "serialNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastCalibrationAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "x-date-year-range": "0001 through 9999"
              },
              {
                "type": "null"
              }
            ]
          },
          "nextCalibrationAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "x-date-year-range": "0001 through 9999"
              },
              {
                "type": "null"
              }
            ]
          },
          "nextCalibrationIsManual": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "manufacturer",
          "model"
        ],
        "additionalProperties": false,
        "x-normalization": "shared web metadata: trim, NFKC, collapse whitespace; blank serial to null; missing dates to null and manual flag to false",
        "x-field-limits": "name/manufacturer/model: max200 code points before normalization, max200 UTF-16 units after normalization; serial: max120 normalized UTF-16 units",
        "x-date-order": "nextCalibrationAt is not before lastCalibrationAt; null dates allowed"
      },
      "UpdateInspectionTool": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "manufacturer": {
            "type": "string"
          },
          "model": {
            "type": "string"
          },
          "serialNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "lastCalibrationAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "x-date-year-range": "0001 through 9999"
              },
              {
                "type": "null"
              }
            ]
          },
          "nextCalibrationAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                "x-date-year-range": "0001 through 9999"
              },
              {
                "type": "null"
              }
            ]
          },
          "nextCalibrationIsManual": {
            "type": "boolean"
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
          }
        },
        "required": [
          "name",
          "manufacturer",
          "model",
          "expectedVersion"
        ],
        "additionalProperties": false,
        "x-normalization": "shared web metadata: trim, NFKC, collapse whitespace; blank serial to null; missing dates to null and manual flag to false",
        "x-field-limits": "name/manufacturer/model: max200 code points before normalization, max200 UTF-16 units after normalization; serial: max120 normalized UTF-16 units",
        "x-date-order": "nextCalibrationAt is not before lastCalibrationAt; null dates allowed"
      },
      "InspectionToolResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
              },
              "manufacturer": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
              },
              "model": {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
              },
              "serialNumber": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 120
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "lastCalibrationAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                    "x-date-year-range": "0001 through 9999"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nextCalibrationAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                    "x-date-year-range": "0001 through 9999"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "nextCalibrationIsManual": {
                "type": "boolean"
              },
              "calibrationStatus": {
                "type": "string",
                "enum": [
                  "current",
                  "past_due",
                  "not_set"
                ]
              },
              "version": {
                "type": "string",
                "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              }
            },
            "required": [
              "id",
              "name",
              "manufacturer",
              "model",
              "serialNumber",
              "lastCalibrationAt",
              "nextCalibrationAt",
              "nextCalibrationIsManual",
              "calibrationStatus",
              "version",
              "createdAt",
              "updatedAt"
            ],
            "additionalProperties": false,
            "x-version-target": "version belongs to this id",
            "x-calibration-calendar": "Europe/Oslo; next calibration before today is past_due"
          },
          "serialWarning": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "normalizedSerialNumber": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 240
                  },
                  "totalMatches": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  "matches": {
                    "maxItems": 5,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        "manufacturer": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        "model": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "manufacturer",
                        "model"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "normalizedSerialNumber",
                  "totalMatches",
                  "matches"
                ],
                "additionalProperties": false,
                "x-validation": "positive total and bounded unique matches; concurrent deletion can leave zero matches; advisory only"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "data",
          "serialWarning"
        ],
        "additionalProperties": false
      },
      "InspectionToolRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "version": {
                "type": "string",
                "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
              }
            },
            "required": [
              "id",
              "deleted",
              "deletedAt",
              "version"
            ],
            "additionalProperties": false,
            "x-version-target": "version belongs to this id"
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "InspectionToolListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                },
                "manufacturer": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                },
                "model": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200,
                  "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                },
                "serialNumber": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "lastCalibrationAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                      "x-date-year-range": "0001 through 9999"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nextCalibrationAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                      "x-date-year-range": "0001 through 9999"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "nextCalibrationIsManual": {
                  "type": "boolean"
                },
                "calibrationStatus": {
                  "type": "string",
                  "enum": [
                    "current",
                    "past_due",
                    "not_set"
                  ]
                },
                "version": {
                  "type": "string",
                  "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                  "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                }
              },
              "required": [
                "id",
                "name",
                "manufacturer",
                "model",
                "serialNumber",
                "lastCalibrationAt",
                "nextCalibrationAt",
                "nextCalibrationIsManual",
                "calibrationStatus",
                "version",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false,
              "x-version-target": "version belongs to this id",
              "x-calibration-calendar": "Europe/Oslo; next calibration before today is past_due"
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "InspectionToolSyncResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "manufacturer": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "model": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "serialNumber": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastCalibrationAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "x-date-year-range": "0001 through 9999"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nextCalibrationAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "x-date-year-range": "0001 through 9999"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nextCalibrationIsManual": {
                      "type": "boolean"
                    },
                    "calibrationStatus": {
                      "type": "string",
                      "enum": [
                        "current",
                        "past_due",
                        "not_set"
                      ]
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                      "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "manufacturer",
                    "model",
                    "serialNumber",
                    "lastCalibrationAt",
                    "nextCalibrationAt",
                    "nextCalibrationIsManual",
                    "calibrationStatus",
                    "version",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false,
                  "x-version-target": "version belongs to this id",
                  "x-calibration-calendar": "Europe/Oslo; next calibration before today is past_due"
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                      "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
                    }
                  },
                  "required": [
                    "id",
                    "deleted",
                    "deletedAt",
                    "version"
                  ],
                  "additionalProperties": false,
                  "x-version-target": "version belongs to this id"
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "ServedInspectionToolQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "type": "string",
                "x-normalized-maxLength": 200,
                "x-length-unit": "Unicode code points",
                "x-normalization": "trim before validation"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedInspectionToolListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "manufacturer": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "model": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                    },
                    "serialNumber": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "lastCalibrationAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "x-date-year-range": "0001 through 9999"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nextCalibrationAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                          "x-date-year-range": "0001 through 9999"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "nextCalibrationIsManual": {
                      "type": "boolean"
                    },
                    "calibrationStatus": {
                      "type": "string",
                      "enum": [
                        "current",
                        "past_due",
                        "not_set"
                      ]
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                      "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "manufacturer",
                    "model",
                    "serialNumber",
                    "lastCalibrationAt",
                    "nextCalibrationAt",
                    "nextCalibrationIsManual",
                    "calibrationStatus",
                    "version",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false,
                  "x-version-target": "version belongs to this id",
                  "x-calibration-calendar": "Europe/Oslo; next calibration before today is past_due"
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        "manufacturer": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        "model": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000\\uD800-\\uDFFF]*$"
                        },
                        "serialNumber": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 120
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "lastCalibrationAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                              "x-date-year-range": "0001 through 9999"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "nextCalibrationAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
                              "x-date-year-range": "0001 through 9999"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "nextCalibrationIsManual": {
                          "type": "boolean"
                        },
                        "calibrationStatus": {
                          "type": "string",
                          "enum": [
                            "current",
                            "past_due",
                            "not_set"
                          ]
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                          "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "manufacturer",
                        "model",
                        "serialNumber",
                        "lastCalibrationAt",
                        "nextCalibrationAt",
                        "nextCalibrationIsManual",
                        "calibrationStatus",
                        "version",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false,
                      "x-version-target": "version belongs to this id",
                      "x-calibration-calendar": "Europe/Oslo; next calibration before today is past_due"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^tool-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                          "x-version-target": "tool UUID, positive signed-bigint revision; opaque to callers"
                        }
                      },
                      "required": [
                        "id",
                        "deleted",
                        "deletedAt",
                        "version"
                      ],
                      "additionalProperties": false,
                      "x-version-target": "version belongs to this id"
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "Report": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "inspectorPersonId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "reportTemplateVersionId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "reportType": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "nek_405_2_3",
                  "reclamation"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 120,
            "x-length-unit": "Unicode code points",
            "x-no-nul-or-lone-surrogate": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "propertyId",
          "inspectorPersonId",
          "reportTemplateVersionId",
          "reportType",
          "name",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "ReportPdf": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "reportId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "revisionNumber": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "versionLabel": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 3,
                "maxLength": 11
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "preparing",
              "queued",
              "rendering",
              "succeeded",
              "failed"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "capturedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              {
                "type": "null"
              }
            ]
          },
          "downloadable": {
            "type": "boolean"
          }
        },
        "required": [
          "id",
          "reportId",
          "revisionNumber",
          "versionLabel",
          "status",
          "createdAt",
          "updatedAt",
          "capturedAt",
          "downloadable"
        ],
        "additionalProperties": false,
        "x-consistency-rules": [
          "versionLabel is null with no revision; otherwise v followed by revision padded to at least two digits",
          "downloadable requires succeeded status and a positive revision"
        ]
      },
      "ReportPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "reportId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "reportId"
        ],
        "additionalProperties": false
      },
      "ReportPdfPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "reportId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "generationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "reportId",
          "generationId"
        ],
        "additionalProperties": false
      },
      "ReportQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "type": "string",
            "x-normalized-maxLength": 120,
            "x-length-unit": "Unicode code points",
            "x-normalization": "trim before validation"
          }
        },
        "additionalProperties": false
      },
      "ReportPdfQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "ReportListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "propertyId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "inspectorPersonId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "reportTemplateVersionId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "reportType": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "nek_405_2_3",
                        "reclamation"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 120,
                  "x-length-unit": "Unicode code points",
                  "x-no-nul-or-lone-surrogate": true
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                }
              },
              "required": [
                "id",
                "propertyId",
                "inspectorPersonId",
                "reportTemplateVersionId",
                "reportType",
                "name",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "ReportPdfListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "reportId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "revisionNumber": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 2147483647
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "versionLabel": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 3,
                      "maxLength": 11
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "preparing",
                    "queued",
                    "rendering",
                    "succeeded",
                    "failed"
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "capturedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "downloadable": {
                  "type": "boolean"
                }
              },
              "required": [
                "id",
                "reportId",
                "revisionNumber",
                "versionLabel",
                "status",
                "createdAt",
                "updatedAt",
                "capturedAt",
                "downloadable"
              ],
              "additionalProperties": false,
              "x-consistency-rules": [
                "versionLabel is null with no revision; otherwise v followed by revision padded to at least two digits",
                "downloadable requires succeeded status and a positive revision"
              ]
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "ReportSyncResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "inspectorPersonId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "reportTemplateVersionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reportType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "nek_405_2_3",
                            "reclamation"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "x-length-unit": "Unicode code points",
                      "x-no-nul-or-lone-surrogate": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "inspectorPersonId",
                    "reportTemplateVersionId",
                    "reportType",
                    "name",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "deleted",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "ServedReportQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "type": "string",
                "x-normalized-maxLength": 120,
                "x-length-unit": "Unicode code points",
                "x-normalization": "trim before validation"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedReportListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "inspectorPersonId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "reportTemplateVersionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "reportType": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "nek_405_2_3",
                            "reclamation"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120,
                      "x-length-unit": "Unicode code points",
                      "x-no-nul-or-lone-surrogate": true
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "inspectorPersonId",
                    "reportTemplateVersionId",
                    "reportType",
                    "name",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "inspectorPersonId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "reportTemplateVersionId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "reportType": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "nek_405_2_3",
                                "reclamation"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 120,
                          "x-length-unit": "Unicode code points",
                          "x-no-nul-or-lone-surrogate": true
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "inspectorPersonId",
                        "reportTemplateVersionId",
                        "reportType",
                        "name",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "deleted",
                        "deletedAt"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "UpdatePropertyDocumentMetadata": {
        "type": "object",
        "properties": {
          "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^[^\\u0000-\\u001f\\u007f/\\\\]+$",
            "x-length-unit": "UTF-16 code units",
            "x-normalization": "trim before validation"
          },
          "documentType": {
            "type": "string",
            "enum": [
              "sales_prospectus",
              "appraisal_report",
              "declaration_of_conformity",
              "previous_electrical_inspection_report",
              "electrical_documentation",
              "floor_plan",
              "other"
            ]
          },
          "customTypeName": {
            "description": "For other documents, a trimmed non-blank name of at most 100 Unicode characters. Omission retains the current valid name on updates; predefined types clear it.",
            "type": [
              "string",
              "null"
            ]
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          }
        },
        "required": [
          "filename",
          "documentType",
          "expectedVersion"
        ],
        "additionalProperties": false,
        "x-custom-document-type-name": "other: optional on update; when supplied, trim and require 1–100 Unicode code points; omission retains current valid name. Predefined types discard names."
      },
      "DocumentResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "filename": {
                "type": "string",
                "minLength": 1,
                "maxLength": 255
              },
              "documentType": {
                "type": "string",
                "enum": [
                  "sales_prospectus",
                  "appraisal_report",
                  "declaration_of_conformity",
                  "previous_electrical_inspection_report",
                  "electrical_documentation",
                  "floor_plan",
                  "other"
                ]
              },
              "customTypeName": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "pageCount": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 2147483647
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "sizeBytes": {
                "type": "integer",
                "minimum": 1,
                "maximum": 104857600
              },
              "mimeType": {
                "type": "string",
                "enum": [
                  "application/pdf",
                  "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                  "image/jpeg",
                  "image/png"
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "version": {
                "type": "string",
                "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "id",
              "propertyId",
              "filename",
              "documentType",
              "pageCount",
              "sizeBytes",
              "mimeType",
              "createdAt",
              "updatedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "DocumentRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "version": {
                "type": "string",
                "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "id",
              "propertyId",
              "deleted",
              "deletedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "Document": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "filename": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255
          },
          "documentType": {
            "type": "string",
            "enum": [
              "sales_prospectus",
              "appraisal_report",
              "declaration_of_conformity",
              "previous_electrical_inspection_report",
              "electrical_documentation",
              "floor_plan",
              "other"
            ]
          },
          "customTypeName": {
            "type": [
              "string",
              "null"
            ]
          },
          "pageCount": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 2147483647
              },
              {
                "type": "null"
              }
            ]
          },
          "sizeBytes": {
            "type": "integer",
            "minimum": 1,
            "maximum": 104857600
          },
          "mimeType": {
            "type": "string",
            "enum": [
              "application/pdf",
              "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
              "image/jpeg",
              "image/png"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "version": {
            "type": "string",
            "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          }
        },
        "required": [
          "id",
          "propertyId",
          "filename",
          "documentType",
          "pageCount",
          "sizeBytes",
          "mimeType",
          "createdAt",
          "updatedAt",
          "version"
        ],
        "additionalProperties": false
      },
      "DocumentVersion": {
        "type": "string",
        "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
      },
      "DocumentPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "documentId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "documentId"
        ],
        "additionalProperties": false
      },
      "DocumentQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "documentType": {
            "type": "string",
            "enum": [
              "sales_prospectus",
              "appraisal_report",
              "declaration_of_conformity",
              "previous_electrical_inspection_report",
              "electrical_documentation",
              "floor_plan",
              "other"
            ]
          },
          "search": {
            "type": "string",
            "x-normalized-maxLength": 120,
            "x-length-unit": "Unicode code points",
            "x-normalization": "trim before validation"
          }
        },
        "additionalProperties": false
      },
      "DocumentListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "propertyId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "filename": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 255
                },
                "documentType": {
                  "type": "string",
                  "enum": [
                    "sales_prospectus",
                    "appraisal_report",
                    "declaration_of_conformity",
                    "previous_electrical_inspection_report",
                    "electrical_documentation",
                    "floor_plan",
                    "other"
                  ]
                },
                "customTypeName": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "pageCount": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 2147483647
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "sizeBytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 104857600
                },
                "mimeType": {
                  "type": "string",
                  "enum": [
                    "application/pdf",
                    "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                    "image/jpeg",
                    "image/png"
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "version": {
                  "type": "string",
                  "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                }
              },
              "required": [
                "id",
                "propertyId",
                "filename",
                "documentType",
                "pageCount",
                "sizeBytes",
                "mimeType",
                "createdAt",
                "updatedAt",
                "version"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "DocumentSyncResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "documentType": {
                      "type": "string",
                      "enum": [
                        "sales_prospectus",
                        "appraisal_report",
                        "declaration_of_conformity",
                        "previous_electrical_inspection_report",
                        "electrical_documentation",
                        "floor_plan",
                        "other"
                      ]
                    },
                    "customTypeName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "pageCount": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 2147483647
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sizeBytes": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 104857600
                    },
                    "mimeType": {
                      "type": "string",
                      "enum": [
                        "application/pdf",
                        "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                        "image/jpeg",
                        "image/png"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "filename",
                    "documentType",
                    "pageCount",
                    "sizeBytes",
                    "mimeType",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "deleted",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "ServedDocumentQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "documentType": {
                "type": "string",
                "enum": [
                  "sales_prospectus",
                  "appraisal_report",
                  "declaration_of_conformity",
                  "previous_electrical_inspection_report",
                  "electrical_documentation",
                  "floor_plan",
                  "other"
                ]
              },
              "search": {
                "type": "string",
                "x-normalized-maxLength": 120,
                "x-length-unit": "Unicode code points",
                "x-normalization": "trim before validation"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedDocumentListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "filename": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 255
                    },
                    "documentType": {
                      "type": "string",
                      "enum": [
                        "sales_prospectus",
                        "appraisal_report",
                        "declaration_of_conformity",
                        "previous_electrical_inspection_report",
                        "electrical_documentation",
                        "floor_plan",
                        "other"
                      ]
                    },
                    "customTypeName": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "pageCount": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 2147483647
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "sizeBytes": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 104857600
                    },
                    "mimeType": {
                      "type": "string",
                      "enum": [
                        "application/pdf",
                        "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                        "image/jpeg",
                        "image/png"
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "filename",
                    "documentType",
                    "pageCount",
                    "sizeBytes",
                    "mimeType",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "filename": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 255
                        },
                        "documentType": {
                          "type": "string",
                          "enum": [
                            "sales_prospectus",
                            "appraisal_report",
                            "declaration_of_conformity",
                            "previous_electrical_inspection_report",
                            "electrical_documentation",
                            "floor_plan",
                            "other"
                          ]
                        },
                        "customTypeName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "pageCount": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 2147483647
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "sizeBytes": {
                          "type": "integer",
                          "minimum": 1,
                          "maximum": 104857600
                        },
                        "mimeType": {
                          "type": "string",
                          "enum": [
                            "application/pdf",
                            "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                            "image/jpeg",
                            "image/png"
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^document-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "filename",
                        "documentType",
                        "pageCount",
                        "sizeBytes",
                        "mimeType",
                        "createdAt",
                        "updatedAt",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "deleted",
                        "deletedAt"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "CreateInspectionObservation": {
        "type": "object",
        "properties": {
          "optionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "placementId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "controlPoint": {
            "type": "string",
            "x-normalization": "trim before validation",
            "x-normalized-maxLength": 500,
            "x-no-nul": true,
            "x-unicode-scalar-values-only": true
          },
          "title": {
            "type": "string",
            "x-normalization": "trim before validation",
            "x-normalized-maxLength": 200,
            "x-no-nul": true,
            "x-unicode-scalar-values-only": true
          },
          "description": {
            "type": "string",
            "x-normalization": "trim before validation",
            "x-normalized-maxLength": 10000,
            "x-no-nul": true,
            "x-unicode-scalar-values-only": true
          },
          "tgGrade": {
            "type": "string",
            "enum": [
              "TG0",
              "TG1",
              "TG2",
              "TG3",
              "TG-IU"
            ]
          },
          "extensionValues": {
            "anyOf": [
              {
                "type": "object",
                "propertyNames": {
                  "type": "string"
                },
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "number"
                    },
                    {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    }
                  ]
                }
              },
              {
                "type": "null"
              }
            ],
            "x-validation": "finite scalar values with no NUL or lone surrogate; must match the locked observation option schema"
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          }
        },
        "required": [
          "optionId",
          "placementId",
          "controlPoint",
          "title",
          "description",
          "tgGrade",
          "extensionValues",
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "LinkInspectionObservations": {
        "type": "object",
        "properties": {
          "optionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "observationIds": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "uniqueItems": true,
            "x-validation": "UUID case aliases count as duplicates",
            "x-normalization": "sort canonical UUID values"
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          }
        },
        "required": [
          "optionId",
          "observationIds",
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "CompletePropertyInspection": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "InspectionObservationPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "inspectionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "questionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "observationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "inspectionId",
          "questionId",
          "observationId"
        ],
        "additionalProperties": false
      },
      "InspectionObservationCreatedResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "answer": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "answer"
                  },
                  "questionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "optionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "text": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "comment": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "version": {
                    "type": "string",
                    "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  },
                  "inspectionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "inspectionVersion": {
                    "type": "string",
                    "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  }
                },
                "required": [
                  "kind",
                  "questionId",
                  "optionId",
                  "text",
                  "comment",
                  "version",
                  "inspectionId",
                  "inspectionVersion"
                ],
                "additionalProperties": false
              },
              "observation": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "placementId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "sequenceYear": {
                    "type": "integer",
                    "minimum": 2000,
                    "maximum": 9999
                  },
                  "sequenceNumber": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "id",
                  "placementId",
                  "sequenceYear",
                  "sequenceNumber"
                ],
                "additionalProperties": false
              },
              "link": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "answerOptionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "observationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  }
                },
                "required": [
                  "id",
                  "answerOptionId",
                  "observationId"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "answer",
              "observation",
              "link"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "InspectionObservationsLinkedResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "answer": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "answer"
                  },
                  "questionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "optionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "text": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "comment": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "version": {
                    "type": "string",
                    "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  },
                  "inspectionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "inspectionVersion": {
                    "type": "string",
                    "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  }
                },
                "required": [
                  "kind",
                  "questionId",
                  "optionId",
                  "text",
                  "comment",
                  "version",
                  "inspectionId",
                  "inspectionVersion"
                ],
                "additionalProperties": false
              },
              "links": {
                "minItems": 1,
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "answerOptionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "observationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "id",
                    "answerOptionId",
                    "observationId"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "answer",
              "links"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "InspectionObservationUnlinkedResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "answer": {
                "type": "object",
                "properties": {
                  "kind": {
                    "type": "string",
                    "const": "answer"
                  },
                  "questionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "optionId": {
                    "anyOf": [
                      {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "text": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "comment": {
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "version": {
                    "type": "string",
                    "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  },
                  "inspectionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "inspectionVersion": {
                    "type": "string",
                    "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  }
                },
                "required": [
                  "kind",
                  "questionId",
                  "optionId",
                  "text",
                  "comment",
                  "version",
                  "inspectionId",
                  "inspectionVersion"
                ],
                "additionalProperties": false
              },
              "observationId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "unlinked": {
                "type": "boolean",
                "const": true
              }
            },
            "required": [
              "answer",
              "observationId",
              "unlinked"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "InspectionCompletionResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "inspection": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "propertyId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "controlNumber": {
                    "type": "string",
                    "pattern": "^INSP-\\d{2}\\.\\d{3,}$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "started",
                      "completed",
                      "action_required"
                    ]
                  },
                  "inspectorRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "checklist": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "versionId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "version": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "id",
                      "versionId",
                      "version"
                    ],
                    "additionalProperties": false
                  },
                  "answers": {
                    "type": "object",
                    "properties": {
                      "answered": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "answered",
                      "total"
                    ],
                    "additionalProperties": false
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "version": {
                    "type": "string",
                    "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  }
                },
                "required": [
                  "id",
                  "propertyId",
                  "controlNumber",
                  "status",
                  "inspectorRef",
                  "checklist",
                  "answers",
                  "createdAt",
                  "updatedAt",
                  "version"
                ],
                "additionalProperties": false
              },
              "completion": {
                "type": "object",
                "properties": {
                  "outcome": {
                    "type": "string",
                    "enum": [
                      "completed",
                      "validation_failed"
                    ]
                  },
                  "issues": {
                    "maxItems": 100,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "questionId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "code": {
                          "type": "string",
                          "enum": [
                            "unanswered",
                            "invalid"
                          ]
                        },
                        "path": {
                          "type": "array",
                          "prefixItems": [
                            {
                              "type": "string",
                              "const": "checklist"
                            },
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            }
                          ],
                          "items": false,
                          "minItems": 2,
                          "maxItems": 2
                        }
                      },
                      "required": [
                        "questionId",
                        "code",
                        "path"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "issueCount": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "outcome",
                  "issues",
                  "issueCount",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "inspection",
              "completion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "SetInspectionAnswer": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "option"
              },
              "optionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "expectedVersion": {
                "type": "string",
                "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "kind",
              "optionId",
              "expectedVersion"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "text"
              },
              "text": {
                "x-normalized-maxLength": 10000,
                "x-normalization": "shared checklist boundary whitespace normalization; blank becomes null; interior whitespace preserved",
                "x-length-unit": "Unicode code points",
                "x-no-nul": true,
                "x-unicode-scalar-values-only": true,
                "type": [
                  "string",
                  "null"
                ]
              },
              "expectedVersion": {
                "type": "string",
                "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "kind",
              "text",
              "expectedVersion"
            ],
            "additionalProperties": false
          }
        ]
      },
      "SetInspectionAnswerComment": {
        "type": "object",
        "properties": {
          "comment": {
            "x-normalized-maxLength": 10000,
            "x-normalization": "shared checklist boundary whitespace normalization; blank becomes null; interior whitespace preserved",
            "x-length-unit": "Unicode code points",
            "x-no-nul": true,
            "x-unicode-scalar-values-only": true,
            "type": [
              "string",
              "null"
            ]
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          }
        },
        "required": [
          "comment",
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "InspectionQuestionPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "inspectionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "questionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "inspectionId",
          "questionId"
        ],
        "additionalProperties": false
      },
      "InspectionAnswerResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "answer"
              },
              "questionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "optionId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "text": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "comment": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "version": {
                "type": "string",
                "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              },
              "inspectionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "inspectionVersion": {
                "type": "string",
                "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "kind",
              "questionId",
              "optionId",
              "text",
              "comment",
              "version",
              "inspectionId",
              "inspectionVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "CreateInspection": {
        "type": "object",
        "properties": {
          "inspectorRef": {
            "type": "string",
            "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
          },
          "checklistVersionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "inspectorRef",
          "checklistVersionId"
        ],
        "additionalProperties": false
      },
      "InspectionCreateOptionsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "inspectors": {
                "maxItems": 1,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "inspectorRef": {
                      "type": "string",
                      "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                    }
                  },
                  "required": [
                    "inspectorRef"
                  ],
                  "additionalProperties": false
                }
              },
              "checklists": {
                "maxItems": 2,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "versionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "version": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "id",
                    "versionId",
                    "version",
                    "name"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "inspectors",
              "checklists"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "InspectionRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "version": {
                "type": "string",
                "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "id",
              "propertyId",
              "deleted",
              "deletedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "Inspection": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "controlNumber": {
            "type": "string",
            "pattern": "^INSP-\\d{2}\\.\\d{3,}$"
          },
          "status": {
            "type": "string",
            "enum": [
              "started",
              "completed",
              "action_required"
            ]
          },
          "inspectorRef": {
            "anyOf": [
              {
                "type": "string",
                "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
              },
              {
                "type": "null"
              }
            ]
          },
          "checklist": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "versionId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "version": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "id",
              "versionId",
              "version"
            ],
            "additionalProperties": false
          },
          "answers": {
            "type": "object",
            "properties": {
              "answered": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "total": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "answered",
              "total"
            ],
            "additionalProperties": false
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "version": {
            "type": "string",
            "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          }
        },
        "required": [
          "id",
          "propertyId",
          "controlNumber",
          "status",
          "inspectorRef",
          "checklist",
          "answers",
          "createdAt",
          "updatedAt",
          "version"
        ],
        "additionalProperties": false
      },
      "InspectionPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "inspectionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "inspectionId"
        ],
        "additionalProperties": false
      },
      "InspectionQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "status": {
            "type": "string",
            "enum": [
              "started",
              "completed",
              "action_required"
            ]
          }
        },
        "additionalProperties": false
      },
      "ServedInspectionQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "status": {
                "type": "string",
                "enum": [
                  "started",
                  "completed",
                  "action_required"
                ]
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "InspectionListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "propertyId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "controlNumber": {
                  "type": "string",
                  "pattern": "^INSP-\\d{2}\\.\\d{3,}$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "started",
                    "completed",
                    "action_required"
                  ]
                },
                "inspectorRef": {
                  "anyOf": [
                    {
                      "type": "string",
                      "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "checklist": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "versionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "version": {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "id",
                    "versionId",
                    "version"
                  ],
                  "additionalProperties": false
                },
                "answers": {
                  "type": "object",
                  "properties": {
                    "answered": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "total": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "answered",
                    "total"
                  ],
                  "additionalProperties": false
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "version": {
                  "type": "string",
                  "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                }
              },
              "required": [
                "id",
                "propertyId",
                "controlNumber",
                "status",
                "inspectorRef",
                "checklist",
                "answers",
                "createdAt",
                "updatedAt",
                "version"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "ServedInspectionListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "controlNumber": {
                      "type": "string",
                      "pattern": "^INSP-\\d{2}\\.\\d{3,}$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "started",
                        "completed",
                        "action_required"
                      ]
                    },
                    "inspectorRef": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "checklist": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "versionId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "version": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "versionId",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    "answers": {
                      "type": "object",
                      "properties": {
                        "answered": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "total": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "answered",
                        "total"
                      ],
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "controlNumber",
                    "status",
                    "inspectorRef",
                    "checklist",
                    "answers",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "controlNumber": {
                          "type": "string",
                          "pattern": "^INSP-\\d{2}\\.\\d{3,}$"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "started",
                            "completed",
                            "action_required"
                          ]
                        },
                        "inspectorRef": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "checklist": {
                          "type": "object",
                          "properties": {
                            "id": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "versionId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "version": {
                              "type": "integer",
                              "exclusiveMinimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "id",
                            "versionId",
                            "version"
                          ],
                          "additionalProperties": false
                        },
                        "answers": {
                          "type": "object",
                          "properties": {
                            "answered": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            },
                            "total": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 9007199254740991
                            }
                          },
                          "required": [
                            "answered",
                            "total"
                          ],
                          "additionalProperties": false
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "controlNumber",
                        "status",
                        "inspectorRef",
                        "checklist",
                        "answers",
                        "createdAt",
                        "updatedAt",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "deleted",
                        "deletedAt"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "InspectionSyncResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "controlNumber": {
                      "type": "string",
                      "pattern": "^INSP-\\d{2}\\.\\d{3,}$"
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "started",
                        "completed",
                        "action_required"
                      ]
                    },
                    "inspectorRef": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "checklist": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "versionId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "version": {
                          "type": "integer",
                          "exclusiveMinimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "id",
                        "versionId",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    "answers": {
                      "type": "object",
                      "properties": {
                        "answered": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "total": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        }
                      },
                      "required": [
                        "answered",
                        "total"
                      ],
                      "additionalProperties": false
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "controlNumber",
                    "status",
                    "inspectorRef",
                    "checklist",
                    "answers",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "deleted",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "InspectionResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "controlNumber": {
                "type": "string",
                "pattern": "^INSP-\\d{2}\\.\\d{3,}$"
              },
              "status": {
                "type": "string",
                "enum": [
                  "started",
                  "completed",
                  "action_required"
                ]
              },
              "inspectorRef": {
                "anyOf": [
                  {
                    "type": "string",
                    "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "checklist": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "versionId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "version": {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "id",
                  "versionId",
                  "version"
                ],
                "additionalProperties": false
              },
              "answers": {
                "type": "object",
                "properties": {
                  "answered": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "total": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  }
                },
                "required": [
                  "answered",
                  "total"
                ],
                "additionalProperties": false
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "version": {
                "type": "string",
                "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "id",
              "propertyId",
              "controlNumber",
              "status",
              "inspectorRef",
              "checklist",
              "answers",
              "createdAt",
              "updatedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "InspectionCreationResponse": {
        "type": "object",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "propertyId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "controlNumber": {
                    "type": "string",
                    "pattern": "^INSP-\\d{2}\\.\\d{3,}$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "started",
                      "completed",
                      "action_required"
                    ]
                  },
                  "inspectorRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "checklist": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "versionId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "version": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "id",
                      "versionId",
                      "version"
                    ],
                    "additionalProperties": false
                  },
                  "answers": {
                    "type": "object",
                    "properties": {
                      "answered": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "answered",
                      "total"
                    ],
                    "additionalProperties": false
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "version": {
                    "type": "string",
                    "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  }
                },
                "required": [
                  "id",
                  "propertyId",
                  "controlNumber",
                  "status",
                  "inspectorRef",
                  "checklist",
                  "answers",
                  "createdAt",
                  "updatedAt",
                  "version"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "propertyId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "status": {
                    "type": "string",
                    "enum": [
                      "started",
                      "completed",
                      "action_required"
                    ]
                  },
                  "inspectorRef": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^inspector-v1\\.[a-f0-9]{64}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "checklist": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "versionId": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "version": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "id",
                      "versionId",
                      "version"
                    ],
                    "additionalProperties": false
                  },
                  "answers": {
                    "type": "object",
                    "properties": {
                      "answered": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      },
                      "total": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "answered",
                      "total"
                    ],
                    "additionalProperties": false
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                  },
                  "version": {
                    "type": "string",
                    "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1
                  }
                },
                "required": [
                  "id",
                  "propertyId",
                  "status",
                  "inspectorRef",
                  "checklist",
                  "answers",
                  "createdAt",
                  "updatedAt",
                  "version",
                  "name"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "InspectionChecklistQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "InspectionChecklistResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "section"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "key",
                    "label",
                    "description",
                    "position"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "question"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "sectionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "key": {
                      "type": "string"
                    },
                    "question": {
                      "type": "string"
                    },
                    "description": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "answerMode": {
                      "type": "string",
                      "enum": [
                        "options",
                        "text"
                      ]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "commentLabel": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "sectionId",
                    "key",
                    "question",
                    "description",
                    "position",
                    "answerMode",
                    "required",
                    "commentLabel"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "option"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "questionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "answerType": {
                      "type": "string",
                      "enum": [
                        "simple",
                        "observation"
                      ]
                    },
                    "defaultDescription": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "defaultControlPoint": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "defaultTgGrade": {
                      "anyOf": [
                        {
                          "type": "string",
                          "enum": [
                            "TG0",
                            "TG1",
                            "TG2",
                            "TG3",
                            "TG-IU"
                          ]
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "questionId",
                    "key",
                    "label",
                    "position",
                    "answerType",
                    "defaultDescription",
                    "defaultControlPoint",
                    "defaultTgGrade"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "extensionGroup"
                    },
                    "optionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "kind",
                    "optionId",
                    "key",
                    "label",
                    "position"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "extensionField"
                    },
                    "optionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "groupKey": {
                      "type": "string"
                    },
                    "key": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "fieldType": {
                      "type": "string",
                      "enum": [
                        "string",
                        "number",
                        "select",
                        "multiselect"
                      ]
                    },
                    "required": {
                      "type": "boolean"
                    },
                    "unit": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  },
                  "required": [
                    "kind",
                    "optionId",
                    "groupKey",
                    "key",
                    "label",
                    "position",
                    "fieldType",
                    "required",
                    "unit"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "extensionOption"
                    },
                    "optionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "fieldKey": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    },
                    "label": {
                      "type": "string"
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "kind",
                    "optionId",
                    "fieldKey",
                    "value",
                    "label",
                    "position"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "answer"
                    },
                    "questionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "optionId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "text": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "comment": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^answer-v1\\.[0-9a-f-]{36}\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                    }
                  },
                  "required": [
                    "kind",
                    "questionId",
                    "optionId",
                    "text",
                    "comment",
                    "version"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "observationLink"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "questionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "answerOptionId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "observationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "questionId",
                    "answerOptionId",
                    "observationId"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          },
          "version": {
            "type": "string",
            "pattern": "^inspection-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          },
          "checklistVersionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "data",
          "meta",
          "version",
          "checklistVersionId"
        ],
        "additionalProperties": false
      },
      "PropertyRole": {
        "type": "string",
        "enum": [
          "owner",
          "buyer",
          "seller",
          "broker",
          "insurer",
          "property_manager",
          "collaborator"
        ]
      },
      "PropertyRoleAssignment": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "buyer",
              "seller",
              "broker",
              "insurer",
              "property_manager",
              "collaborator"
            ]
          },
          "personId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "actingForCompanyId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "role",
          "personId",
          "actingForCompanyId"
        ],
        "additionalProperties": false
      },
      "PropertyRoleCatalogue": {
        "minItems": 7,
        "maxItems": 7,
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "role": {
              "type": "string",
              "enum": [
                "owner",
                "buyer",
                "seller",
                "broker",
                "insurer",
                "property_manager",
                "collaborator"
              ]
            },
            "grantsPropertyAccess": {
              "type": "boolean"
            }
          },
          "required": [
            "role",
            "grantsPropertyAccess"
          ],
          "additionalProperties": false
        }
      },
      "PropertyRolesVersion": {
        "type": "string",
        "pattern": "^roles-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
        "description": "Opaque version of the complete property role set. Bind to the addressed property; compare under the mutation lock."
      },
      "PropertyRolePath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "assignmentId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "assignmentId"
        ],
        "additionalProperties": false
      },
      "PropertyRoleQuery": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "ServedPropertyRoleQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {},
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "PropertyRoleSetResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 7,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "role": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "buyer",
                    "seller",
                    "broker",
                    "insurer",
                    "property_manager",
                    "collaborator"
                  ]
                },
                "personId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "actingForCompanyId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "role",
                "personId",
                "actingForCompanyId"
              ],
              "additionalProperties": false
            }
          },
          "roles": {
            "minItems": 7,
            "maxItems": 7,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "buyer",
                    "seller",
                    "broker",
                    "insurer",
                    "property_manager",
                    "collaborator"
                  ]
                },
                "grantsPropertyAccess": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "grantsPropertyAccess"
              ],
              "additionalProperties": false
            }
          },
          "version": {
            "type": "string",
            "pattern": "^roles-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "description": "Opaque version of the complete property role set. Bind to the addressed property; compare under the mutation lock."
          }
        },
        "required": [
          "data",
          "roles",
          "version"
        ],
        "additionalProperties": false
      },
      "PropertyRoleSyncResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "owner",
                        "buyer",
                        "seller",
                        "broker",
                        "insurer",
                        "property_manager",
                        "collaborator"
                      ]
                    },
                    "personId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "actingForCompanyId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "role",
                    "personId",
                    "actingForCompanyId"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "id",
                    "deleted",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          },
          "roles": {
            "minItems": 7,
            "maxItems": 7,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "role": {
                  "type": "string",
                  "enum": [
                    "owner",
                    "buyer",
                    "seller",
                    "broker",
                    "insurer",
                    "property_manager",
                    "collaborator"
                  ]
                },
                "grantsPropertyAccess": {
                  "type": "boolean"
                }
              },
              "required": [
                "role",
                "grantsPropertyAccess"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "data",
          "meta",
          "roles"
        ],
        "additionalProperties": false
      },
      "ServedPropertyRoleResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 7,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "role": {
                      "type": "string",
                      "enum": [
                        "owner",
                        "buyer",
                        "seller",
                        "broker",
                        "insurer",
                        "property_manager",
                        "collaborator"
                      ]
                    },
                    "personId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "actingForCompanyId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "id",
                    "role",
                    "personId",
                    "actingForCompanyId"
                  ],
                  "additionalProperties": false
                }
              },
              "roles": {
                "minItems": 7,
                "maxItems": 7,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string",
                      "enum": [
                        "owner",
                        "buyer",
                        "seller",
                        "broker",
                        "insurer",
                        "property_manager",
                        "collaborator"
                      ]
                    },
                    "grantsPropertyAccess": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "grantsPropertyAccess"
                  ],
                  "additionalProperties": false
                }
              },
              "version": {
                "type": "string",
                "pattern": "^roles-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
                "description": "Opaque version of the complete property role set. Bind to the addressed property; compare under the mutation lock."
              }
            },
            "required": [
              "data",
              "roles",
              "version"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "owner",
                            "buyer",
                            "seller",
                            "broker",
                            "insurer",
                            "property_manager",
                            "collaborator"
                          ]
                        },
                        "personId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "actingForCompanyId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "role",
                        "personId",
                        "actingForCompanyId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        }
                      },
                      "required": [
                        "id",
                        "deleted",
                        "deletedAt"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              },
              "roles": {
                "minItems": 7,
                "maxItems": 7,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "role": {
                      "type": "string",
                      "enum": [
                        "owner",
                        "buyer",
                        "seller",
                        "broker",
                        "insurer",
                        "property_manager",
                        "collaborator"
                      ]
                    },
                    "grantsPropertyAccess": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "role",
                    "grantsPropertyAccess"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "data",
              "meta",
              "roles"
            ],
            "additionalProperties": false
          }
        ]
      },
      "PropertyRoleWrite": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "owner",
              "buyer",
              "seller",
              "broker",
              "insurer",
              "property_manager",
              "collaborator"
            ]
          },
          "personId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "actingForCompanyId": {
            "default": null,
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^roles-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "description": "Opaque version of the complete property role set. Bind to the addressed property; compare under the mutation lock."
          }
        },
        "required": [
          "role",
          "personId",
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "PropertyRoleRemovalQuery": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "pattern": "^roles-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "description": "Opaque version of the complete property role set. Bind to the addressed property; compare under the mutation lock."
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "PropertyRoleResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "role": {
                "type": "string",
                "enum": [
                  "owner",
                  "buyer",
                  "seller",
                  "broker",
                  "insurer",
                  "property_manager",
                  "collaborator"
                ]
              },
              "personId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "actingForCompanyId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "role",
              "personId",
              "actingForCompanyId"
            ],
            "additionalProperties": false
          },
          "version": {
            "type": "string",
            "pattern": "^roles-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "description": "Opaque version of the complete property role set. Bind to the addressed property; compare under the mutation lock."
          }
        },
        "required": [
          "data",
          "version"
        ],
        "additionalProperties": false
      },
      "PropertyRoleRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              }
            },
            "required": [
              "id",
              "deleted",
              "deletedAt"
            ],
            "additionalProperties": false
          },
          "version": {
            "type": "string",
            "pattern": "^roles-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$",
            "description": "Opaque version of the complete property role set. Bind to the addressed property; compare under the mutation lock."
          }
        },
        "required": [
          "data",
          "version"
        ],
        "additionalProperties": false
      },
      "PropertyRoleTombstone": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          }
        },
        "required": [
          "id",
          "deleted",
          "deletedAt"
        ],
        "additionalProperties": false
      },
      "PersonPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "personId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "personId"
        ],
        "additionalProperties": false
      },
      "CompanyPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "companyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "companyId"
        ],
        "additionalProperties": false
      },
      "PersonContactQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "type": "string",
            "x-normalization": "trim before matching",
            "x-normalized-maxLength": 300,
            "x-length-unit": "Unicode code points"
          },
          "companyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "sortBy": {
            "default": "updatedAt",
            "type": "string",
            "enum": [
              "fullName",
              "email",
              "createdAt",
              "updatedAt"
            ]
          },
          "sortDirection": {
            "default": "desc",
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          }
        },
        "additionalProperties": false
      },
      "CompanyContactQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 1000000
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "type": "string",
            "x-normalization": "trim before matching",
            "x-normalized-maxLength": 300,
            "x-length-unit": "Unicode code points"
          },
          "sortDirection": {
            "default": "desc",
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          },
          "sortBy": {
            "default": "updatedAt",
            "type": "string",
            "enum": [
              "name",
              "orgNumber",
              "sector",
              "createdAt",
              "updatedAt"
            ]
          }
        },
        "additionalProperties": false
      },
      "ServedPersonContactQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "type": "string",
                "x-normalization": "trim before matching",
                "x-normalized-maxLength": 300,
                "x-length-unit": "Unicode code points"
              },
              "companyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "sortBy": {
                "default": "updatedAt",
                "type": "string",
                "enum": [
                  "fullName",
                  "email",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortDirection": {
                "default": "desc",
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedCompanyContactQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 1000000
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "type": "string",
                "x-normalization": "trim before matching",
                "x-normalized-maxLength": 300,
                "x-length-unit": "Unicode code points"
              },
              "sortDirection": {
                "default": "desc",
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              },
              "sortBy": {
                "default": "updatedAt",
                "type": "string",
                "enum": [
                  "name",
                  "orgNumber",
                  "sector",
                  "createdAt",
                  "updatedAt"
                ]
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "CreatePerson": {
        "type": "object",
        "properties": {
          "fullName": {
            "type": "string"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyIds": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "uniqueItems": true,
            "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
          }
        },
        "required": [
          "fullName"
        ],
        "additionalProperties": false,
        "x-normalization": "Shared web contact normalization: trim scalars, empty optional text to null, lowercase email, remove organization-number whitespace, canonical UUIDs; max 300 normalized code points and no duplicate links.",
        "x-length-unit": "Unicode code points"
      },
      "CreateCompany": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "orgNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "sector": {
            "type": [
              "string",
              "null"
            ]
          },
          "personIds": {
            "default": [],
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "uniqueItems": true,
            "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false,
        "x-normalization": "Shared web contact normalization: trim scalars, empty optional text to null, lowercase email, remove organization-number whitespace, canonical UUIDs; max 300 normalized code points and no duplicate links.",
        "x-length-unit": "Unicode code points"
      },
      "UpdatePerson": {
        "type": "object",
        "properties": {
          "fullName": {
            "type": "string"
          },
          "email": {
            "type": [
              "string",
              "null"
            ]
          },
          "phone": {
            "type": [
              "string",
              "null"
            ]
          },
          "companyIds": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "uniqueItems": true,
            "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          },
          "confirmPropertyActorCleanup": {
            "type": "boolean"
          }
        },
        "required": [
          "fullName",
          "companyIds",
          "expectedVersion"
        ],
        "additionalProperties": false,
        "x-normalization": "Shared web contact normalization: trim scalars, empty optional text to null, lowercase email, remove organization-number whitespace, canonical UUIDs; max 300 normalized code points and no duplicate links.",
        "x-length-unit": "Unicode code points"
      },
      "UpdateCompany": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "orgNumber": {
            "type": [
              "string",
              "null"
            ]
          },
          "sector": {
            "type": [
              "string",
              "null"
            ]
          },
          "personIds": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "uniqueItems": true,
            "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
          },
          "expectedVersion": {
            "type": "string",
            "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          },
          "confirmPropertyActorCleanup": {
            "type": "boolean"
          }
        },
        "required": [
          "name",
          "personIds",
          "expectedVersion"
        ],
        "additionalProperties": false,
        "x-normalization": "Shared web contact normalization: trim scalars, empty optional text to null, lowercase email, remove organization-number whitespace, canonical UUIDs; max 300 normalized code points and no duplicate links.",
        "x-length-unit": "Unicode code points"
      },
      "PersonRemovalQuery": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          },
          "confirmPropertyActorCleanup": {
            "type": "boolean"
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "CompanyRemovalQuery": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
          },
          "confirmPropertyActorCleanup": {
            "type": "boolean"
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "PersonResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "fullName": {
                "type": "string",
                "minLength": 1
              },
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "phone": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "isMemberBacked": {
                "type": "boolean"
              },
              "companies": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "position"
                  ],
                  "additionalProperties": false
                }
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "version": {
                "type": "string",
                "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "id",
              "fullName",
              "email",
              "phone",
              "isMemberBacked",
              "companies",
              "createdAt",
              "updatedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "CompanyResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "type": "string",
                "minLength": 1
              },
              "orgNumber": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "sector": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "isSelf": {
                "type": "boolean"
              },
              "persons": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "fullName": {
                      "type": "string",
                      "minLength": 1
                    }
                  },
                  "required": [
                    "id",
                    "fullName"
                  ],
                  "additionalProperties": false
                }
              },
              "activePersonCount": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "version": {
                "type": "string",
                "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "id",
              "name",
              "orgNumber",
              "sector",
              "isSelf",
              "persons",
              "activePersonCount",
              "createdAt",
              "updatedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "PersonListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "fullName": {
                  "type": "string",
                  "minLength": 1
                },
                "email": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "phone": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "isMemberBacked": {
                  "type": "boolean"
                },
                "companies": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "name": {
                        "type": "string",
                        "minLength": 1
                      },
                      "position": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "position"
                    ],
                    "additionalProperties": false
                  }
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "version": {
                  "type": "string",
                  "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                }
              },
              "required": [
                "id",
                "fullName",
                "email",
                "phone",
                "isMemberBacked",
                "companies",
                "createdAt",
                "updatedAt",
                "version"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "CompanyListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1
                },
                "orgNumber": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "sector": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "isSelf": {
                  "type": "boolean"
                },
                "persons": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "fullName": {
                        "type": "string",
                        "minLength": 1
                      }
                    },
                    "required": [
                      "id",
                      "fullName"
                    ],
                    "additionalProperties": false
                  }
                },
                "activePersonCount": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "version": {
                  "type": "string",
                  "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                }
              },
              "required": [
                "id",
                "name",
                "orgNumber",
                "sector",
                "isSelf",
                "persons",
                "activePersonCount",
                "createdAt",
                "updatedAt",
                "version"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "PersonRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "version": {
                "type": "string",
                "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "id",
              "deleted",
              "deletedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "CompanyRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              },
              "version": {
                "type": "string",
                "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
              }
            },
            "required": [
              "id",
              "deleted",
              "deletedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "ServedPersonListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "fullName": {
                      "type": "string",
                      "minLength": 1
                    },
                    "email": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "phone": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isMemberBacked": {
                      "type": "boolean"
                    },
                    "companies": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1
                          },
                          "position": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 9007199254740991
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "position"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                    }
                  },
                  "required": [
                    "id",
                    "fullName",
                    "email",
                    "phone",
                    "isMemberBacked",
                    "companies",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "fullName": {
                          "type": "string",
                          "minLength": 1
                        },
                        "email": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "phone": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "isMemberBacked": {
                          "type": "boolean"
                        },
                        "companies": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "name": {
                                "type": "string",
                                "minLength": 1
                              },
                              "position": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 9007199254740991
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "position"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                        }
                      },
                      "required": [
                        "id",
                        "fullName",
                        "email",
                        "phone",
                        "isMemberBacked",
                        "companies",
                        "createdAt",
                        "updatedAt",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^person-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                        }
                      },
                      "required": [
                        "id",
                        "deleted",
                        "deletedAt",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "ServedCompanyListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1
                    },
                    "orgNumber": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "sector": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "isSelf": {
                      "type": "boolean"
                    },
                    "persons": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "fullName": {
                            "type": "string",
                            "minLength": 1
                          }
                        },
                        "required": [
                          "id",
                          "fullName"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "activePersonCount": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "version": {
                      "type": "string",
                      "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "orgNumber",
                    "sector",
                    "isSelf",
                    "persons",
                    "activePersonCount",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1
                        },
                        "orgNumber": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sector": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "isSelf": {
                          "type": "boolean"
                        },
                        "persons": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "string",
                                "format": "uuid",
                                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                              },
                              "fullName": {
                                "type": "string",
                                "minLength": 1
                              }
                            },
                            "required": [
                              "id",
                              "fullName"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "activePersonCount": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 9007199254740991
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "orgNumber",
                        "sector",
                        "isSelf",
                        "persons",
                        "activePersonCount",
                        "createdAt",
                        "updatedAt",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                        },
                        "version": {
                          "type": "string",
                          "pattern": "^company-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                        }
                      },
                      "required": [
                        "id",
                        "deleted",
                        "deletedAt",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "PropertyCover": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "width": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Full rendition width, estimated from the master; may differ by one pixel due to image-library rounding."
          },
          "height": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991,
            "description": "Full rendition height, estimated from the master; may differ by one pixel due to image-library rounding."
          },
          "mimeType": {
            "type": "string",
            "const": "image/webp"
          },
          "uploadedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          }
        },
        "required": [
          "id",
          "propertyId",
          "width",
          "height",
          "mimeType",
          "uploadedAt"
        ],
        "additionalProperties": false
      },
      "PropertyCoverResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "width": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "description": "Full rendition width, estimated from the master; may differ by one pixel due to image-library rounding."
              },
              "height": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991,
                "description": "Full rendition height, estimated from the master; may differ by one pixel due to image-library rounding."
              },
              "mimeType": {
                "type": "string",
                "const": "image/webp"
              },
              "uploadedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "id",
              "propertyId",
              "width",
              "height",
              "mimeType",
              "uploadedAt"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "properties": {
              "propertyVersion": {
                "type": "string",
                "pattern": "^prop-v1\\.[0-9a-f-]{36}\\.(0|[1-9][0-9]{0,9})$"
              }
            },
            "required": [
              "propertyVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "PropertyCoverDeletionResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "imageId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
              }
            },
            "required": [
              "propertyId",
              "imageId",
              "deleted",
              "deletedAt"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "properties": {
              "propertyVersion": {
                "type": "string",
                "pattern": "^prop-v1\\.[0-9a-f-]{36}\\.(0|[1-9][0-9]{0,9})$"
              }
            },
            "required": [
              "propertyVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "FindingPhotoPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "observationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "photoId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "observationId",
          "photoId"
        ],
        "additionalProperties": false
      },
      "FindingPhotoCaptionCommand": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          },
          "caption": {
            "anyOf": [
              {
                "type": "string",
                "x-normalization": "trim; empty becomes null",
                "x-normalized-maxLength": 2000,
                "x-length-unit": "Unicode code points"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "expectedVersion",
          "caption"
        ],
        "additionalProperties": false
      },
      "FindingPhotoOrderCommand": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          },
          "orderedPhotoIds": {
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "x-order": "Complete unique set of active finding photos, UUID case-insensitive."
          }
        },
        "required": [
          "expectedVersion",
          "orderedPhotoIds"
        ],
        "additionalProperties": false
      },
      "FindingPhotoCaptionResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "kind": {
                "type": "string",
                "const": "finding"
              },
              "position": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "caption": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2000,
                    "x-length-unit": "Unicode code points"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "width": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "height": {
                "anyOf": [
                  {
                    "type": "integer",
                    "exclusiveMinimum": 0,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "mimeType": {
                "type": "string",
                "enum": [
                  "image/jpeg",
                  "image/png",
                  "image/webp",
                  "image/heic"
                ]
              },
              "sizeBytes": {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 10485760
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "completionId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "kind",
              "position",
              "caption",
              "width",
              "height",
              "mimeType",
              "sizeBytes",
              "createdAt",
              "completionId"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "properties": {
              "observationVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
              }
            },
            "required": [
              "observationVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "FindingPhotoOrderResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "kind": {
                  "type": "string",
                  "const": "finding"
                },
                "position": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "caption": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 2000,
                      "x-length-unit": "Unicode code points"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "width": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "height": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mimeType": {
                  "type": "string",
                  "enum": [
                    "image/jpeg",
                    "image/png",
                    "image/webp",
                    "image/heic"
                  ]
                },
                "sizeBytes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 10485760
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "completionId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "kind",
                "position",
                "caption",
                "width",
                "height",
                "mimeType",
                "sizeBytes",
                "createdAt",
                "completionId"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "observationVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
              }
            },
            "required": [
              "observationVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "FindingPhotoDeletionResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "observationId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              }
            },
            "required": [
              "id",
              "observationId",
              "deleted",
              "deletedAt"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "properties": {
              "observationVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
              }
            },
            "required": [
              "observationVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "PhotoUploadBatchPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "batchId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "batchId"
        ],
        "additionalProperties": false
      },
      "StartPhotoUploadBatch": {
        "type": "object",
        "properties": {
          "files": {
            "minItems": 1,
            "maxItems": 50,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "target": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "enum": [
                            "finding",
                            "remediation"
                          ]
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "observationId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "required": [
                        "kind",
                        "propertyId",
                        "observationId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "propertyCover"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "expectedVersion": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "kind",
                        "propertyId",
                        "expectedVersion"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "certificateCreate"
                        },
                        "personId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "metadata": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string"
                            },
                            "standard": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "issuingBody": {
                              "type": "string"
                            },
                            "identifier": {
                              "type": "string"
                            },
                            "issuedAt": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "validUntil": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          },
                          "required": [
                            "name",
                            "issuingBody",
                            "identifier"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "kind",
                        "metadata"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "certificateCover"
                        },
                        "certificateId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "expectedVersion": {
                          "type": "string",
                          "pattern": "^cert-v1\\.[0-9a-f-]{36}\\.[1-9][0-9]{0,18}$"
                        }
                      },
                      "required": [
                        "kind",
                        "certificateId",
                        "expectedVersion"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "kind": {
                          "type": "string",
                          "const": "propertyDocument"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "documentType": {
                          "type": "string",
                          "enum": [
                            "sales_prospectus",
                            "appraisal_report",
                            "declaration_of_conformity",
                            "previous_electrical_inspection_report",
                            "electrical_documentation",
                            "floor_plan",
                            "other"
                          ]
                        },
                        "customTypeName": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "kind",
                        "propertyId",
                        "documentType"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "filename": {
                  "type": "string",
                  "minLength": 1
                },
                "mimeType": {
                  "type": "string",
                  "enum": [
                    "image/jpeg",
                    "image/png",
                    "image/webp",
                    "image/heic",
                    "application/pdf",
                    "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
                  ]
                },
                "sizeBytes": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 104857600
                },
                "sha256": {
                  "type": "string",
                  "pattern": "^[a-f0-9]{64}$"
                }
              },
              "required": [
                "target",
                "filename",
                "mimeType",
                "sizeBytes"
              ],
              "additionalProperties": false,
              "x-custom-document-type-name": "propertyDocument other uploads require customTypeName: trim, 1–100 Unicode code points. Predefined types discard names.",
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "target": {
                        "properties": {
                          "kind": {
                            "enum": [
                              "certificateCreate",
                              "certificateCover"
                            ]
                          }
                        }
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "mimeType": {
                        "enum": [
                          "image/jpeg",
                          "image/png",
                          "image/webp"
                        ]
                      },
                      "sizeBytes": {
                        "maximum": 20971520
                      },
                      "filename": {
                        "pattern": "^[^\\u0000-\\u001f\\u007f/\\\\]{1,255}$",
                        "maxLength": 255
                      }
                    },
                    "x-certificate-metadata": "NFKC and whitespace normalization; normalized UTF-16 bounds name/standard/issuingBody200,identifier120; real YYYY-MM-DD dates years0001..9999; validUntil>=issuedAt",
                    "x-certificate-version": "certificateCover expectedVersion belongs to certificateId and revision <=9223372036854775807"
                  }
                },
                {
                  "if": {
                    "properties": {
                      "target": {
                        "properties": {
                          "kind": {
                            "enum": [
                              "finding",
                              "propertyCover"
                            ]
                          }
                        }
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "mimeType": {
                        "enum": [
                          "image/jpeg",
                          "image/png",
                          "image/webp"
                        ]
                      },
                      "sizeBytes": {
                        "maximum": 10485760
                      },
                      "filename": {
                        "pattern": "^[^\\u0000-\\u001f\\u007f/\\\\]{1,255}$",
                        "maxLength": 255
                      }
                    }
                  }
                },
                {
                  "if": {
                    "properties": {
                      "target": {
                        "properties": {
                          "kind": {
                            "const": "remediation"
                          }
                        }
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "mimeType": {
                        "enum": [
                          "image/jpeg",
                          "image/png",
                          "image/webp",
                          "image/heic"
                        ]
                      },
                      "sizeBytes": {
                        "maximum": 10485760
                      },
                      "filename": {
                        "pattern": "^[^\\u0000-\\u001f\\u007f/\\\\]{1,255}$",
                        "maxLength": 255
                      }
                    }
                  }
                },
                {
                  "if": {
                    "properties": {
                      "target": {
                        "properties": {
                          "kind": {
                            "const": "propertyDocument"
                          }
                        }
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "mimeType": {
                        "enum": [
                          "application/pdf",
                          "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
                          "image/jpeg",
                          "image/png"
                        ]
                      },
                      "sizeBytes": {
                        "maximum": 104857600
                      },
                      "filename": {
                        "x-length-unit": "UTF-16 code units",
                        "x-normalization": "trim before validation",
                        "x-normalized-maxLength": 255,
                        "x-basename-only": true,
                        "x-filename-matches-mime": true
                      }
                    }
                  }
                }
              ]
            }
          }
        },
        "required": [
          "files"
        ],
        "additionalProperties": false,
        "x-cover-preconditions": "One cover per property; expectedVersion must identify that property and a nonnegative int32 revision."
      },
      "CompletePhotoUploadBatch": {
        "type": "object",
        "properties": {},
        "additionalProperties": false
      },
      "PhotoUploadBatchStarted": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "files": {
                "minItems": 1,
                "maxItems": 50,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "upload": {
                          "type": "object",
                          "properties": {
                            "uploadUrl": {
                              "type": "string",
                              "format": "uri"
                            },
                            "resumableUrl": {
                              "type": "string",
                              "format": "uri"
                            },
                            "uploadToken": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 8192
                            },
                            "bucket": {
                              "type": "string",
                              "enum": [
                                "image_upload_staging",
                                "property_documents"
                              ]
                            },
                            "objectName": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 512
                            },
                            "chunkSizeBytes": {
                              "type": "number",
                              "const": 6291456
                            }
                          },
                          "required": [
                            "uploadUrl",
                            "resumableUrl",
                            "uploadToken",
                            "bucket",
                            "objectName",
                            "chunkSizeBytes"
                          ],
                          "additionalProperties": false
                        },
                        "problem": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "id",
                        "upload",
                        "problem"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "upload": {
                          "type": "null"
                        },
                        "problem": {
                          "type": "string",
                          "enum": [
                            "dependency_unavailable",
                            "expired",
                            "already_uploaded"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "upload",
                        "problem"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "required": [
              "id",
              "expiresAt",
              "files"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "PhotoUploadBatchAccepted": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            },
            "required": [
              "id"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "PhotoUploadBatchStatus": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "expiresAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
              },
              "files": {
                "minItems": 1,
                "maxItems": 50,
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "pending",
                            "processing"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "status"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "status": {
                          "type": "string",
                          "const": "ready"
                        },
                        "resourceId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "resourceId"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "status": {
                          "type": "string",
                          "const": "failed"
                        },
                        "problem": {
                          "type": "string",
                          "enum": [
                            "staged_object_missing",
                            "size_mismatch",
                            "checksum_mismatch",
                            "mime_mismatch",
                            "processing_failed",
                            "promotion_failed",
                            "authority_lost",
                            "expired",
                            "photo_limit",
                            "staged_object_changed",
                            "attempts_exhausted",
                            "version_conflict",
                            "duplicate"
                          ]
                        }
                      },
                      "required": [
                        "id",
                        "status",
                        "problem"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              }
            },
            "required": [
              "id",
              "expiresAt",
              "files"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "ObservationPhotoContentPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "observationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "photoId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "observationId",
          "photoId"
        ],
        "additionalProperties": false
      },
      "ObservationPhotoContentQuery": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "finding",
              "remediation"
            ]
          }
        },
        "required": [
          "kind"
        ],
        "additionalProperties": false
      },
      "ObservationStatusHistory": {
        "type": "object",
        "properties": {
          "sequence": {
            "type": "integer",
            "minimum": 1,
            "maximum": 9007199254740991
          },
          "eventType": {
            "type": "string",
            "enum": [
              "created",
              "status_changed"
            ]
          },
          "previousStatus": {
            "anyOf": [
              {
                "type": "string",
                "enum": [
                  "open",
                  "in_progress",
                  "resolved"
                ]
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "resolved"
            ]
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
          },
          "completionId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "sequence",
          "eventType",
          "previousStatus",
          "status",
          "occurredAt",
          "completionId"
        ],
        "additionalProperties": false
      },
      "ObservationStatusHistoryQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "ObservationStatusHistoryListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "sequence": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 9007199254740991
                },
                "eventType": {
                  "type": "string",
                  "enum": [
                    "created",
                    "status_changed"
                  ]
                },
                "previousStatus": {
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "open",
                        "in_progress",
                        "resolved"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "open",
                    "in_progress",
                    "resolved"
                  ]
                },
                "occurredAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                },
                "completionId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "sequence",
                "eventType",
                "previousStatus",
                "status",
                "occurredAt",
                "completionId"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              },
              "legacy": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore",
              "legacy"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "ObservationSuggestionQuery": {
        "type": "object",
        "properties": {
          "kind": {
            "type": "string",
            "enum": [
              "title",
              "controlPoint"
            ]
          },
          "query": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "^[^\\u0000]*$",
            "x-normalization": "trim and collapse whitespace",
            "x-length-unit": "Unicode code points"
          }
        },
        "required": [
          "kind",
          "query"
        ],
        "additionalProperties": false
      },
      "ObservationSuggestion": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "title"
              },
              "entryId": {
                "type": "string",
                "pattern": "^[0-9]{4}$"
              },
              "shortCode": {
                "type": "string",
                "pattern": "\\S"
              },
              "category": {
                "type": "string",
                "pattern": "\\S"
              },
              "option": {
                "type": "string",
                "pattern": "\\S"
              },
              "description": {
                "type": "string",
                "maxLength": 10000,
                "x-length-unit": "Unicode code points"
              },
              "missingDescription": {
                "type": "boolean"
              }
            },
            "required": [
              "kind",
              "entryId",
              "shortCode",
              "category",
              "option",
              "description",
              "missingDescription"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "kind": {
                "type": "string",
                "const": "controlPoint"
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "x-length-unit": "Unicode code points"
              },
              "position": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              }
            },
            "required": [
              "kind",
              "id",
              "name",
              "position"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ObservationSuggestionListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "title"
                    },
                    "entryId": {
                      "type": "string",
                      "pattern": "^[0-9]{4}$"
                    },
                    "shortCode": {
                      "type": "string",
                      "pattern": "\\S"
                    },
                    "category": {
                      "type": "string",
                      "pattern": "\\S"
                    },
                    "option": {
                      "type": "string",
                      "pattern": "\\S"
                    },
                    "description": {
                      "type": "string",
                      "maxLength": 10000,
                      "x-length-unit": "Unicode code points"
                    },
                    "missingDescription": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "kind",
                    "entryId",
                    "shortCode",
                    "category",
                    "option",
                    "description",
                    "missingDescription"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "const": "controlPoint"
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 500,
                      "x-length-unit": "Unicode code points"
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 9007199254740991
                    }
                  },
                  "required": [
                    "kind",
                    "id",
                    "name",
                    "position"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "RemediationCost": {
        "oneOf": [
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "unpriced"
              },
              "netOre": {
                "type": "null"
              },
              "vatBasisPoints": {
                "type": "null"
              },
              "observationId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "currency": {
                "type": "string",
                "const": "NOK"
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
              },
              "vatOre": {
                "type": "null"
              },
              "grossOre": {
                "type": "null"
              }
            },
            "required": [
              "type",
              "netOre",
              "vatBasisPoints",
              "observationId",
              "currency",
              "version",
              "vatOre",
              "grossOre"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "fixed",
                  "estimate",
                  "rough_estimate",
                  "standard"
                ]
              },
              "netOre": {
                "type": "integer",
                "minimum": 0,
                "maximum": 99999999999
              },
              "vatBasisPoints": {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              "observationId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "currency": {
                "type": "string",
                "const": "NOK"
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
              },
              "vatOre": {
                "type": "integer",
                "minimum": 0,
                "maximum": 99999999999
              },
              "grossOre": {
                "type": "integer",
                "minimum": 0,
                "maximum": 199999999998
              }
            },
            "required": [
              "type",
              "netOre",
              "vatBasisPoints",
              "observationId",
              "currency",
              "version",
              "vatOre",
              "grossOre"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ReplaceRemediationCost": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "enum": [
              "unpriced",
              "fixed",
              "estimate",
              "rough_estimate",
              "standard"
            ]
          },
          "netOre": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 99999999999
              },
              {
                "type": "null"
              }
            ]
          },
          "vatBasisPoints": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 0,
                "maximum": 10000
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          }
        },
        "required": [
          "type",
          "netOre",
          "vatBasisPoints",
          "expectedVersion"
        ],
        "additionalProperties": false,
        "oneOf": [
          {
            "properties": {
              "type": {
                "const": "unpriced"
              },
              "netOre": {
                "type": "null"
              },
              "vatBasisPoints": {
                "type": "null"
              }
            }
          },
          {
            "properties": {
              "type": {
                "enum": [
                  "fixed",
                  "estimate",
                  "rough_estimate",
                  "standard"
                ]
              },
              "netOre": {
                "type": "integer"
              },
              "vatBasisPoints": {
                "type": "integer"
              }
            }
          }
        ]
      },
      "RemediationCostQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "ServedRemediationCostQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "RemediationCostResponse": {
        "type": "object",
        "properties": {
          "data": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "unpriced"
                  },
                  "netOre": {
                    "type": "null"
                  },
                  "vatBasisPoints": {
                    "type": "null"
                  },
                  "observationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "currency": {
                    "type": "string",
                    "const": "NOK"
                  },
                  "version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[\\x21-\\x7e]+$",
                    "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                  },
                  "vatOre": {
                    "type": "null"
                  },
                  "grossOre": {
                    "type": "null"
                  }
                },
                "required": [
                  "type",
                  "netOre",
                  "vatBasisPoints",
                  "observationId",
                  "currency",
                  "version",
                  "vatOre",
                  "grossOre"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "fixed",
                      "estimate",
                      "rough_estimate",
                      "standard"
                    ]
                  },
                  "netOre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 99999999999
                  },
                  "vatBasisPoints": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 10000
                  },
                  "observationId": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "currency": {
                    "type": "string",
                    "const": "NOK"
                  },
                  "version": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[\\x21-\\x7e]+$",
                    "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                  },
                  "vatOre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 99999999999
                  },
                  "grossOre": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 199999999998
                  }
                },
                "required": [
                  "type",
                  "netOre",
                  "vatBasisPoints",
                  "observationId",
                  "currency",
                  "version",
                  "vatOre",
                  "grossOre"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "RemediationCostListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "const": "unpriced"
                    },
                    "netOre": {
                      "type": "null"
                    },
                    "vatBasisPoints": {
                      "type": "null"
                    },
                    "observationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "currency": {
                      "type": "string",
                      "const": "NOK"
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                    },
                    "vatOre": {
                      "type": "null"
                    },
                    "grossOre": {
                      "type": "null"
                    }
                  },
                  "required": [
                    "type",
                    "netOre",
                    "vatBasisPoints",
                    "observationId",
                    "currency",
                    "version",
                    "vatOre",
                    "grossOre"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "fixed",
                        "estimate",
                        "rough_estimate",
                        "standard"
                      ]
                    },
                    "netOre": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 99999999999
                    },
                    "vatBasisPoints": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 10000
                    },
                    "observationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "currency": {
                      "type": "string",
                      "const": "NOK"
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                    },
                    "vatOre": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 99999999999
                    },
                    "grossOre": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 199999999998
                    }
                  },
                  "required": [
                    "type",
                    "netOre",
                    "vatBasisPoints",
                    "observationId",
                    "currency",
                    "version",
                    "vatOre",
                    "grossOre"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "RemediationCostSyncListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "unpriced"
                        },
                        "netOre": {
                          "type": "null"
                        },
                        "vatBasisPoints": {
                          "type": "null"
                        },
                        "observationId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "currency": {
                          "type": "string",
                          "const": "NOK"
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                        },
                        "vatOre": {
                          "type": "null"
                        },
                        "grossOre": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "type",
                        "netOre",
                        "vatBasisPoints",
                        "observationId",
                        "currency",
                        "version",
                        "vatOre",
                        "grossOre"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "fixed",
                            "estimate",
                            "rough_estimate",
                            "standard"
                          ]
                        },
                        "netOre": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 99999999999
                        },
                        "vatBasisPoints": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 10000
                        },
                        "observationId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "currency": {
                          "type": "string",
                          "const": "NOK"
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                        },
                        "vatOre": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 99999999999
                        },
                        "grossOre": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 199999999998
                        }
                      },
                      "required": [
                        "type",
                        "netOre",
                        "vatBasisPoints",
                        "observationId",
                        "currency",
                        "version",
                        "vatOre",
                        "grossOre"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "observationId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "observationId",
                    "deleted",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "ServedRemediationCostListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "const": "unpriced"
                        },
                        "netOre": {
                          "type": "null"
                        },
                        "vatBasisPoints": {
                          "type": "null"
                        },
                        "observationId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "currency": {
                          "type": "string",
                          "const": "NOK"
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                        },
                        "vatOre": {
                          "type": "null"
                        },
                        "grossOre": {
                          "type": "null"
                        }
                      },
                      "required": [
                        "type",
                        "netOre",
                        "vatBasisPoints",
                        "observationId",
                        "currency",
                        "version",
                        "vatOre",
                        "grossOre"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "enum": [
                            "fixed",
                            "estimate",
                            "rough_estimate",
                            "standard"
                          ]
                        },
                        "netOre": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 99999999999
                        },
                        "vatBasisPoints": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 10000
                        },
                        "observationId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "currency": {
                          "type": "string",
                          "const": "NOK"
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                        },
                        "vatOre": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 99999999999
                        },
                        "grossOre": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 199999999998
                        }
                      },
                      "required": [
                        "type",
                        "netOre",
                        "vatBasisPoints",
                        "observationId",
                        "currency",
                        "version",
                        "vatOre",
                        "grossOre"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "oneOf": [
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "const": "unpriced"
                            },
                            "netOre": {
                              "type": "null"
                            },
                            "vatBasisPoints": {
                              "type": "null"
                            },
                            "observationId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "currency": {
                              "type": "string",
                              "const": "NOK"
                            },
                            "version": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256,
                              "pattern": "^[\\x21-\\x7e]+$",
                              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                            },
                            "vatOre": {
                              "type": "null"
                            },
                            "grossOre": {
                              "type": "null"
                            }
                          },
                          "required": [
                            "type",
                            "netOre",
                            "vatBasisPoints",
                            "observationId",
                            "currency",
                            "version",
                            "vatOre",
                            "grossOre"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "object",
                          "properties": {
                            "type": {
                              "type": "string",
                              "enum": [
                                "fixed",
                                "estimate",
                                "rough_estimate",
                                "standard"
                              ]
                            },
                            "netOre": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 99999999999
                            },
                            "vatBasisPoints": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 10000
                            },
                            "observationId": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "currency": {
                              "type": "string",
                              "const": "NOK"
                            },
                            "version": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256,
                              "pattern": "^[\\x21-\\x7e]+$",
                              "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                            },
                            "vatOre": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 99999999999
                            },
                            "grossOre": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 199999999998
                            }
                          },
                          "required": [
                            "type",
                            "netOre",
                            "vatBasisPoints",
                            "observationId",
                            "currency",
                            "version",
                            "vatOre",
                            "grossOre"
                          ],
                          "additionalProperties": false
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "observationId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        }
                      },
                      "required": [
                        "observationId",
                        "deleted",
                        "deletedAt"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "PlacementTemplate": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "name": {
            "type": "string",
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "maxLength": 120,
            "x-length-unit": "Unicode code points"
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "structure": {
            "type": "object",
            "properties": {
              "nodes": {
                "minItems": 1,
                "maxItems": 200,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation",
                      "maxLength": 120,
                      "x-length-unit": "Unicode code points"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "single",
                        "group"
                      ]
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100000
                    },
                    "installationYear": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1700,
                          "maximum": 9007199254740991,
                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                          "x-maximum-year": "current UTC year + 1"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "children": {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation",
                            "maxLength": 120,
                            "x-length-unit": "Unicode code points"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "single",
                              "group"
                            ]
                          },
                          "position": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100000
                          },
                          "installationYear": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1700,
                                "maximum": 9007199254740991,
                                "description": "Year from 1700 through the current UTC calendar year plus one.",
                                "x-maximum-year": "current UTC year + 1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "children": {
                            "maxItems": 200,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation",
                                  "maxLength": 120,
                                  "x-length-unit": "Unicode code points"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "single",
                                    "group"
                                  ]
                                },
                                "position": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 100000
                                },
                                "installationYear": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1700,
                                      "maximum": 9007199254740991,
                                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                                      "x-maximum-year": "current UTC year + 1"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "children": {
                                  "maxItems": 200,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "pattern": "\\S",
                                        "x-normalization": "trim before validation",
                                        "maxLength": 120,
                                        "x-length-unit": "Unicode code points"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "single",
                                          "group"
                                        ]
                                      },
                                      "position": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 100000
                                      },
                                      "installationYear": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 1700,
                                            "maximum": 9007199254740991,
                                            "description": "Year from 1700 through the current UTC calendar year plus one.",
                                            "x-maximum-year": "current UTC year + 1"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "children": {
                                        "maxItems": 0,
                                        "type": "array",
                                        "items": {
                                          "not": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "position"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "position"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "name",
                          "type",
                          "position"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "name",
                    "type",
                    "position"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "nodes"
            ],
            "additionalProperties": false,
            "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
          },
          "isStandard": {
            "type": "boolean"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned template version, bound to this template."
          }
        },
        "required": [
          "id",
          "name",
          "propertyType",
          "structure",
          "isStandard",
          "version"
        ],
        "additionalProperties": false
      },
      "PlacementTemplateStructure": {
        "type": "object",
        "properties": {
          "nodes": {
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "pattern": "\\S",
                  "x-normalization": "trim before validation",
                  "maxLength": 120,
                  "x-length-unit": "Unicode code points"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "single",
                    "group"
                  ]
                },
                "position": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000
                },
                "installationYear": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 1700,
                      "maximum": 9007199254740991,
                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                      "x-maximum-year": "current UTC year + 1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "children": {
                  "maxItems": 200,
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "pattern": "\\S",
                        "x-normalization": "trim before validation",
                        "maxLength": 120,
                        "x-length-unit": "Unicode code points"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "single",
                          "group"
                        ]
                      },
                      "position": {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 100000
                      },
                      "installationYear": {
                        "anyOf": [
                          {
                            "type": "integer",
                            "minimum": 1700,
                            "maximum": 9007199254740991,
                            "description": "Year from 1700 through the current UTC calendar year plus one.",
                            "x-maximum-year": "current UTC year + 1"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "children": {
                        "maxItems": 200,
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation",
                              "maxLength": 120,
                              "x-length-unit": "Unicode code points"
                            },
                            "type": {
                              "type": "string",
                              "enum": [
                                "single",
                                "group"
                              ]
                            },
                            "position": {
                              "type": "integer",
                              "minimum": 0,
                              "maximum": 100000
                            },
                            "installationYear": {
                              "anyOf": [
                                {
                                  "type": "integer",
                                  "minimum": 1700,
                                  "maximum": 9007199254740991,
                                  "description": "Year from 1700 through the current UTC calendar year plus one.",
                                  "x-maximum-year": "current UTC year + 1"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "children": {
                              "maxItems": 200,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "pattern": "\\S",
                                    "x-normalization": "trim before validation",
                                    "maxLength": 120,
                                    "x-length-unit": "Unicode code points"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "single",
                                      "group"
                                    ]
                                  },
                                  "position": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 100000
                                  },
                                  "installationYear": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 1700,
                                        "maximum": 9007199254740991,
                                        "description": "Year from 1700 through the current UTC calendar year plus one.",
                                        "x-maximum-year": "current UTC year + 1"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "children": {
                                    "maxItems": 0,
                                    "type": "array",
                                    "items": {
                                      "not": {}
                                    }
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "position"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "name",
                            "type",
                            "position"
                          ],
                          "additionalProperties": false
                        }
                      }
                    },
                    "required": [
                      "name",
                      "type",
                      "position"
                    ],
                    "additionalProperties": false
                  }
                }
              },
              "required": [
                "name",
                "type",
                "position"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "nodes"
        ],
        "additionalProperties": false,
        "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
      },
      "PlacementTemplateVersion": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256,
        "pattern": "^[\\x21-\\x7e]+$",
        "description": "Opaque server-owned template version, bound to this template."
      },
      "PlacementTemplatePath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "templateId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "templateId"
        ],
        "additionalProperties": false
      },
      "PlacementTemplateQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "search": {
            "type": "string",
            "allOf": [
              {
                "pattern": "\\S"
              },
              {
                "pattern": "^[^\\u0000]*$"
              }
            ],
            "x-normalization": "trim before validation",
            "maxLength": 200,
            "x-length-unit": "Unicode code points"
          }
        },
        "additionalProperties": false
      },
      "CreatePlacementTemplate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "maxLength": 120,
            "x-length-unit": "Unicode code points"
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "structure": {
            "type": "object",
            "properties": {
              "nodes": {
                "minItems": 1,
                "maxItems": 200,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation",
                      "maxLength": 120,
                      "x-length-unit": "Unicode code points"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "single",
                        "group"
                      ]
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100000
                    },
                    "installationYear": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1700,
                          "maximum": 9007199254740991,
                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                          "x-maximum-year": "current UTC year + 1"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "children": {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation",
                            "maxLength": 120,
                            "x-length-unit": "Unicode code points"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "single",
                              "group"
                            ]
                          },
                          "position": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100000
                          },
                          "installationYear": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1700,
                                "maximum": 9007199254740991,
                                "description": "Year from 1700 through the current UTC calendar year plus one.",
                                "x-maximum-year": "current UTC year + 1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "children": {
                            "maxItems": 200,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation",
                                  "maxLength": 120,
                                  "x-length-unit": "Unicode code points"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "single",
                                    "group"
                                  ]
                                },
                                "position": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 100000
                                },
                                "installationYear": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1700,
                                      "maximum": 9007199254740991,
                                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                                      "x-maximum-year": "current UTC year + 1"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "children": {
                                  "maxItems": 200,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "pattern": "\\S",
                                        "x-normalization": "trim before validation",
                                        "maxLength": 120,
                                        "x-length-unit": "Unicode code points"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "single",
                                          "group"
                                        ]
                                      },
                                      "position": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 100000
                                      },
                                      "installationYear": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 1700,
                                            "maximum": 9007199254740991,
                                            "description": "Year from 1700 through the current UTC calendar year plus one.",
                                            "x-maximum-year": "current UTC year + 1"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "children": {
                                        "maxItems": 0,
                                        "type": "array",
                                        "items": {
                                          "not": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "position"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "position"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "name",
                          "type",
                          "position"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "name",
                    "type",
                    "position"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "nodes"
            ],
            "additionalProperties": false,
            "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
          }
        },
        "required": [
          "name",
          "propertyType",
          "structure"
        ],
        "additionalProperties": false
      },
      "UpdatePlacementTemplate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "maxLength": 120,
            "x-length-unit": "Unicode code points"
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "structure": {
            "type": "object",
            "properties": {
              "nodes": {
                "minItems": 1,
                "maxItems": 200,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "name": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation",
                      "maxLength": 120,
                      "x-length-unit": "Unicode code points"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "single",
                        "group"
                      ]
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100000
                    },
                    "installationYear": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1700,
                          "maximum": 9007199254740991,
                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                          "x-maximum-year": "current UTC year + 1"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "children": {
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation",
                            "maxLength": 120,
                            "x-length-unit": "Unicode code points"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "single",
                              "group"
                            ]
                          },
                          "position": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100000
                          },
                          "installationYear": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1700,
                                "maximum": 9007199254740991,
                                "description": "Year from 1700 through the current UTC calendar year plus one.",
                                "x-maximum-year": "current UTC year + 1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "children": {
                            "maxItems": 200,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation",
                                  "maxLength": 120,
                                  "x-length-unit": "Unicode code points"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "single",
                                    "group"
                                  ]
                                },
                                "position": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 100000
                                },
                                "installationYear": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1700,
                                      "maximum": 9007199254740991,
                                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                                      "x-maximum-year": "current UTC year + 1"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "children": {
                                  "maxItems": 200,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "pattern": "\\S",
                                        "x-normalization": "trim before validation",
                                        "maxLength": 120,
                                        "x-length-unit": "Unicode code points"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "single",
                                          "group"
                                        ]
                                      },
                                      "position": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 100000
                                      },
                                      "installationYear": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 1700,
                                            "maximum": 9007199254740991,
                                            "description": "Year from 1700 through the current UTC calendar year plus one.",
                                            "x-maximum-year": "current UTC year + 1"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "children": {
                                        "maxItems": 0,
                                        "type": "array",
                                        "items": {
                                          "not": {}
                                        }
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "position"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "position"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "name",
                          "type",
                          "position"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "name",
                    "type",
                    "position"
                  ],
                  "additionalProperties": false
                }
              }
            },
            "required": [
              "nodes"
            ],
            "additionalProperties": false,
            "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
          },
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned template version, bound to this template."
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false,
        "minProperties": 2,
        "x-non-empty-patch": "expectedVersion plus at least one template field"
      },
      "DuplicatePlacementTemplate": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "maxLength": 120,
            "x-length-unit": "Unicode code points"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "SavePlacementTemplateFromProperty": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "maxLength": 120,
            "x-length-unit": "Unicode code points"
          }
        },
        "required": [
          "name"
        ],
        "additionalProperties": false
      },
      "PlacementTemplateResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "name": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation",
                "maxLength": 120,
                "x-length-unit": "Unicode code points"
              },
              "propertyType": {
                "type": "string",
                "enum": [
                  "detached",
                  "apartment",
                  "townhouse",
                  "semi_detached",
                  "cabin",
                  "commercial",
                  "other"
                ]
              },
              "structure": {
                "type": "object",
                "properties": {
                  "nodes": {
                    "minItems": 1,
                    "maxItems": 200,
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation",
                          "maxLength": 120,
                          "x-length-unit": "Unicode code points"
                        },
                        "type": {
                          "type": "string",
                          "enum": [
                            "single",
                            "group"
                          ]
                        },
                        "position": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000
                        },
                        "installationYear": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1700,
                              "maximum": 9007199254740991,
                              "description": "Year from 1700 through the current UTC calendar year plus one.",
                              "x-maximum-year": "current UTC year + 1"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "children": {
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "pattern": "\\S",
                                "x-normalization": "trim before validation",
                                "maxLength": 120,
                                "x-length-unit": "Unicode code points"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "single",
                                  "group"
                                ]
                              },
                              "position": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100000
                              },
                              "installationYear": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 1700,
                                    "maximum": 9007199254740991,
                                    "description": "Year from 1700 through the current UTC calendar year plus one.",
                                    "x-maximum-year": "current UTC year + 1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "children": {
                                "maxItems": 200,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "pattern": "\\S",
                                      "x-normalization": "trim before validation",
                                      "maxLength": 120,
                                      "x-length-unit": "Unicode code points"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "single",
                                        "group"
                                      ]
                                    },
                                    "position": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 100000
                                    },
                                    "installationYear": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 1700,
                                          "maximum": 9007199254740991,
                                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                                          "x-maximum-year": "current UTC year + 1"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "children": {
                                      "maxItems": 200,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "pattern": "\\S",
                                            "x-normalization": "trim before validation",
                                            "maxLength": 120,
                                            "x-length-unit": "Unicode code points"
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "single",
                                              "group"
                                            ]
                                          },
                                          "position": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 100000
                                          },
                                          "installationYear": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1700,
                                                "maximum": 9007199254740991,
                                                "description": "Year from 1700 through the current UTC calendar year plus one.",
                                                "x-maximum-year": "current UTC year + 1"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "children": {
                                            "maxItems": 0,
                                            "type": "array",
                                            "items": {
                                              "not": {}
                                            }
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "type",
                                          "position"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type",
                                    "position"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "type",
                              "position"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "name",
                        "type",
                        "position"
                      ],
                      "additionalProperties": false
                    }
                  }
                },
                "required": [
                  "nodes"
                ],
                "additionalProperties": false,
                "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
              },
              "isStandard": {
                "type": "boolean"
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned template version, bound to this template."
              }
            },
            "required": [
              "id",
              "name",
              "propertyType",
              "structure",
              "isStandard",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "PlacementTemplateRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned template version, bound to this template."
              }
            },
            "required": [
              "id",
              "deleted",
              "deletedAt",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "PlacementTemplateListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "name": {
                  "type": "string",
                  "pattern": "\\S",
                  "x-normalization": "trim before validation",
                  "maxLength": 120,
                  "x-length-unit": "Unicode code points"
                },
                "propertyType": {
                  "type": "string",
                  "enum": [
                    "detached",
                    "apartment",
                    "townhouse",
                    "semi_detached",
                    "cabin",
                    "commercial",
                    "other"
                  ]
                },
                "structure": {
                  "type": "object",
                  "properties": {
                    "nodes": {
                      "minItems": 1,
                      "maxItems": 200,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation",
                            "maxLength": 120,
                            "x-length-unit": "Unicode code points"
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "single",
                              "group"
                            ]
                          },
                          "position": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100000
                          },
                          "installationYear": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1700,
                                "maximum": 9007199254740991,
                                "description": "Year from 1700 through the current UTC calendar year plus one.",
                                "x-maximum-year": "current UTC year + 1"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "children": {
                            "maxItems": 200,
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation",
                                  "maxLength": 120,
                                  "x-length-unit": "Unicode code points"
                                },
                                "type": {
                                  "type": "string",
                                  "enum": [
                                    "single",
                                    "group"
                                  ]
                                },
                                "position": {
                                  "type": "integer",
                                  "minimum": 0,
                                  "maximum": 100000
                                },
                                "installationYear": {
                                  "anyOf": [
                                    {
                                      "type": "integer",
                                      "minimum": 1700,
                                      "maximum": 9007199254740991,
                                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                                      "x-maximum-year": "current UTC year + 1"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "children": {
                                  "maxItems": 200,
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "name": {
                                        "type": "string",
                                        "pattern": "\\S",
                                        "x-normalization": "trim before validation",
                                        "maxLength": 120,
                                        "x-length-unit": "Unicode code points"
                                      },
                                      "type": {
                                        "type": "string",
                                        "enum": [
                                          "single",
                                          "group"
                                        ]
                                      },
                                      "position": {
                                        "type": "integer",
                                        "minimum": 0,
                                        "maximum": 100000
                                      },
                                      "installationYear": {
                                        "anyOf": [
                                          {
                                            "type": "integer",
                                            "minimum": 1700,
                                            "maximum": 9007199254740991,
                                            "description": "Year from 1700 through the current UTC calendar year plus one.",
                                            "x-maximum-year": "current UTC year + 1"
                                          },
                                          {
                                            "type": "null"
                                          }
                                        ]
                                      },
                                      "children": {
                                        "maxItems": 200,
                                        "type": "array",
                                        "items": {
                                          "type": "object",
                                          "properties": {
                                            "name": {
                                              "type": "string",
                                              "pattern": "\\S",
                                              "x-normalization": "trim before validation",
                                              "maxLength": 120,
                                              "x-length-unit": "Unicode code points"
                                            },
                                            "type": {
                                              "type": "string",
                                              "enum": [
                                                "single",
                                                "group"
                                              ]
                                            },
                                            "position": {
                                              "type": "integer",
                                              "minimum": 0,
                                              "maximum": 100000
                                            },
                                            "installationYear": {
                                              "anyOf": [
                                                {
                                                  "type": "integer",
                                                  "minimum": 1700,
                                                  "maximum": 9007199254740991,
                                                  "description": "Year from 1700 through the current UTC calendar year plus one.",
                                                  "x-maximum-year": "current UTC year + 1"
                                                },
                                                {
                                                  "type": "null"
                                                }
                                              ]
                                            },
                                            "children": {
                                              "maxItems": 0,
                                              "type": "array",
                                              "items": {
                                                "not": {}
                                              }
                                            }
                                          },
                                          "required": [
                                            "name",
                                            "type",
                                            "position"
                                          ],
                                          "additionalProperties": false
                                        }
                                      }
                                    },
                                    "required": [
                                      "name",
                                      "type",
                                      "position"
                                    ],
                                    "additionalProperties": false
                                  }
                                }
                              },
                              "required": [
                                "name",
                                "type",
                                "position"
                              ],
                              "additionalProperties": false
                            }
                          }
                        },
                        "required": [
                          "name",
                          "type",
                          "position"
                        ],
                        "additionalProperties": false
                      }
                    }
                  },
                  "required": [
                    "nodes"
                  ],
                  "additionalProperties": false,
                  "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
                },
                "isStandard": {
                  "type": "boolean"
                },
                "version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256,
                  "pattern": "^[\\x21-\\x7e]+$",
                  "description": "Opaque server-owned template version, bound to this template."
                }
              },
              "required": [
                "id",
                "name",
                "propertyType",
                "structure",
                "isStandard",
                "version"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "ServedPlacementTemplateQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "propertyType": {
                "type": "string",
                "enum": [
                  "detached",
                  "apartment",
                  "townhouse",
                  "semi_detached",
                  "cabin",
                  "commercial",
                  "other"
                ]
              },
              "search": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "\\S"
                  },
                  {
                    "pattern": "^[^\\u0000]*$"
                  }
                ],
                "x-normalization": "trim before validation",
                "maxLength": 200,
                "x-length-unit": "Unicode code points"
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedPlacementTemplateListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation",
                      "maxLength": 120,
                      "x-length-unit": "Unicode code points"
                    },
                    "propertyType": {
                      "type": "string",
                      "enum": [
                        "detached",
                        "apartment",
                        "townhouse",
                        "semi_detached",
                        "cabin",
                        "commercial",
                        "other"
                      ]
                    },
                    "structure": {
                      "type": "object",
                      "properties": {
                        "nodes": {
                          "minItems": 1,
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "pattern": "\\S",
                                "x-normalization": "trim before validation",
                                "maxLength": 120,
                                "x-length-unit": "Unicode code points"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "single",
                                  "group"
                                ]
                              },
                              "position": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100000
                              },
                              "installationYear": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 1700,
                                    "maximum": 9007199254740991,
                                    "description": "Year from 1700 through the current UTC calendar year plus one.",
                                    "x-maximum-year": "current UTC year + 1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "children": {
                                "maxItems": 200,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "pattern": "\\S",
                                      "x-normalization": "trim before validation",
                                      "maxLength": 120,
                                      "x-length-unit": "Unicode code points"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "single",
                                        "group"
                                      ]
                                    },
                                    "position": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 100000
                                    },
                                    "installationYear": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 1700,
                                          "maximum": 9007199254740991,
                                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                                          "x-maximum-year": "current UTC year + 1"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "children": {
                                      "maxItems": 200,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "pattern": "\\S",
                                            "x-normalization": "trim before validation",
                                            "maxLength": 120,
                                            "x-length-unit": "Unicode code points"
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "single",
                                              "group"
                                            ]
                                          },
                                          "position": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 100000
                                          },
                                          "installationYear": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1700,
                                                "maximum": 9007199254740991,
                                                "description": "Year from 1700 through the current UTC calendar year plus one.",
                                                "x-maximum-year": "current UTC year + 1"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "children": {
                                            "maxItems": 200,
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "name": {
                                                  "type": "string",
                                                  "pattern": "\\S",
                                                  "x-normalization": "trim before validation",
                                                  "maxLength": 120,
                                                  "x-length-unit": "Unicode code points"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "enum": [
                                                    "single",
                                                    "group"
                                                  ]
                                                },
                                                "position": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 100000
                                                },
                                                "installationYear": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 1700,
                                                      "maximum": 9007199254740991,
                                                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                                                      "x-maximum-year": "current UTC year + 1"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "children": {
                                                  "maxItems": 0,
                                                  "type": "array",
                                                  "items": {
                                                    "not": {}
                                                  }
                                                }
                                              },
                                              "required": [
                                                "name",
                                                "type",
                                                "position"
                                              ],
                                              "additionalProperties": false
                                            }
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "type",
                                          "position"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type",
                                    "position"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "type",
                              "position"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "nodes"
                      ],
                      "additionalProperties": false,
                      "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
                    },
                    "isStandard": {
                      "type": "boolean"
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned template version, bound to this template."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "propertyType",
                    "structure",
                    "isStandard",
                    "version"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "name": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation",
                          "maxLength": 120,
                          "x-length-unit": "Unicode code points"
                        },
                        "propertyType": {
                          "type": "string",
                          "enum": [
                            "detached",
                            "apartment",
                            "townhouse",
                            "semi_detached",
                            "cabin",
                            "commercial",
                            "other"
                          ]
                        },
                        "structure": {
                          "type": "object",
                          "properties": {
                            "nodes": {
                              "minItems": 1,
                              "maxItems": 200,
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "pattern": "\\S",
                                    "x-normalization": "trim before validation",
                                    "maxLength": 120,
                                    "x-length-unit": "Unicode code points"
                                  },
                                  "type": {
                                    "type": "string",
                                    "enum": [
                                      "single",
                                      "group"
                                    ]
                                  },
                                  "position": {
                                    "type": "integer",
                                    "minimum": 0,
                                    "maximum": 100000
                                  },
                                  "installationYear": {
                                    "anyOf": [
                                      {
                                        "type": "integer",
                                        "minimum": 1700,
                                        "maximum": 9007199254740991,
                                        "description": "Year from 1700 through the current UTC calendar year plus one.",
                                        "x-maximum-year": "current UTC year + 1"
                                      },
                                      {
                                        "type": "null"
                                      }
                                    ]
                                  },
                                  "children": {
                                    "maxItems": 200,
                                    "type": "array",
                                    "items": {
                                      "type": "object",
                                      "properties": {
                                        "name": {
                                          "type": "string",
                                          "pattern": "\\S",
                                          "x-normalization": "trim before validation",
                                          "maxLength": 120,
                                          "x-length-unit": "Unicode code points"
                                        },
                                        "type": {
                                          "type": "string",
                                          "enum": [
                                            "single",
                                            "group"
                                          ]
                                        },
                                        "position": {
                                          "type": "integer",
                                          "minimum": 0,
                                          "maximum": 100000
                                        },
                                        "installationYear": {
                                          "anyOf": [
                                            {
                                              "type": "integer",
                                              "minimum": 1700,
                                              "maximum": 9007199254740991,
                                              "description": "Year from 1700 through the current UTC calendar year plus one.",
                                              "x-maximum-year": "current UTC year + 1"
                                            },
                                            {
                                              "type": "null"
                                            }
                                          ]
                                        },
                                        "children": {
                                          "maxItems": 200,
                                          "type": "array",
                                          "items": {
                                            "type": "object",
                                            "properties": {
                                              "name": {
                                                "type": "string",
                                                "pattern": "\\S",
                                                "x-normalization": "trim before validation",
                                                "maxLength": 120,
                                                "x-length-unit": "Unicode code points"
                                              },
                                              "type": {
                                                "type": "string",
                                                "enum": [
                                                  "single",
                                                  "group"
                                                ]
                                              },
                                              "position": {
                                                "type": "integer",
                                                "minimum": 0,
                                                "maximum": 100000
                                              },
                                              "installationYear": {
                                                "anyOf": [
                                                  {
                                                    "type": "integer",
                                                    "minimum": 1700,
                                                    "maximum": 9007199254740991,
                                                    "description": "Year from 1700 through the current UTC calendar year plus one.",
                                                    "x-maximum-year": "current UTC year + 1"
                                                  },
                                                  {
                                                    "type": "null"
                                                  }
                                                ]
                                              },
                                              "children": {
                                                "maxItems": 200,
                                                "type": "array",
                                                "items": {
                                                  "type": "object",
                                                  "properties": {
                                                    "name": {
                                                      "type": "string",
                                                      "pattern": "\\S",
                                                      "x-normalization": "trim before validation",
                                                      "maxLength": 120,
                                                      "x-length-unit": "Unicode code points"
                                                    },
                                                    "type": {
                                                      "type": "string",
                                                      "enum": [
                                                        "single",
                                                        "group"
                                                      ]
                                                    },
                                                    "position": {
                                                      "type": "integer",
                                                      "minimum": 0,
                                                      "maximum": 100000
                                                    },
                                                    "installationYear": {
                                                      "anyOf": [
                                                        {
                                                          "type": "integer",
                                                          "minimum": 1700,
                                                          "maximum": 9007199254740991,
                                                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                                                          "x-maximum-year": "current UTC year + 1"
                                                        },
                                                        {
                                                          "type": "null"
                                                        }
                                                      ]
                                                    },
                                                    "children": {
                                                      "maxItems": 0,
                                                      "type": "array",
                                                      "items": {
                                                        "not": {}
                                                      }
                                                    }
                                                  },
                                                  "required": [
                                                    "name",
                                                    "type",
                                                    "position"
                                                  ],
                                                  "additionalProperties": false
                                                }
                                              }
                                            },
                                            "required": [
                                              "name",
                                              "type",
                                              "position"
                                            ],
                                            "additionalProperties": false
                                          }
                                        }
                                      },
                                      "required": [
                                        "name",
                                        "type",
                                        "position"
                                      ],
                                      "additionalProperties": false
                                    }
                                  }
                                },
                                "required": [
                                  "name",
                                  "type",
                                  "position"
                                ],
                                "additionalProperties": false
                              }
                            }
                          },
                          "required": [
                            "nodes"
                          ],
                          "additionalProperties": false,
                          "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
                        },
                        "isStandard": {
                          "type": "boolean"
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned template version, bound to this template."
                        }
                      },
                      "required": [
                        "id",
                        "name",
                        "propertyType",
                        "structure",
                        "isStandard",
                        "version"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned template version, bound to this template."
                        }
                      },
                      "required": [
                        "id",
                        "deleted",
                        "deletedAt",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "PlacementTemplateSyncListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "name": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation",
                      "maxLength": 120,
                      "x-length-unit": "Unicode code points"
                    },
                    "propertyType": {
                      "type": "string",
                      "enum": [
                        "detached",
                        "apartment",
                        "townhouse",
                        "semi_detached",
                        "cabin",
                        "commercial",
                        "other"
                      ]
                    },
                    "structure": {
                      "type": "object",
                      "properties": {
                        "nodes": {
                          "minItems": 1,
                          "maxItems": 200,
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "pattern": "\\S",
                                "x-normalization": "trim before validation",
                                "maxLength": 120,
                                "x-length-unit": "Unicode code points"
                              },
                              "type": {
                                "type": "string",
                                "enum": [
                                  "single",
                                  "group"
                                ]
                              },
                              "position": {
                                "type": "integer",
                                "minimum": 0,
                                "maximum": 100000
                              },
                              "installationYear": {
                                "anyOf": [
                                  {
                                    "type": "integer",
                                    "minimum": 1700,
                                    "maximum": 9007199254740991,
                                    "description": "Year from 1700 through the current UTC calendar year plus one.",
                                    "x-maximum-year": "current UTC year + 1"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ]
                              },
                              "children": {
                                "maxItems": 200,
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "name": {
                                      "type": "string",
                                      "pattern": "\\S",
                                      "x-normalization": "trim before validation",
                                      "maxLength": 120,
                                      "x-length-unit": "Unicode code points"
                                    },
                                    "type": {
                                      "type": "string",
                                      "enum": [
                                        "single",
                                        "group"
                                      ]
                                    },
                                    "position": {
                                      "type": "integer",
                                      "minimum": 0,
                                      "maximum": 100000
                                    },
                                    "installationYear": {
                                      "anyOf": [
                                        {
                                          "type": "integer",
                                          "minimum": 1700,
                                          "maximum": 9007199254740991,
                                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                                          "x-maximum-year": "current UTC year + 1"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    },
                                    "children": {
                                      "maxItems": 200,
                                      "type": "array",
                                      "items": {
                                        "type": "object",
                                        "properties": {
                                          "name": {
                                            "type": "string",
                                            "pattern": "\\S",
                                            "x-normalization": "trim before validation",
                                            "maxLength": 120,
                                            "x-length-unit": "Unicode code points"
                                          },
                                          "type": {
                                            "type": "string",
                                            "enum": [
                                              "single",
                                              "group"
                                            ]
                                          },
                                          "position": {
                                            "type": "integer",
                                            "minimum": 0,
                                            "maximum": 100000
                                          },
                                          "installationYear": {
                                            "anyOf": [
                                              {
                                                "type": "integer",
                                                "minimum": 1700,
                                                "maximum": 9007199254740991,
                                                "description": "Year from 1700 through the current UTC calendar year plus one.",
                                                "x-maximum-year": "current UTC year + 1"
                                              },
                                              {
                                                "type": "null"
                                              }
                                            ]
                                          },
                                          "children": {
                                            "maxItems": 200,
                                            "type": "array",
                                            "items": {
                                              "type": "object",
                                              "properties": {
                                                "name": {
                                                  "type": "string",
                                                  "pattern": "\\S",
                                                  "x-normalization": "trim before validation",
                                                  "maxLength": 120,
                                                  "x-length-unit": "Unicode code points"
                                                },
                                                "type": {
                                                  "type": "string",
                                                  "enum": [
                                                    "single",
                                                    "group"
                                                  ]
                                                },
                                                "position": {
                                                  "type": "integer",
                                                  "minimum": 0,
                                                  "maximum": 100000
                                                },
                                                "installationYear": {
                                                  "anyOf": [
                                                    {
                                                      "type": "integer",
                                                      "minimum": 1700,
                                                      "maximum": 9007199254740991,
                                                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                                                      "x-maximum-year": "current UTC year + 1"
                                                    },
                                                    {
                                                      "type": "null"
                                                    }
                                                  ]
                                                },
                                                "children": {
                                                  "maxItems": 0,
                                                  "type": "array",
                                                  "items": {
                                                    "not": {}
                                                  }
                                                }
                                              },
                                              "required": [
                                                "name",
                                                "type",
                                                "position"
                                              ],
                                              "additionalProperties": false
                                            }
                                          }
                                        },
                                        "required": [
                                          "name",
                                          "type",
                                          "position"
                                        ],
                                        "additionalProperties": false
                                      }
                                    }
                                  },
                                  "required": [
                                    "name",
                                    "type",
                                    "position"
                                  ],
                                  "additionalProperties": false
                                }
                              }
                            },
                            "required": [
                              "name",
                              "type",
                              "position"
                            ],
                            "additionalProperties": false
                          }
                        }
                      },
                      "required": [
                        "nodes"
                      ],
                      "additionalProperties": false,
                      "x-template-tree-invariants": "At most 500 nodes total, 200 siblings and depth 4; unique sibling names and positions; ascending positions; single nodes have no children."
                    },
                    "isStandard": {
                      "type": "boolean"
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned template version, bound to this template."
                    }
                  },
                  "required": [
                    "id",
                    "name",
                    "propertyType",
                    "structure",
                    "isStandard",
                    "version"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned template version, bound to this template."
                    }
                  },
                  "required": [
                    "id",
                    "deleted",
                    "deletedAt",
                    "version"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "PlacementTemplateTombstone": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned template version, bound to this template."
          }
        },
        "required": [
          "id",
          "deleted",
          "deletedAt",
          "version"
        ],
        "additionalProperties": false
      },
      "PlacementPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "placementId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "placementId"
        ],
        "additionalProperties": false
      },
      "CreatePlacement": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned placement set version, bound to the property."
          },
          "name": {
            "type": "string",
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "maxLength": 120,
            "x-length-unit": "Unicode code points"
          },
          "placementType": {
            "type": "string",
            "enum": [
              "single",
              "group"
            ]
          },
          "parentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "position": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "installationYear": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "expectedVersion",
          "name",
          "placementType"
        ],
        "additionalProperties": false
      },
      "UpdatePlacement": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned placement set version, bound to the property."
          },
          "name": {
            "type": "string",
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "maxLength": 120,
            "x-length-unit": "Unicode code points"
          },
          "installationYear": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false,
        "minProperties": 2,
        "x-non-empty-patch": "expectedVersion plus name or installationYear"
      },
      "MovePlacement": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned placement set version, bound to the property."
          },
          "parentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "position": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          }
        },
        "required": [
          "expectedVersion",
          "parentId",
          "position"
        ],
        "additionalProperties": false
      },
      "ReorderPlacements": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned placement set version, bound to the property."
          },
          "parentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "orderedPlacementIds": {
            "minItems": 1,
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            }
          }
        },
        "required": [
          "expectedVersion",
          "orderedPlacementIds"
        ],
        "additionalProperties": false,
        "x-complete-sibling-permutation": true
      },
      "PlacementResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "parentId": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "name": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation",
                "maxLength": 120,
                "x-length-unit": "Unicode code points"
              },
              "placementType": {
                "type": "string",
                "enum": [
                  "single",
                  "group"
                ]
              },
              "position": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100000
              },
              "installationYear": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1700,
                    "maximum": 9007199254740991,
                    "description": "Year from 1700 through the current UTC calendar year plus one.",
                    "x-maximum-year": "current UTC year + 1"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "isActive": {
                "type": "boolean",
                "description": "Non-deleted placement; creation additionally requires an active single placement."
              }
            },
            "required": [
              "id",
              "propertyId",
              "parentId",
              "name",
              "placementType",
              "position",
              "installationYear",
              "isActive"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "properties": {
              "placementSetVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned placement set version, bound to the property."
              }
            },
            "required": [
              "placementSetVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "PlacementOrderResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 200,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "propertyId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "parentId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "pattern": "\\S",
                  "x-normalization": "trim before validation",
                  "maxLength": 120,
                  "x-length-unit": "Unicode code points"
                },
                "placementType": {
                  "type": "string",
                  "enum": [
                    "single",
                    "group"
                  ]
                },
                "position": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000
                },
                "installationYear": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 1700,
                      "maximum": 9007199254740991,
                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                      "x-maximum-year": "current UTC year + 1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "isActive": {
                  "type": "boolean",
                  "description": "Non-deleted placement; creation additionally requires an active single placement."
                }
              },
              "required": [
                "id",
                "propertyId",
                "parentId",
                "name",
                "placementType",
                "position",
                "installationYear",
                "isActive"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "placementSetVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned placement set version, bound to the property."
              }
            },
            "required": [
              "placementSetVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "PlacementRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              }
            },
            "required": [
              "id",
              "propertyId",
              "deleted",
              "deletedAt"
            ],
            "additionalProperties": false
          },
          "meta": {
            "type": "object",
            "properties": {
              "placementSetVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned placement set version, bound to the property."
              }
            },
            "required": [
              "placementSetVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false
      },
      "PlacementTombstone": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          }
        },
        "required": [
          "id",
          "propertyId",
          "deleted",
          "deletedAt"
        ],
        "additionalProperties": false
      },
      "PlacementSetVersion": {
        "type": "string",
        "minLength": 1,
        "maxLength": 256,
        "pattern": "^[\\x21-\\x7e]+$",
        "description": "Opaque server-owned placement set version, bound to the property."
      },
      "ServedPlacementQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedPlacementListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "parentId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "name": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation",
                      "maxLength": 120,
                      "x-length-unit": "Unicode code points"
                    },
                    "placementType": {
                      "type": "string",
                      "enum": [
                        "single",
                        "group"
                      ]
                    },
                    "position": {
                      "type": "integer",
                      "minimum": 0,
                      "maximum": 100000
                    },
                    "installationYear": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1700,
                          "maximum": 9007199254740991,
                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                          "x-maximum-year": "current UTC year + 1"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "isActive": {
                      "type": "boolean",
                      "description": "Non-deleted placement; creation additionally requires an active single placement."
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "parentId",
                    "name",
                    "placementType",
                    "position",
                    "installationYear",
                    "isActive"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  },
                  "placementSetVersion": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 256,
                    "pattern": "^[\\x21-\\x7e]+$",
                    "description": "Opaque server-owned placement set version, bound to the property."
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore",
                  "placementSetVersion"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "parentId": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "name": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation",
                          "maxLength": 120,
                          "x-length-unit": "Unicode code points"
                        },
                        "placementType": {
                          "type": "string",
                          "enum": [
                            "single",
                            "group"
                          ]
                        },
                        "position": {
                          "type": "integer",
                          "minimum": 0,
                          "maximum": 100000
                        },
                        "installationYear": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1700,
                              "maximum": 9007199254740991,
                              "description": "Year from 1700 through the current UTC calendar year plus one.",
                              "x-maximum-year": "current UTC year + 1"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "isActive": {
                          "type": "boolean",
                          "description": "Non-deleted placement; creation additionally requires an active single placement."
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "parentId",
                        "name",
                        "placementType",
                        "position",
                        "installationYear",
                        "isActive"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "deleted",
                        "deletedAt"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      },
                      "placementSetVersion": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256,
                        "pattern": "^[\\x21-\\x7e]+$",
                        "description": "Opaque server-owned placement set version, bound to the property."
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "AssignedProperty": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "address": {
            "type": "object",
            "properties": {
              "streetAddress": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              },
              "postalCode": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              },
              "city": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              }
            },
            "required": [
              "streetAddress",
              "postalCode",
              "city"
            ],
            "additionalProperties": false
          },
          "cadastral": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "gnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "\\S",
                        "x-normalization": "trim before validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "\\S",
                        "x-normalization": "trim before validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "municipality": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "\\S",
                        "x-normalization": "trim before validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "gnr",
                  "bnr",
                  "municipality"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "registryApartment": {
            "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "addressReference": {
                    "type": "string",
                    "pattern": "^\\d{1,20}$"
                  },
                  "number": {
                    "type": "string",
                    "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                  }
                },
                "required": [
                  "addressReference",
                  "number"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "constructionYear": {
            "type": "integer",
            "minimum": 1700,
            "maximum": 9007199254740991,
            "description": "Year from 1700 through the current UTC calendar year plus one.",
            "x-maximum-year": "current UTC year + 1"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "permissions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "id",
          "accountId",
          "address",
          "cadastral",
          "propertyType",
          "status",
          "constructionYear",
          "createdAt",
          "updatedAt",
          "permissions"
        ],
        "additionalProperties": false
      },
      "AssignedPropertyResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "accountId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "address": {
                "type": "object",
                "properties": {
                  "streetAddress": {
                    "type": "string",
                    "pattern": "\\S",
                    "x-normalization": "trim before validation"
                  },
                  "postalCode": {
                    "type": "string",
                    "pattern": "\\S",
                    "x-normalization": "trim before validation"
                  },
                  "city": {
                    "type": "string",
                    "pattern": "\\S",
                    "x-normalization": "trim before validation"
                  }
                },
                "required": [
                  "streetAddress",
                  "postalCode",
                  "city"
                ],
                "additionalProperties": false
              },
              "cadastral": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "gnr": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "bnr": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "municipality": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "gnr",
                      "bnr",
                      "municipality"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "registryApartment": {
                "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "addressReference": {
                        "type": "string",
                        "pattern": "^\\d{1,20}$"
                      },
                      "number": {
                        "type": "string",
                        "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                      }
                    },
                    "required": [
                      "addressReference",
                      "number"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "propertyType": {
                "type": "string",
                "enum": [
                  "detached",
                  "apartment",
                  "townhouse",
                  "semi_detached",
                  "cabin",
                  "commercial",
                  "other"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "archived"
                ]
              },
              "constructionYear": {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "permissions": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            },
            "required": [
              "id",
              "accountId",
              "address",
              "cadastral",
              "propertyType",
              "status",
              "constructionYear",
              "createdAt",
              "updatedAt",
              "permissions"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "AssignedPropertyListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256,
                  "pattern": "^[\\x21-\\x7e]+$",
                  "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
                },
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "address": {
                  "type": "object",
                  "properties": {
                    "streetAddress": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation"
                    },
                    "postalCode": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation"
                    },
                    "city": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation"
                    }
                  },
                  "required": [
                    "streetAddress",
                    "postalCode",
                    "city"
                  ],
                  "additionalProperties": false
                },
                "cadastral": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "gnr": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bnr": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "municipality": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "gnr",
                        "bnr",
                        "municipality"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "registryApartment": {
                  "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "addressReference": {
                          "type": "string",
                          "pattern": "^\\d{1,20}$"
                        },
                        "number": {
                          "type": "string",
                          "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                        }
                      },
                      "required": [
                        "addressReference",
                        "number"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "propertyType": {
                  "type": "string",
                  "enum": [
                    "detached",
                    "apartment",
                    "townhouse",
                    "semi_detached",
                    "cabin",
                    "commercial",
                    "other"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "archived"
                  ]
                },
                "constructionYear": {
                  "type": "integer",
                  "minimum": 1700,
                  "maximum": 9007199254740991,
                  "description": "Year from 1700 through the current UTC calendar year plus one.",
                  "x-maximum-year": "current UTC year + 1"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "permissions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              },
              "required": [
                "id",
                "accountId",
                "address",
                "cadastral",
                "propertyType",
                "status",
                "constructionYear",
                "createdAt",
                "updatedAt",
                "permissions"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "Property": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "address": {
            "type": "object",
            "properties": {
              "streetAddress": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              },
              "postalCode": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              },
              "city": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              }
            },
            "required": [
              "streetAddress",
              "postalCode",
              "city"
            ],
            "additionalProperties": false
          },
          "cadastral": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "gnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "\\S",
                        "x-normalization": "trim before validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "\\S",
                        "x-normalization": "trim before validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "municipality": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "\\S",
                        "x-normalization": "trim before validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "municipalityCode": {
                    "description": "Always present in fresh responses; optional for retained older bodies.",
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{4}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fnr": {
                    "description": "Always present in fresh responses; optional for retained older bodies.",
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "snr": {
                    "description": "Always present in fresh responses; optional for retained older bodies.",
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "gnr",
                  "bnr",
                  "municipality"
                ],
                "additionalProperties": false,
                "not": {
                  "properties": {
                    "gnr": {
                      "type": "null"
                    },
                    "bnr": {
                      "type": "null"
                    },
                    "municipality": {
                      "type": "null"
                    },
                    "municipalityCode": {
                      "type": "null"
                    },
                    "fnr": {
                      "type": "null"
                    },
                    "snr": {
                      "type": "null"
                    }
                  }
                }
              },
              {
                "type": "null"
              }
            ]
          },
          "registryAddress": {
            "description": "Stored registry snapshot, always present in fresh responses; optional for retained older bodies. Caller-provided context, not proof of authenticity.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "addressKind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "street",
                          "cadastral"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reference": {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "pattern": "^[\\s\\S]{1,100}$"
                      }
                    ]
                  },
                  "streetAddress": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "postalCode": {
                    "type": "string",
                    "pattern": "^\\d{4}$"
                  },
                  "city": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "municipality": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "municipalityCode": {
                    "type": "string",
                    "pattern": "^\\d{4}$"
                  },
                  "cadastralGnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralBnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralFnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralSnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "streetName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "houseNumber": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "houseLetter": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[\\s\\S]{0,8}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressSupplement": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "position": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "latitude": {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          },
                          "longitude": {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          },
                          "crs": {
                            "type": "string",
                            "const": "EPSG:4258"
                          }
                        },
                        "required": [
                          "latitude",
                          "longitude",
                          "crs"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "source": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "\\S"
                          },
                          {
                            "pattern": "^[\\s\\S]{1,60}$"
                          }
                        ]
                      },
                      "retrievedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                        "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                      },
                      "updatedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 40,
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "provider",
                      "retrievedAt",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "addressKind",
                  "reference",
                  "streetAddress",
                  "postalCode",
                  "city",
                  "municipality",
                  "municipalityCode",
                  "cadastralGnr",
                  "cadastralBnr",
                  "cadastralFnr",
                  "cadastralSnr",
                  "streetName",
                  "houseNumber",
                  "houseLetter",
                  "addressCode",
                  "addressSupplement",
                  "position",
                  "source"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "registryApartment": {
            "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "addressReference": {
                    "type": "string",
                    "pattern": "^\\d{1,20}$"
                  },
                  "number": {
                    "type": "string",
                    "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                  }
                },
                "required": [
                  "addressReference",
                  "number"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "constructionYear": {
            "type": "integer",
            "minimum": 1700,
            "maximum": 9007199254740991,
            "description": "Year from 1700 through the current UTC calendar year plus one.",
            "x-maximum-year": "current UTC year + 1"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          }
        },
        "required": [
          "id",
          "accountId",
          "address",
          "cadastral",
          "propertyType",
          "status",
          "constructionYear",
          "createdAt",
          "updatedAt"
        ],
        "additionalProperties": false
      },
      "AccountObservationQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "resolved"
            ]
          },
          "tgGrade": {
            "type": "string",
            "enum": [
              "TG0",
              "TG1",
              "TG2",
              "TG3",
              "TG-IU"
            ]
          },
          "sortBy": {
            "default": "createdAt",
            "type": "string",
            "enum": [
              "createdAt",
              "updatedAt"
            ]
          },
          "sortDirection": {
            "default": "desc",
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          }
        },
        "additionalProperties": false
      },
      "ServedAccountObservationQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "in_progress",
                  "resolved"
                ]
              },
              "tgGrade": {
                "type": "string",
                "enum": [
                  "TG0",
                  "TG1",
                  "TG2",
                  "TG3",
                  "TG-IU"
                ]
              },
              "sortBy": {
                "default": "createdAt",
                "type": "string",
                "enum": [
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortDirection": {
                "default": "desc",
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedPropertyQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "search": {
                "type": "string",
                "allOf": [
                  {
                    "pattern": "\\S"
                  },
                  {
                    "pattern": "^[^\\u0000]*$"
                  }
                ],
                "x-normalization": "trim before validation",
                "maxLength": 200,
                "x-length-unit": "Unicode code points"
              },
              "status": {
                "default": "active",
                "type": "string",
                "enum": [
                  "active",
                  "archived"
                ]
              },
              "propertyType": {
                "type": "string",
                "enum": [
                  "detached",
                  "apartment",
                  "townhouse",
                  "semi_detached",
                  "cabin",
                  "commercial",
                  "other"
                ]
              },
              "sortBy": {
                "default": "updatedAt",
                "type": "string",
                "enum": [
                  "address",
                  "propertyType",
                  "constructionYear",
                  "createdAt",
                  "updatedAt"
                ]
              },
              "sortDirection": {
                "default": "desc",
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "ServedObservationQuery": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageIndex": {
                "default": 0,
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "in_progress",
                  "resolved"
                ]
              },
              "tgGrade": {
                "type": "string",
                "enum": [
                  "TG0",
                  "TG1",
                  "TG2",
                  "TG3",
                  "TG-IU"
                ]
              },
              "placementId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "sortBy": {
                "default": "createdAt",
                "type": "string",
                "const": "createdAt"
              },
              "sortDirection": {
                "default": "desc",
                "type": "string",
                "enum": [
                  "asc",
                  "desc"
                ]
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "changedSince": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "cursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              },
              "includeDeleted": {
                "type": "boolean"
              },
              "pageSize": {
                "default": 25,
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              }
            },
            "required": [
              "changedSince"
            ],
            "additionalProperties": false
          }
        ]
      },
      "PropertyTombstone": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          }
        },
        "required": [
          "id",
          "deleted",
          "deletedAt"
        ],
        "additionalProperties": false
      },
      "ObservationTombstone": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "deleted": {
            "type": "boolean",
            "const": true
          },
          "deletedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          }
        },
        "required": [
          "id",
          "deleted",
          "deletedAt",
          "propertyId",
          "version"
        ],
        "additionalProperties": false
      },
      "ObservationRemovalResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "deleted": {
                "type": "boolean",
                "const": true
              },
              "deletedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
              }
            },
            "required": [
              "id",
              "deleted",
              "deletedAt",
              "propertyId",
              "version"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "SyncMeta": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean",
                "const": true
              },
              "nextCursor": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              }
            },
            "required": [
              "pageSize",
              "hasMore",
              "nextCursor"
            ],
            "additionalProperties": false
          },
          {
            "type": "object",
            "properties": {
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean",
                "const": false
              },
              "syncCheckpoint": {
                "type": "string",
                "minLength": 1,
                "maxLength": 2048,
                "pattern": "^[A-Za-z0-9_.-]+$"
              }
            },
            "required": [
              "pageSize",
              "hasMore",
              "syncCheckpoint"
            ],
            "additionalProperties": false
          }
        ]
      },
      "PropertySyncListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "streetAddress": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation"
                        },
                        "postalCode": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation"
                        },
                        "city": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation"
                        }
                      },
                      "required": [
                        "streetAddress",
                        "postalCode",
                        "city"
                      ],
                      "additionalProperties": false
                    },
                    "cadastral": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "gnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "bnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "municipality": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "municipalityCode": {
                              "description": "Always present in fresh responses; optional for retained older bodies.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{4}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "fnr": {
                              "description": "Always present in fresh responses; optional for retained older bodies.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "snr": {
                              "description": "Always present in fresh responses; optional for retained older bodies.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "gnr",
                            "bnr",
                            "municipality"
                          ],
                          "additionalProperties": false,
                          "not": {
                            "properties": {
                              "gnr": {
                                "type": "null"
                              },
                              "bnr": {
                                "type": "null"
                              },
                              "municipality": {
                                "type": "null"
                              },
                              "municipalityCode": {
                                "type": "null"
                              },
                              "fnr": {
                                "type": "null"
                              },
                              "snr": {
                                "type": "null"
                              }
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "registryAddress": {
                      "description": "Stored registry snapshot, always present in fresh responses; optional for retained older bodies. Caller-provided context, not proof of authenticity.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "addressKind": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "street",
                                    "cadastral"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reference": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                {
                                  "pattern": "^[\\s\\S]{1,100}$"
                                }
                              ]
                            },
                            "streetAddress": {
                              "type": "string",
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "pattern": "^\\d{4}$"
                            },
                            "city": {
                              "type": "string",
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            "municipality": {
                              "type": "string",
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            "municipalityCode": {
                              "type": "string",
                              "pattern": "^\\d{4}$"
                            },
                            "cadastralGnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cadastralBnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cadastralFnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cadastralSnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "streetName": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "houseNumber": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "houseLetter": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]{0,8}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "addressCode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "addressSupplement": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "position": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "latitude": {
                                      "type": "number",
                                      "minimum": -90,
                                      "maximum": 90
                                    },
                                    "longitude": {
                                      "type": "number",
                                      "minimum": -180,
                                      "maximum": 180
                                    },
                                    "crs": {
                                      "type": "string",
                                      "const": "EPSG:4258"
                                    }
                                  },
                                  "required": [
                                    "latitude",
                                    "longitude",
                                    "crs"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "source": {
                              "type": "object",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "\\S"
                                    },
                                    {
                                      "pattern": "^[\\s\\S]{1,60}$"
                                    }
                                  ]
                                },
                                "retrievedAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                                },
                                "updatedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 40,
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "provider",
                                "retrievedAt",
                                "updatedAt"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "addressKind",
                            "reference",
                            "streetAddress",
                            "postalCode",
                            "city",
                            "municipality",
                            "municipalityCode",
                            "cadastralGnr",
                            "cadastralBnr",
                            "cadastralFnr",
                            "cadastralSnr",
                            "streetName",
                            "houseNumber",
                            "houseLetter",
                            "addressCode",
                            "addressSupplement",
                            "position",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "registryApartment": {
                      "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "addressReference": {
                              "type": "string",
                              "pattern": "^\\d{1,20}$"
                            },
                            "number": {
                              "type": "string",
                              "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                            }
                          },
                          "required": [
                            "addressReference",
                            "number"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "propertyType": {
                      "type": "string",
                      "enum": [
                        "detached",
                        "apartment",
                        "townhouse",
                        "semi_detached",
                        "cabin",
                        "commercial",
                        "other"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "archived"
                      ]
                    },
                    "constructionYear": {
                      "type": "integer",
                      "minimum": 1700,
                      "maximum": 9007199254740991,
                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                      "x-maximum-year": "current UTC year + 1"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "id",
                    "accountId",
                    "address",
                    "cadastral",
                    "propertyType",
                    "status",
                    "constructionYear",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "id",
                    "deleted",
                    "deletedAt"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "ObservationSyncListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "placementId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "number": {
                      "type": "string",
                      "maxLength": 19,
                      "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
                      "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
                    },
                    "controlPoint": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 500,
                      "pattern": "\\S",
                      "x-length-unit": "Unicode code points",
                      "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "x-normalization": "trim before validation",
                          "x-length-unit": "Unicode code points"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
                    },
                    "description": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000,
                      "pattern": "\\S",
                      "x-normalization": "trim before validation",
                      "x-length-unit": "Unicode code points"
                    },
                    "tgGrade": {
                      "type": "string",
                      "enum": [
                        "TG0",
                        "TG1",
                        "TG2",
                        "TG3",
                        "TG-IU"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "open",
                        "in_progress",
                        "resolved"
                      ]
                    },
                    "installationYear": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1700,
                          "maximum": 9007199254740991,
                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                          "x-maximum-year": "current UTC year + 1"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Observation override only; null means inherited, not an effective resolved year."
                    },
                    "resolvedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                    },
                    "remediation": {
                      "type": "object",
                      "properties": {
                        "imageRequired": {
                          "type": "boolean"
                        },
                        "commentRequired": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "imageRequired",
                        "commentRequired"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "placementId",
                    "number",
                    "controlPoint",
                    "title",
                    "description",
                    "tgGrade",
                    "status",
                    "installationYear",
                    "resolvedAt",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "status": {
                            "const": "resolved"
                          }
                        }
                      },
                      "then": {
                        "properties": {
                          "resolvedAt": {
                            "type": "string"
                          }
                        }
                      },
                      "else": {
                        "properties": {
                          "resolvedAt": {
                            "type": "null"
                          }
                        }
                      }
                    }
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "deleted": {
                      "type": "boolean",
                      "const": true
                    },
                    "deletedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                    }
                  },
                  "required": [
                    "id",
                    "deleted",
                    "deletedAt",
                    "propertyId",
                    "version"
                  ],
                  "additionalProperties": false
                }
              ]
            }
          },
          "meta": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": true
                  },
                  "nextCursor": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "nextCursor"
                ],
                "additionalProperties": false
              },
              {
                "type": "object",
                "properties": {
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean",
                    "const": false
                  },
                  "syncCheckpoint": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 2048,
                    "pattern": "^[A-Za-z0-9_.-]+$"
                  }
                },
                "required": [
                  "pageSize",
                  "hasMore",
                  "syncCheckpoint"
                ],
                "additionalProperties": false
              }
            ]
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
      },
      "ServedPropertyListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
                    },
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "accountId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "address": {
                      "type": "object",
                      "properties": {
                        "streetAddress": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation"
                        },
                        "postalCode": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation"
                        },
                        "city": {
                          "type": "string",
                          "pattern": "\\S",
                          "x-normalization": "trim before validation"
                        }
                      },
                      "required": [
                        "streetAddress",
                        "postalCode",
                        "city"
                      ],
                      "additionalProperties": false
                    },
                    "cadastral": {
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "gnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "bnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "municipality": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "\\S",
                                  "x-normalization": "trim before validation"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "municipalityCode": {
                              "description": "Always present in fresh responses; optional for retained older bodies.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{4}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "fnr": {
                              "description": "Always present in fresh responses; optional for retained older bodies.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "snr": {
                              "description": "Always present in fresh responses; optional for retained older bodies.",
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "gnr",
                            "bnr",
                            "municipality"
                          ],
                          "additionalProperties": false,
                          "not": {
                            "properties": {
                              "gnr": {
                                "type": "null"
                              },
                              "bnr": {
                                "type": "null"
                              },
                              "municipality": {
                                "type": "null"
                              },
                              "municipalityCode": {
                                "type": "null"
                              },
                              "fnr": {
                                "type": "null"
                              },
                              "snr": {
                                "type": "null"
                              }
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "registryAddress": {
                      "description": "Stored registry snapshot, always present in fresh responses; optional for retained older bodies. Caller-provided context, not proof of authenticity.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "addressKind": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "enum": [
                                    "street",
                                    "cadastral"
                                  ]
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "reference": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                {
                                  "pattern": "^[\\s\\S]{1,100}$"
                                }
                              ]
                            },
                            "streetAddress": {
                              "type": "string",
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            "postalCode": {
                              "type": "string",
                              "pattern": "^\\d{4}$"
                            },
                            "city": {
                              "type": "string",
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            "municipality": {
                              "type": "string",
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            "municipalityCode": {
                              "type": "string",
                              "pattern": "^\\d{4}$"
                            },
                            "cadastralGnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cadastralBnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cadastralFnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "cadastralSnr": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "streetName": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "houseNumber": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "houseLetter": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^[\\s\\S]{0,8}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "addressCode": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\d{1,12}$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "addressSupplement": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "position": {
                              "anyOf": [
                                {
                                  "type": "object",
                                  "properties": {
                                    "latitude": {
                                      "type": "number",
                                      "minimum": -90,
                                      "maximum": 90
                                    },
                                    "longitude": {
                                      "type": "number",
                                      "minimum": -180,
                                      "maximum": 180
                                    },
                                    "crs": {
                                      "type": "string",
                                      "const": "EPSG:4258"
                                    }
                                  },
                                  "required": [
                                    "latitude",
                                    "longitude",
                                    "crs"
                                  ],
                                  "additionalProperties": false
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "source": {
                              "type": "object",
                              "properties": {
                                "provider": {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "\\S"
                                    },
                                    {
                                      "pattern": "^[\\s\\S]{1,60}$"
                                    }
                                  ]
                                },
                                "retrievedAt": {
                                  "type": "string",
                                  "format": "date-time",
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                                },
                                "updatedAt": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "maxLength": 40,
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "provider",
                                "retrievedAt",
                                "updatedAt"
                              ],
                              "additionalProperties": false
                            }
                          },
                          "required": [
                            "addressKind",
                            "reference",
                            "streetAddress",
                            "postalCode",
                            "city",
                            "municipality",
                            "municipalityCode",
                            "cadastralGnr",
                            "cadastralBnr",
                            "cadastralFnr",
                            "cadastralSnr",
                            "streetName",
                            "houseNumber",
                            "houseLetter",
                            "addressCode",
                            "addressSupplement",
                            "position",
                            "source"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "registryApartment": {
                      "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
                      "anyOf": [
                        {
                          "type": "object",
                          "properties": {
                            "addressReference": {
                              "type": "string",
                              "pattern": "^\\d{1,20}$"
                            },
                            "number": {
                              "type": "string",
                              "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                            }
                          },
                          "required": [
                            "addressReference",
                            "number"
                          ],
                          "additionalProperties": false
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "propertyType": {
                      "type": "string",
                      "enum": [
                        "detached",
                        "apartment",
                        "townhouse",
                        "semi_detached",
                        "cabin",
                        "commercial",
                        "other"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "active",
                        "archived"
                      ]
                    },
                    "constructionYear": {
                      "type": "integer",
                      "minimum": 1700,
                      "maximum": 9007199254740991,
                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                      "x-maximum-year": "current UTC year + 1"
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    }
                  },
                  "required": [
                    "id",
                    "accountId",
                    "address",
                    "cadastral",
                    "propertyType",
                    "status",
                    "constructionYear",
                    "createdAt",
                    "updatedAt"
                  ],
                  "additionalProperties": false
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
                        },
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "accountId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "address": {
                          "type": "object",
                          "properties": {
                            "streetAddress": {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            },
                            "postalCode": {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            },
                            "city": {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            }
                          },
                          "required": [
                            "streetAddress",
                            "postalCode",
                            "city"
                          ],
                          "additionalProperties": false
                        },
                        "cadastral": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "gnr": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "\\S",
                                      "x-normalization": "trim before validation"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "bnr": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "\\S",
                                      "x-normalization": "trim before validation"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "municipality": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "\\S",
                                      "x-normalization": "trim before validation"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "municipalityCode": {
                                  "description": "Always present in fresh responses; optional for retained older bodies.",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{4}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "fnr": {
                                  "description": "Always present in fresh responses; optional for retained older bodies.",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{1,12}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "snr": {
                                  "description": "Always present in fresh responses; optional for retained older bodies.",
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{1,12}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                }
                              },
                              "required": [
                                "gnr",
                                "bnr",
                                "municipality"
                              ],
                              "additionalProperties": false,
                              "not": {
                                "properties": {
                                  "gnr": {
                                    "type": "null"
                                  },
                                  "bnr": {
                                    "type": "null"
                                  },
                                  "municipality": {
                                    "type": "null"
                                  },
                                  "municipalityCode": {
                                    "type": "null"
                                  },
                                  "fnr": {
                                    "type": "null"
                                  },
                                  "snr": {
                                    "type": "null"
                                  }
                                }
                              }
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "registryAddress": {
                          "description": "Stored registry snapshot, always present in fresh responses; optional for retained older bodies. Caller-provided context, not proof of authenticity.",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "addressKind": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "enum": [
                                        "street",
                                        "cadastral"
                                      ]
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "reference": {
                                  "type": "string",
                                  "allOf": [
                                    {
                                      "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                    },
                                    {
                                      "pattern": "^[\\s\\S]{1,100}$"
                                    }
                                  ]
                                },
                                "streetAddress": {
                                  "type": "string",
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                "postalCode": {
                                  "type": "string",
                                  "pattern": "^\\d{4}$"
                                },
                                "city": {
                                  "type": "string",
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                "municipality": {
                                  "type": "string",
                                  "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                },
                                "municipalityCode": {
                                  "type": "string",
                                  "pattern": "^\\d{4}$"
                                },
                                "cadastralGnr": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{1,12}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "cadastralBnr": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{1,12}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "cadastralFnr": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{1,12}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "cadastralSnr": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{1,12}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "streetName": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "houseNumber": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{1,12}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "houseLetter": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^[\\s\\S]{0,8}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "addressCode": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\d{1,12}$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "addressSupplement": {
                                  "anyOf": [
                                    {
                                      "type": "string",
                                      "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "position": {
                                  "anyOf": [
                                    {
                                      "type": "object",
                                      "properties": {
                                        "latitude": {
                                          "type": "number",
                                          "minimum": -90,
                                          "maximum": 90
                                        },
                                        "longitude": {
                                          "type": "number",
                                          "minimum": -180,
                                          "maximum": 180
                                        },
                                        "crs": {
                                          "type": "string",
                                          "const": "EPSG:4258"
                                        }
                                      },
                                      "required": [
                                        "latitude",
                                        "longitude",
                                        "crs"
                                      ],
                                      "additionalProperties": false
                                    },
                                    {
                                      "type": "null"
                                    }
                                  ]
                                },
                                "source": {
                                  "type": "object",
                                  "properties": {
                                    "provider": {
                                      "type": "string",
                                      "allOf": [
                                        {
                                          "pattern": "\\S"
                                        },
                                        {
                                          "pattern": "^[\\s\\S]{1,60}$"
                                        }
                                      ]
                                    },
                                    "retrievedAt": {
                                      "type": "string",
                                      "format": "date-time",
                                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                                    },
                                    "updatedAt": {
                                      "anyOf": [
                                        {
                                          "type": "string",
                                          "maxLength": 40,
                                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                                        },
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  "required": [
                                    "provider",
                                    "retrievedAt",
                                    "updatedAt"
                                  ],
                                  "additionalProperties": false
                                }
                              },
                              "required": [
                                "addressKind",
                                "reference",
                                "streetAddress",
                                "postalCode",
                                "city",
                                "municipality",
                                "municipalityCode",
                                "cadastralGnr",
                                "cadastralBnr",
                                "cadastralFnr",
                                "cadastralSnr",
                                "streetName",
                                "houseNumber",
                                "houseLetter",
                                "addressCode",
                                "addressSupplement",
                                "position",
                                "source"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "registryApartment": {
                          "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "addressReference": {
                                  "type": "string",
                                  "pattern": "^\\d{1,20}$"
                                },
                                "number": {
                                  "type": "string",
                                  "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                                }
                              },
                              "required": [
                                "addressReference",
                                "number"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "propertyType": {
                          "type": "string",
                          "enum": [
                            "detached",
                            "apartment",
                            "townhouse",
                            "semi_detached",
                            "cabin",
                            "commercial",
                            "other"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "active",
                            "archived"
                          ]
                        },
                        "constructionYear": {
                          "type": "integer",
                          "minimum": 1700,
                          "maximum": 9007199254740991,
                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                          "x-maximum-year": "current UTC year + 1"
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        }
                      },
                      "required": [
                        "id",
                        "accountId",
                        "address",
                        "cadastral",
                        "propertyType",
                        "status",
                        "constructionYear",
                        "createdAt",
                        "updatedAt"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        }
                      },
                      "required": [
                        "id",
                        "deleted",
                        "deletedAt"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "ServedObservationListResponse": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "propertyId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "placementId": {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    "number": {
                      "type": "string",
                      "maxLength": 19,
                      "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
                      "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
                    },
                    "controlPoint": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 500,
                      "pattern": "\\S",
                      "x-length-unit": "Unicode code points",
                      "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
                    },
                    "title": {
                      "anyOf": [
                        {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "x-normalization": "trim before validation",
                          "x-length-unit": "Unicode code points"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
                    },
                    "description": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 10000,
                      "pattern": "\\S",
                      "x-normalization": "trim before validation",
                      "x-length-unit": "Unicode code points"
                    },
                    "tgGrade": {
                      "type": "string",
                      "enum": [
                        "TG0",
                        "TG1",
                        "TG2",
                        "TG3",
                        "TG-IU"
                      ]
                    },
                    "status": {
                      "type": "string",
                      "enum": [
                        "open",
                        "in_progress",
                        "resolved"
                      ]
                    },
                    "installationYear": {
                      "anyOf": [
                        {
                          "type": "integer",
                          "minimum": 1700,
                          "maximum": 9007199254740991,
                          "description": "Year from 1700 through the current UTC calendar year plus one.",
                          "x-maximum-year": "current UTC year + 1"
                        },
                        {
                          "type": "null"
                        }
                      ],
                      "description": "Observation override only; null means inherited, not an effective resolved year."
                    },
                    "resolvedAt": {
                      "anyOf": [
                        {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "updatedAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    "version": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256,
                      "pattern": "^[\\x21-\\x7e]+$",
                      "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                    },
                    "remediation": {
                      "type": "object",
                      "properties": {
                        "imageRequired": {
                          "type": "boolean"
                        },
                        "commentRequired": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "imageRequired",
                        "commentRequired"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "id",
                    "propertyId",
                    "placementId",
                    "number",
                    "controlPoint",
                    "title",
                    "description",
                    "tgGrade",
                    "status",
                    "installationYear",
                    "resolvedAt",
                    "createdAt",
                    "updatedAt",
                    "version"
                  ],
                  "additionalProperties": false,
                  "allOf": [
                    {
                      "if": {
                        "properties": {
                          "status": {
                            "const": "resolved"
                          }
                        }
                      },
                      "then": {
                        "properties": {
                          "resolvedAt": {
                            "type": "string"
                          }
                        }
                      },
                      "else": {
                        "properties": {
                          "resolvedAt": {
                            "type": "null"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "meta": {
                "type": "object",
                "properties": {
                  "pageIndex": {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 9007199254740991
                  },
                  "pageSize": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 100
                  },
                  "hasMore": {
                    "type": "boolean"
                  }
                },
                "required": [
                  "pageIndex",
                  "pageSize",
                  "hasMore"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "maxItems": 100,
                "type": "array",
                "items": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "placementId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "number": {
                          "type": "string",
                          "maxLength": 19,
                          "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
                          "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
                        },
                        "controlPoint": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 500,
                          "pattern": "\\S",
                          "x-length-unit": "Unicode code points",
                          "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
                        },
                        "title": {
                          "anyOf": [
                            {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 200,
                              "x-normalization": "trim before validation",
                              "x-length-unit": "Unicode code points"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
                        },
                        "description": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 10000,
                          "pattern": "\\S",
                          "x-normalization": "trim before validation",
                          "x-length-unit": "Unicode code points"
                        },
                        "tgGrade": {
                          "type": "string",
                          "enum": [
                            "TG0",
                            "TG1",
                            "TG2",
                            "TG3",
                            "TG-IU"
                          ]
                        },
                        "status": {
                          "type": "string",
                          "enum": [
                            "open",
                            "in_progress",
                            "resolved"
                          ]
                        },
                        "installationYear": {
                          "anyOf": [
                            {
                              "type": "integer",
                              "minimum": 1700,
                              "maximum": 9007199254740991,
                              "description": "Year from 1700 through the current UTC calendar year plus one.",
                              "x-maximum-year": "current UTC year + 1"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "description": "Observation override only; null means inherited, not an effective resolved year."
                        },
                        "resolvedAt": {
                          "anyOf": [
                            {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                              "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "createdAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "updatedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                        },
                        "remediation": {
                          "type": "object",
                          "properties": {
                            "imageRequired": {
                              "type": "boolean"
                            },
                            "commentRequired": {
                              "type": "boolean"
                            }
                          },
                          "required": [
                            "imageRequired",
                            "commentRequired"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "id",
                        "propertyId",
                        "placementId",
                        "number",
                        "controlPoint",
                        "title",
                        "description",
                        "tgGrade",
                        "status",
                        "installationYear",
                        "resolvedAt",
                        "createdAt",
                        "updatedAt",
                        "version"
                      ],
                      "additionalProperties": false,
                      "allOf": [
                        {
                          "if": {
                            "properties": {
                              "status": {
                                "const": "resolved"
                              }
                            }
                          },
                          "then": {
                            "properties": {
                              "resolvedAt": {
                                "type": "string"
                              }
                            }
                          },
                          "else": {
                            "properties": {
                              "resolvedAt": {
                                "type": "null"
                              }
                            }
                          }
                        }
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "deleted": {
                          "type": "boolean",
                          "const": true
                        },
                        "deletedAt": {
                          "type": "string",
                          "format": "date-time",
                          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                          "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                        },
                        "propertyId": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "version": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256,
                          "pattern": "^[\\x21-\\x7e]+$",
                          "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                        }
                      },
                      "required": [
                        "id",
                        "deleted",
                        "deletedAt",
                        "propertyId",
                        "version"
                      ],
                      "additionalProperties": false
                    }
                  ]
                }
              },
              "meta": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": true
                      },
                      "nextCursor": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "nextCursor"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "object",
                    "properties": {
                      "pageSize": {
                        "type": "integer",
                        "minimum": 1,
                        "maximum": 100
                      },
                      "hasMore": {
                        "type": "boolean",
                        "const": false
                      },
                      "syncCheckpoint": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 2048,
                        "pattern": "^[A-Za-z0-9_.-]+$"
                      }
                    },
                    "required": [
                      "pageSize",
                      "hasMore",
                      "syncCheckpoint"
                    ],
                    "additionalProperties": false
                  }
                ]
              }
            },
            "required": [
              "data",
              "meta"
            ],
            "additionalProperties": false,
            "x-sync-page-invariants": "data.length <= meta.pageSize; hasMore requires a full page and nextCursor; final page alone carries syncCheckpoint"
          }
        ]
      },
      "Placement": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "parentId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          },
          "name": {
            "type": "string",
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "maxLength": 120,
            "x-length-unit": "Unicode code points"
          },
          "placementType": {
            "type": "string",
            "enum": [
              "single",
              "group"
            ]
          },
          "position": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100000
          },
          "installationYear": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              {
                "type": "null"
              }
            ]
          },
          "isActive": {
            "type": "boolean",
            "description": "Non-deleted placement; creation additionally requires an active single placement."
          }
        },
        "required": [
          "id",
          "propertyId",
          "parentId",
          "name",
          "placementType",
          "position",
          "installationYear",
          "isActive"
        ],
        "additionalProperties": false
      },
      "Observation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "placementId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "number": {
            "type": "string",
            "maxLength": 19,
            "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
            "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
          },
          "controlPoint": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "pattern": "\\S",
            "x-length-unit": "Unicode code points",
            "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "x-normalization": "trim before validation",
                "x-length-unit": "Unicode code points"
              },
              {
                "type": "null"
              }
            ],
            "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000,
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "x-length-unit": "Unicode code points"
          },
          "tgGrade": {
            "type": "string",
            "enum": [
              "TG0",
              "TG1",
              "TG2",
              "TG3",
              "TG-IU"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "resolved"
            ]
          },
          "installationYear": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              {
                "type": "null"
              }
            ],
            "description": "Observation override only; null means inherited, not an effective resolved year."
          },
          "resolvedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          }
        },
        "required": [
          "id",
          "propertyId",
          "placementId",
          "number",
          "controlPoint",
          "title",
          "description",
          "tgGrade",
          "status",
          "installationYear",
          "resolvedAt",
          "createdAt",
          "updatedAt",
          "version"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "status": {
                  "const": "resolved"
                }
              }
            },
            "then": {
              "properties": {
                "resolvedAt": {
                  "type": "string"
                }
              }
            },
            "else": {
              "properties": {
                "resolvedAt": {
                  "type": "null"
                }
              }
            }
          }
        ]
      },
      "CreateProperty": {
        "type": "object",
        "properties": {
          "address": {
            "type": "object",
            "properties": {
              "streetAddress": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              },
              "postalCode": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              },
              "city": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              }
            },
            "required": [
              "streetAddress",
              "postalCode",
              "city"
            ],
            "additionalProperties": false
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "constructionYear": {
            "type": "integer",
            "minimum": 1700,
            "maximum": 9007199254740991,
            "description": "Year from 1700 through the current UTC calendar year plus one.",
            "x-maximum-year": "current UTC year + 1"
          },
          "placementTemplateId": {
            "description": "Create-only template selection, requiring slice B and the live templates.read permission. Omit it for an empty placement tree; null is invalid. Disabled selection returns 503, a property-type mismatch 400, and a missing, deleted or foreign template 404.",
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "cadastral": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "gnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "municipality": {
                    "anyOf": [
                      {
                        "type": "string",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "municipalityCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^(?:\\d{4})?$",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^(?:\\d{1,12})?$",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "snr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^(?:\\d{1,12})?$",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "registryAddress": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "addressKind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "street",
                          "cadastral"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reference": {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "pattern": "^[\\s\\S]{1,100}$"
                      }
                    ]
                  },
                  "streetAddress": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "postalCode": {
                    "type": "string",
                    "pattern": "^\\d{4}$"
                  },
                  "city": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "municipality": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "municipalityCode": {
                    "type": "string",
                    "pattern": "^\\d{4}$"
                  },
                  "cadastralGnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralBnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralFnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralSnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "streetName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "houseNumber": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "houseLetter": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[\\s\\S]{0,8}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressSupplement": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "position": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "latitude": {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          },
                          "longitude": {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          },
                          "crs": {
                            "type": "string",
                            "const": "EPSG:4258"
                          }
                        },
                        "required": [
                          "latitude",
                          "longitude",
                          "crs"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "source": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "\\S"
                          },
                          {
                            "pattern": "^[\\s\\S]{1,60}$"
                          }
                        ]
                      },
                      "retrievedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                        "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                      },
                      "updatedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 40,
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "provider",
                      "retrievedAt",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "addressKind",
                  "reference",
                  "streetAddress",
                  "postalCode",
                  "city",
                  "municipality",
                  "municipalityCode",
                  "cadastralGnr",
                  "cadastralBnr",
                  "cadastralFnr",
                  "cadastralSnr",
                  "streetName",
                  "houseNumber",
                  "houseLetter",
                  "addressCode",
                  "addressSupplement",
                  "position",
                  "source"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "registryApartment": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "addressReference": {
                    "type": "string",
                    "pattern": "^\\d{1,20}$"
                  },
                  "number": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32,
                    "pattern": "^[^\\u0000-\\u001f\\u007f]+$",
                    "x-normalization": "trim before validation"
                  }
                },
                "required": [
                  "addressReference",
                  "number"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "address",
          "propertyType",
          "constructionYear"
        ],
        "additionalProperties": false,
        "description": "A non-null registryApartment requires a non-null registryAddress with a matching reference. The apartment must be validated for that address at creation: an invalid selection returns 400 invalid_request; an unavailable or unconfigured apartment validation dependency returns 503 dependency_unavailable. Refusal creates no property."
      },
      "UpdateProperty": {
        "type": "object",
        "properties": {
          "address": {
            "type": "object",
            "properties": {
              "streetAddress": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              },
              "postalCode": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              },
              "city": {
                "type": "string",
                "pattern": "\\S",
                "x-normalization": "trim before validation"
              }
            },
            "required": [
              "streetAddress",
              "postalCode",
              "city"
            ],
            "additionalProperties": false
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "constructionYear": {
            "type": "integer",
            "minimum": 1700,
            "maximum": 9007199254740991,
            "description": "Year from 1700 through the current UTC calendar year plus one.",
            "x-maximum-year": "current UTC year + 1"
          },
          "cadastral": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "gnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "bnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "municipality": {
                    "anyOf": [
                      {
                        "type": "string",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "municipalityCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^(?:\\d{4})?$",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "fnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^(?:\\d{1,12})?$",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "snr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^(?:\\d{1,12})?$",
                        "x-normalization": "trim; blank cadastral strings become null in shared creation validation"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "registryAddress": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "addressKind": {
                    "anyOf": [
                      {
                        "type": "string",
                        "enum": [
                          "street",
                          "cadastral"
                        ]
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "reference": {
                    "type": "string",
                    "allOf": [
                      {
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "pattern": "^[\\s\\S]{1,100}$"
                      }
                    ]
                  },
                  "streetAddress": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "postalCode": {
                    "type": "string",
                    "pattern": "^\\d{4}$"
                  },
                  "city": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "municipality": {
                    "type": "string",
                    "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                  },
                  "municipalityCode": {
                    "type": "string",
                    "pattern": "^\\d{4}$"
                  },
                  "cadastralGnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralBnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralFnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "cadastralSnr": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "streetName": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "houseNumber": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "houseLetter": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^[\\s\\S]{0,8}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressCode": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,12}$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "addressSupplement": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "position": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "latitude": {
                            "type": "number",
                            "minimum": -90,
                            "maximum": 90
                          },
                          "longitude": {
                            "type": "number",
                            "minimum": -180,
                            "maximum": 180
                          },
                          "crs": {
                            "type": "string",
                            "const": "EPSG:4258"
                          }
                        },
                        "required": [
                          "latitude",
                          "longitude",
                          "crs"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "source": {
                    "type": "object",
                    "properties": {
                      "provider": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "\\S"
                          },
                          {
                            "pattern": "^[\\s\\S]{1,60}$"
                          }
                        ]
                      },
                      "retrievedAt": {
                        "type": "string",
                        "format": "date-time",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                        "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                      },
                      "updatedAt": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 40,
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "provider",
                      "retrievedAt",
                      "updatedAt"
                    ],
                    "additionalProperties": false
                  }
                },
                "required": [
                  "addressKind",
                  "reference",
                  "streetAddress",
                  "postalCode",
                  "city",
                  "municipality",
                  "municipalityCode",
                  "cadastralGnr",
                  "cadastralBnr",
                  "cadastralFnr",
                  "cadastralSnr",
                  "streetName",
                  "houseNumber",
                  "houseLetter",
                  "addressCode",
                  "addressSupplement",
                  "position",
                  "source"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "registryApartment": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "addressReference": {
                    "type": "string",
                    "pattern": "^\\d{1,20}$"
                  },
                  "number": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 32,
                    "pattern": "^[^\\u0000-\\u001f\\u007f]+$",
                    "x-normalization": "trim before validation"
                  }
                },
                "required": [
                  "addressReference",
                  "number"
                ],
                "additionalProperties": false
              },
              {
                "type": "null"
              }
            ]
          },
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false,
        "minProperties": 2,
        "x-non-empty-patch": "expectedVersion plus at least one creatable field; supplied composite values replace, cadastral null clears all six parts"
      },
      "UpdatePropertyStatus": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
          },
          "status": {
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          }
        },
        "required": [
          "expectedVersion",
          "status"
        ],
        "additionalProperties": false
      },
      "CreateObservation": {
        "type": "object",
        "properties": {
          "placementId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "controlPoint": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "pattern": "\\S",
            "x-length-unit": "Unicode code points",
            "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "x-normalization": "trim before validation",
            "x-length-unit": "Unicode code points"
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000,
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "x-length-unit": "Unicode code points"
          },
          "tgGrade": {
            "type": "string",
            "enum": [
              "TG0",
              "TG1",
              "TG2",
              "TG3",
              "TG-IU"
            ]
          },
          "installationYear": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "placementId",
          "controlPoint",
          "title",
          "description",
          "tgGrade"
        ],
        "additionalProperties": false
      },
      "UpdateObservationStatus": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "resolved"
            ]
          },
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          },
          "comment": {
            "description": "Completion evidence comment; current inspector requirements apply.",
            "type": "string",
            "maxLength": 10000
          },
          "imageIds": {
            "description": "Finalized fix-image IDs staged for this observation; original finding images are never accepted.",
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "uniqueItems": true,
            "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
          }
        },
        "required": [
          "status",
          "expectedVersion"
        ],
        "additionalProperties": false
      },
      "UpdateObservationEvidence": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          },
          "comment": {
            "type": "string",
            "maxLength": 10000
          },
          "imageIds": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "uniqueItems": true,
            "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
          }
        },
        "required": [
          "expectedVersion",
          "comment",
          "imageIds"
        ],
        "additionalProperties": false
      },
      "UpdateObservationEvidenceRequirement": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          },
          "kind": {
            "type": "string",
            "enum": [
              "image",
              "comment"
            ]
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "expectedVersion",
          "kind",
          "required"
        ],
        "additionalProperties": false
      },
      "ObservationCompletion": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "fixedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "comment": {
            "type": "string",
            "maxLength": 10000
          },
          "imageIds": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid",
              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
            },
            "uniqueItems": true,
            "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
          }
        },
        "required": [
          "id",
          "fixedAt",
          "comment",
          "imageIds"
        ],
        "additionalProperties": false
      },
      "ObservationCompletionResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "fixedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "comment": {
                "type": "string",
                "maxLength": 10000
              },
              "imageIds": {
                "maxItems": 20,
                "type": "array",
                "items": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "uniqueItems": true,
                "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
              }
            },
            "required": [
              "id",
              "fixedAt",
              "comment",
              "imageIds"
            ],
            "additionalProperties": false
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          }
        },
        "required": [
          "data",
          "version"
        ],
        "additionalProperties": false
      },
      "ObservationCompletionListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "fixedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "comment": {
                  "type": "string",
                  "maxLength": 10000
                },
                "imageIds": {
                  "maxItems": 20,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "format": "uuid",
                    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                  },
                  "uniqueItems": true,
                  "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
                }
              },
              "required": [
                "id",
                "fixedAt",
                "comment",
                "imageIds"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          }
        },
        "required": [
          "data",
          "meta",
          "version"
        ],
        "additionalProperties": false
      },
      "ObservationCompletionQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "ObservationCompletionPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "observationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "completionId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "observationId",
          "completionId"
        ],
        "additionalProperties": false
      },
      "UpdateObservation": {
        "type": "object",
        "properties": {
          "expectedVersion": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          },
          "placementId": {
            "description": "An active single placement of the same property.",
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "controlPoint": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "pattern": "\\S",
            "x-length-unit": "Unicode code points",
            "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "x-normalization": "trim before validation",
            "x-length-unit": "Unicode code points"
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000,
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "x-length-unit": "Unicode code points"
          },
          "tgGrade": {
            "type": "string",
            "enum": [
              "TG0",
              "TG1",
              "TG2",
              "TG3",
              "TG-IU"
            ]
          },
          "installationYear": {
            "description": "Null clears the observation override to inherited.",
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "expectedVersion"
        ],
        "additionalProperties": false,
        "minProperties": 2,
        "x-non-empty-patch": "expectedVersion plus at least one correctable field; omitted fields are unchanged"
      },
      "PropertyResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
              },
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "accountId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "address": {
                "type": "object",
                "properties": {
                  "streetAddress": {
                    "type": "string",
                    "pattern": "\\S",
                    "x-normalization": "trim before validation"
                  },
                  "postalCode": {
                    "type": "string",
                    "pattern": "\\S",
                    "x-normalization": "trim before validation"
                  },
                  "city": {
                    "type": "string",
                    "pattern": "\\S",
                    "x-normalization": "trim before validation"
                  }
                },
                "required": [
                  "streetAddress",
                  "postalCode",
                  "city"
                ],
                "additionalProperties": false
              },
              "cadastral": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "gnr": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "bnr": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "municipality": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "\\S",
                            "x-normalization": "trim before validation"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "municipalityCode": {
                        "description": "Always present in fresh responses; optional for retained older bodies.",
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{4}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "fnr": {
                        "description": "Always present in fresh responses; optional for retained older bodies.",
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{1,12}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "snr": {
                        "description": "Always present in fresh responses; optional for retained older bodies.",
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{1,12}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    },
                    "required": [
                      "gnr",
                      "bnr",
                      "municipality"
                    ],
                    "additionalProperties": false,
                    "not": {
                      "properties": {
                        "gnr": {
                          "type": "null"
                        },
                        "bnr": {
                          "type": "null"
                        },
                        "municipality": {
                          "type": "null"
                        },
                        "municipalityCode": {
                          "type": "null"
                        },
                        "fnr": {
                          "type": "null"
                        },
                        "snr": {
                          "type": "null"
                        }
                      }
                    }
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "registryAddress": {
                "description": "Stored registry snapshot, always present in fresh responses; optional for retained older bodies. Caller-provided context, not proof of authenticity.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "addressKind": {
                        "anyOf": [
                          {
                            "type": "string",
                            "enum": [
                              "street",
                              "cadastral"
                            ]
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "reference": {
                        "type": "string",
                        "allOf": [
                          {
                            "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                          },
                          {
                            "pattern": "^[\\s\\S]{1,100}$"
                          }
                        ]
                      },
                      "streetAddress": {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      "postalCode": {
                        "type": "string",
                        "pattern": "^\\d{4}$"
                      },
                      "city": {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      "municipality": {
                        "type": "string",
                        "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                      },
                      "municipalityCode": {
                        "type": "string",
                        "pattern": "^\\d{4}$"
                      },
                      "cadastralGnr": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{1,12}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cadastralBnr": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{1,12}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cadastralFnr": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{1,12}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "cadastralSnr": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{1,12}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "streetName": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "houseNumber": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{1,12}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "houseLetter": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^[\\s\\S]{0,8}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "addressCode": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\d{1,12}$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "addressSupplement": {
                        "anyOf": [
                          {
                            "type": "string",
                            "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "position": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "latitude": {
                                "type": "number",
                                "minimum": -90,
                                "maximum": 90
                              },
                              "longitude": {
                                "type": "number",
                                "minimum": -180,
                                "maximum": 180
                              },
                              "crs": {
                                "type": "string",
                                "const": "EPSG:4258"
                              }
                            },
                            "required": [
                              "latitude",
                              "longitude",
                              "crs"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "null"
                          }
                        ]
                      },
                      "source": {
                        "type": "object",
                        "properties": {
                          "provider": {
                            "type": "string",
                            "allOf": [
                              {
                                "pattern": "\\S"
                              },
                              {
                                "pattern": "^[\\s\\S]{1,60}$"
                              }
                            ]
                          },
                          "retrievedAt": {
                            "type": "string",
                            "format": "date-time",
                            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                          },
                          "updatedAt": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 40,
                                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                              },
                              {
                                "type": "null"
                              }
                            ]
                          }
                        },
                        "required": [
                          "provider",
                          "retrievedAt",
                          "updatedAt"
                        ],
                        "additionalProperties": false
                      }
                    },
                    "required": [
                      "addressKind",
                      "reference",
                      "streetAddress",
                      "postalCode",
                      "city",
                      "municipality",
                      "municipalityCode",
                      "cadastralGnr",
                      "cadastralBnr",
                      "cadastralFnr",
                      "cadastralSnr",
                      "streetName",
                      "houseNumber",
                      "houseLetter",
                      "addressCode",
                      "addressSupplement",
                      "position",
                      "source"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "registryApartment": {
                "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "addressReference": {
                        "type": "string",
                        "pattern": "^\\d{1,20}$"
                      },
                      "number": {
                        "type": "string",
                        "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                      }
                    },
                    "required": [
                      "addressReference",
                      "number"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "propertyType": {
                "type": "string",
                "enum": [
                  "detached",
                  "apartment",
                  "townhouse",
                  "semi_detached",
                  "cabin",
                  "commercial",
                  "other"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "active",
                  "archived"
                ]
              },
              "constructionYear": {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              }
            },
            "required": [
              "id",
              "accountId",
              "address",
              "cadastral",
              "propertyType",
              "status",
              "constructionYear",
              "createdAt",
              "updatedAt"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "PropertyListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256,
                  "pattern": "^[\\x21-\\x7e]+$",
                  "description": "Opaque server-owned property version, bound to this property. Always present in fresh responses; older retained bodies may omit it."
                },
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "accountId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "address": {
                  "type": "object",
                  "properties": {
                    "streetAddress": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation"
                    },
                    "postalCode": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation"
                    },
                    "city": {
                      "type": "string",
                      "pattern": "\\S",
                      "x-normalization": "trim before validation"
                    }
                  },
                  "required": [
                    "streetAddress",
                    "postalCode",
                    "city"
                  ],
                  "additionalProperties": false
                },
                "cadastral": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "gnr": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "bnr": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "municipality": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "\\S",
                              "x-normalization": "trim before validation"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "municipalityCode": {
                          "description": "Always present in fresh responses; optional for retained older bodies.",
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{4}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "fnr": {
                          "description": "Always present in fresh responses; optional for retained older bodies.",
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{1,12}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "snr": {
                          "description": "Always present in fresh responses; optional for retained older bodies.",
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{1,12}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "gnr",
                        "bnr",
                        "municipality"
                      ],
                      "additionalProperties": false,
                      "not": {
                        "properties": {
                          "gnr": {
                            "type": "null"
                          },
                          "bnr": {
                            "type": "null"
                          },
                          "municipality": {
                            "type": "null"
                          },
                          "municipalityCode": {
                            "type": "null"
                          },
                          "fnr": {
                            "type": "null"
                          },
                          "snr": {
                            "type": "null"
                          }
                        }
                      }
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "registryAddress": {
                  "description": "Stored registry snapshot, always present in fresh responses; optional for retained older bodies. Caller-provided context, not proof of authenticity.",
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "addressKind": {
                          "anyOf": [
                            {
                              "type": "string",
                              "enum": [
                                "street",
                                "cadastral"
                              ]
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "reference": {
                          "type": "string",
                          "allOf": [
                            {
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            {
                              "pattern": "^[\\s\\S]{1,100}$"
                            }
                          ]
                        },
                        "streetAddress": {
                          "type": "string",
                          "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                        },
                        "postalCode": {
                          "type": "string",
                          "pattern": "^\\d{4}$"
                        },
                        "city": {
                          "type": "string",
                          "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                        },
                        "municipality": {
                          "type": "string",
                          "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                        },
                        "municipalityCode": {
                          "type": "string",
                          "pattern": "^\\d{4}$"
                        },
                        "cadastralGnr": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{1,12}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cadastralBnr": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{1,12}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cadastralFnr": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{1,12}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "cadastralSnr": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{1,12}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "streetName": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "houseNumber": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{1,12}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "houseLetter": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^[\\s\\S]{0,8}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "addressCode": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\d{1,12}$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "addressSupplement": {
                          "anyOf": [
                            {
                              "type": "string",
                              "pattern": "^\\s*\\S(?:[\\s\\S]{0,198}\\S)?\\s*$"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "position": {
                          "anyOf": [
                            {
                              "type": "object",
                              "properties": {
                                "latitude": {
                                  "type": "number",
                                  "minimum": -90,
                                  "maximum": 90
                                },
                                "longitude": {
                                  "type": "number",
                                  "minimum": -180,
                                  "maximum": 180
                                },
                                "crs": {
                                  "type": "string",
                                  "const": "EPSG:4258"
                                }
                              },
                              "required": [
                                "latitude",
                                "longitude",
                                "crs"
                              ],
                              "additionalProperties": false
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "source": {
                          "type": "object",
                          "properties": {
                            "provider": {
                              "type": "string",
                              "allOf": [
                                {
                                  "pattern": "\\S"
                                },
                                {
                                  "pattern": "^[\\s\\S]{1,60}$"
                                }
                              ]
                            },
                            "retrievedAt": {
                              "type": "string",
                              "format": "date-time",
                              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                              "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                            },
                            "updatedAt": {
                              "anyOf": [
                                {
                                  "type": "string",
                                  "maxLength": 40,
                                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d))|(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?)$"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            }
                          },
                          "required": [
                            "provider",
                            "retrievedAt",
                            "updatedAt"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "addressKind",
                        "reference",
                        "streetAddress",
                        "postalCode",
                        "city",
                        "municipality",
                        "municipalityCode",
                        "cadastralGnr",
                        "cadastralBnr",
                        "cadastralFnr",
                        "cadastralSnr",
                        "streetName",
                        "houseNumber",
                        "houseLetter",
                        "addressCode",
                        "addressSupplement",
                        "position",
                        "source"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "registryApartment": {
                  "description": "Stored registry apartment, always present in fresh responses; optional for retained older bodies.",
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "addressReference": {
                          "type": "string",
                          "pattern": "^\\d{1,20}$"
                        },
                        "number": {
                          "type": "string",
                          "pattern": "^[^ \\u0000-\\u001f\\u007f](?:[^\\u0000-\\u001f\\u007f]{0,30}[^ \\u0000-\\u001f\\u007f])?$"
                        }
                      },
                      "required": [
                        "addressReference",
                        "number"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "propertyType": {
                  "type": "string",
                  "enum": [
                    "detached",
                    "apartment",
                    "townhouse",
                    "semi_detached",
                    "cabin",
                    "commercial",
                    "other"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "active",
                    "archived"
                  ]
                },
                "constructionYear": {
                  "type": "integer",
                  "minimum": 1700,
                  "maximum": 9007199254740991,
                  "description": "Year from 1700 through the current UTC calendar year plus one.",
                  "x-maximum-year": "current UTC year + 1"
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                }
              },
              "required": [
                "id",
                "accountId",
                "address",
                "cadastral",
                "propertyType",
                "status",
                "constructionYear",
                "createdAt",
                "updatedAt"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "PlacementListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "propertyId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "parentId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "name": {
                  "type": "string",
                  "pattern": "\\S",
                  "x-normalization": "trim before validation",
                  "maxLength": 120,
                  "x-length-unit": "Unicode code points"
                },
                "placementType": {
                  "type": "string",
                  "enum": [
                    "single",
                    "group"
                  ]
                },
                "position": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 100000
                },
                "installationYear": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 1700,
                      "maximum": 9007199254740991,
                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                      "x-maximum-year": "current UTC year + 1"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "isActive": {
                  "type": "boolean",
                  "description": "Non-deleted placement; creation additionally requires an active single placement."
                }
              },
              "required": [
                "id",
                "propertyId",
                "parentId",
                "name",
                "placementType",
                "position",
                "installationYear",
                "isActive"
              ],
              "additionalProperties": false
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              },
              "placementSetVersion": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned placement set version, bound to the property."
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore",
              "placementSetVersion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "ObservationResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "placementId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "number": {
                "type": "string",
                "maxLength": 19,
                "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
                "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
              },
              "controlPoint": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "pattern": "\\S",
                "x-length-unit": "Unicode code points",
                "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "x-normalization": "trim before validation",
                    "x-length-unit": "Unicode code points"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "pattern": "\\S",
                "x-normalization": "trim before validation",
                "x-length-unit": "Unicode code points"
              },
              "tgGrade": {
                "type": "string",
                "enum": [
                  "TG0",
                  "TG1",
                  "TG2",
                  "TG3",
                  "TG-IU"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "in_progress",
                  "resolved"
                ]
              },
              "installationYear": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1700,
                    "maximum": 9007199254740991,
                    "description": "Year from 1700 through the current UTC calendar year plus one.",
                    "x-maximum-year": "current UTC year + 1"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Observation override only; null means inherited, not an effective resolved year."
              },
              "resolvedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                    "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
              }
            },
            "required": [
              "id",
              "propertyId",
              "placementId",
              "number",
              "controlPoint",
              "title",
              "description",
              "tgGrade",
              "status",
              "installationYear",
              "resolvedAt",
              "createdAt",
              "updatedAt",
              "version"
            ],
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "status": {
                      "const": "resolved"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "resolvedAt": {
                      "type": "string"
                    }
                  }
                },
                "else": {
                  "properties": {
                    "resolvedAt": {
                      "type": "null"
                    }
                  }
                }
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "ObservationDetailResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "propertyId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "placementId": {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              "number": {
                "type": "string",
                "maxLength": 19,
                "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
                "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
              },
              "controlPoint": {
                "type": "string",
                "minLength": 1,
                "maxLength": 500,
                "pattern": "\\S",
                "x-length-unit": "Unicode code points",
                "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
              },
              "title": {
                "anyOf": [
                  {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 200,
                    "x-normalization": "trim before validation",
                    "x-length-unit": "Unicode code points"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
              },
              "description": {
                "type": "string",
                "minLength": 1,
                "maxLength": 10000,
                "pattern": "\\S",
                "x-normalization": "trim before validation",
                "x-length-unit": "Unicode code points"
              },
              "tgGrade": {
                "type": "string",
                "enum": [
                  "TG0",
                  "TG1",
                  "TG2",
                  "TG3",
                  "TG-IU"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "open",
                  "in_progress",
                  "resolved"
                ]
              },
              "installationYear": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 1700,
                    "maximum": 9007199254740991,
                    "description": "Year from 1700 through the current UTC calendar year plus one.",
                    "x-maximum-year": "current UTC year + 1"
                  },
                  {
                    "type": "null"
                  }
                ],
                "description": "Observation override only; null means inherited, not an effective resolved year."
              },
              "resolvedAt": {
                "anyOf": [
                  {
                    "type": "string",
                    "format": "date-time",
                    "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                    "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "createdAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "updatedAt": {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              "version": {
                "type": "string",
                "minLength": 1,
                "maxLength": 256,
                "pattern": "^[\\x21-\\x7e]+$",
                "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
              },
              "remediation": {
                "type": "object",
                "properties": {
                  "imageRequired": {
                    "type": "boolean"
                  },
                  "commentRequired": {
                    "type": "boolean"
                  },
                  "latestCompletion": {
                    "anyOf": [
                      {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "format": "uuid",
                            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                          },
                          "comment": {
                            "type": "string",
                            "maxLength": 10000
                          },
                          "imageIds": {
                            "maxItems": 20,
                            "type": "array",
                            "items": {
                              "type": "string",
                              "format": "uuid",
                              "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                            },
                            "uniqueItems": true,
                            "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
                          }
                        },
                        "required": [
                          "id",
                          "comment",
                          "imageIds"
                        ],
                        "additionalProperties": false
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "imageRequired",
                  "commentRequired",
                  "latestCompletion"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "id",
              "propertyId",
              "placementId",
              "number",
              "controlPoint",
              "title",
              "description",
              "tgGrade",
              "status",
              "installationYear",
              "resolvedAt",
              "createdAt",
              "updatedAt",
              "version"
            ],
            "additionalProperties": false,
            "allOf": [
              {
                "if": {
                  "properties": {
                    "status": {
                      "const": "resolved"
                    }
                  }
                },
                "then": {
                  "properties": {
                    "resolvedAt": {
                      "type": "string"
                    }
                  }
                },
                "else": {
                  "properties": {
                    "resolvedAt": {
                      "type": "null"
                    }
                  }
                }
              }
            ]
          }
        },
        "required": [
          "data"
        ],
        "additionalProperties": false
      },
      "ObservationSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "placementId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "number": {
            "type": "string",
            "maxLength": 19,
            "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
            "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
          },
          "controlPoint": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "pattern": "\\S",
            "x-length-unit": "Unicode code points",
            "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "x-normalization": "trim before validation",
                "x-length-unit": "Unicode code points"
              },
              {
                "type": "null"
              }
            ],
            "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000,
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "x-length-unit": "Unicode code points"
          },
          "tgGrade": {
            "type": "string",
            "enum": [
              "TG0",
              "TG1",
              "TG2",
              "TG3",
              "TG-IU"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "resolved"
            ]
          },
          "installationYear": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              {
                "type": "null"
              }
            ],
            "description": "Observation override only; null means inherited, not an effective resolved year."
          },
          "resolvedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          },
          "remediation": {
            "type": "object",
            "properties": {
              "imageRequired": {
                "type": "boolean"
              },
              "commentRequired": {
                "type": "boolean"
              }
            },
            "required": [
              "imageRequired",
              "commentRequired"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "propertyId",
          "placementId",
          "number",
          "controlPoint",
          "title",
          "description",
          "tgGrade",
          "status",
          "installationYear",
          "resolvedAt",
          "createdAt",
          "updatedAt",
          "version"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "status": {
                  "const": "resolved"
                }
              }
            },
            "then": {
              "properties": {
                "resolvedAt": {
                  "type": "string"
                }
              }
            },
            "else": {
              "properties": {
                "resolvedAt": {
                  "type": "null"
                }
              }
            }
          }
        ]
      },
      "ObservationDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "placementId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "number": {
            "type": "string",
            "maxLength": 19,
            "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
            "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
          },
          "controlPoint": {
            "type": "string",
            "minLength": 1,
            "maxLength": 500,
            "pattern": "\\S",
            "x-length-unit": "Unicode code points",
            "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "minLength": 1,
                "maxLength": 200,
                "x-normalization": "trim before validation",
                "x-length-unit": "Unicode code points"
              },
              {
                "type": "null"
              }
            ],
            "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
          },
          "description": {
            "type": "string",
            "minLength": 1,
            "maxLength": 10000,
            "pattern": "\\S",
            "x-normalization": "trim before validation",
            "x-length-unit": "Unicode code points"
          },
          "tgGrade": {
            "type": "string",
            "enum": [
              "TG0",
              "TG1",
              "TG2",
              "TG3",
              "TG-IU"
            ]
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "resolved"
            ]
          },
          "installationYear": {
            "anyOf": [
              {
                "type": "integer",
                "minimum": 1700,
                "maximum": 9007199254740991,
                "description": "Year from 1700 through the current UTC calendar year plus one.",
                "x-maximum-year": "current UTC year + 1"
              },
              {
                "type": "null"
              }
            ],
            "description": "Observation override only; null means inherited, not an effective resolved year."
          },
          "resolvedAt": {
            "anyOf": [
              {
                "type": "string",
                "format": "date-time",
                "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
              },
              {
                "type": "null"
              }
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
          },
          "remediation": {
            "type": "object",
            "properties": {
              "imageRequired": {
                "type": "boolean"
              },
              "commentRequired": {
                "type": "boolean"
              },
              "latestCompletion": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "format": "uuid",
                        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                      },
                      "comment": {
                        "type": "string",
                        "maxLength": 10000
                      },
                      "imageIds": {
                        "maxItems": 20,
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uuid",
                          "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                        },
                        "uniqueItems": true,
                        "x-uuid-uniqueness": "case-insensitive canonical UUIDs"
                      }
                    },
                    "required": [
                      "id",
                      "comment",
                      "imageIds"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "imageRequired",
              "commentRequired",
              "latestCompletion"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "id",
          "propertyId",
          "placementId",
          "number",
          "controlPoint",
          "title",
          "description",
          "tgGrade",
          "status",
          "installationYear",
          "resolvedAt",
          "createdAt",
          "updatedAt",
          "version"
        ],
        "additionalProperties": false,
        "allOf": [
          {
            "if": {
              "properties": {
                "status": {
                  "const": "resolved"
                }
              }
            },
            "then": {
              "properties": {
                "resolvedAt": {
                  "type": "string"
                }
              }
            },
            "else": {
              "properties": {
                "resolvedAt": {
                  "type": "null"
                }
              }
            }
          }
        ]
      },
      "ObservationListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "propertyId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "placementId": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "number": {
                  "type": "string",
                  "maxLength": 19,
                  "pattern": "^[0-9]{2}[.](?!0{4}$)(?:[0-9]{4}|[1-9][0-9]{4,14}|[1-8][0-9]{15}|900[0-6][0-9]{12}|9007[0-0][0-9]{11}|90071[0-8][0-9]{10}|900719[0-8][0-9]{9}|9007199[0-1][0-9]{8}|90071992[0-4][0-9]{7}|900719925[0-3][0-9]{6}|9007199254[0-6][0-9]{5}|90071992547[0-3][0-9]{4}|9007199254740[0-8][0-9]{2}|90071992547409[0-8][0-9]{1}|900719925474099[0-0][0-9]{0}|9007199254740991)$",
                  "description": "Formatted organization/year observation number; sequence is a positive safe integer no greater than 9007199254740991, for example 26.0001."
                },
                "controlPoint": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 500,
                  "pattern": "\\S",
                  "x-length-unit": "Unicode code points",
                  "x-normalized-control-point": "NFKC, trim, collapse whitespace, lowercase; normalized value must contain 1 through 500 Unicode code points"
                },
                "title": {
                  "anyOf": [
                    {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "x-normalization": "trim before validation",
                      "x-length-unit": "Unicode code points"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Short finding title. Null only for legacy findings created before titles were required; clients display \"-\" instead."
                },
                "description": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 10000,
                  "pattern": "\\S",
                  "x-normalization": "trim before validation",
                  "x-length-unit": "Unicode code points"
                },
                "tgGrade": {
                  "type": "string",
                  "enum": [
                    "TG0",
                    "TG1",
                    "TG2",
                    "TG3",
                    "TG-IU"
                  ]
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "open",
                    "in_progress",
                    "resolved"
                  ]
                },
                "installationYear": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "minimum": 1700,
                      "maximum": 9007199254740991,
                      "description": "Year from 1700 through the current UTC calendar year plus one.",
                      "x-maximum-year": "current UTC year + 1"
                    },
                    {
                      "type": "null"
                    }
                  ],
                  "description": "Observation override only; null means inherited, not an effective resolved year."
                },
                "resolvedAt": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                      "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "version": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 256,
                  "pattern": "^[\\x21-\\x7e]+$",
                  "description": "Opaque server-owned resource version. Never infer its structure from timestamps."
                },
                "remediation": {
                  "type": "object",
                  "properties": {
                    "imageRequired": {
                      "type": "boolean"
                    },
                    "commentRequired": {
                      "type": "boolean"
                    }
                  },
                  "required": [
                    "imageRequired",
                    "commentRequired"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "id",
                "propertyId",
                "placementId",
                "number",
                "controlPoint",
                "title",
                "description",
                "tgGrade",
                "status",
                "installationYear",
                "resolvedAt",
                "createdAt",
                "updatedAt",
                "version"
              ],
              "additionalProperties": false,
              "allOf": [
                {
                  "if": {
                    "properties": {
                      "status": {
                        "const": "resolved"
                      }
                    }
                  },
                  "then": {
                    "properties": {
                      "resolvedAt": {
                        "type": "string"
                      }
                    }
                  },
                  "else": {
                    "properties": {
                      "resolvedAt": {
                        "type": "null"
                      }
                    }
                  }
                }
              ]
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "ObservationPhoto": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "kind": {
            "type": "string",
            "enum": [
              "finding",
              "remediation"
            ]
          },
          "position": {
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "caption": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2000,
                "x-length-unit": "Unicode code points"
              },
              {
                "type": "null"
              }
            ]
          },
          "width": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "height": {
            "anyOf": [
              {
                "type": "integer",
                "exclusiveMinimum": 0,
                "maximum": 9007199254740991
              },
              {
                "type": "null"
              }
            ]
          },
          "mimeType": {
            "type": "string",
            "enum": [
              "image/jpeg",
              "image/png",
              "image/webp",
              "image/heic"
            ]
          },
          "sizeBytes": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 10485760
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
            "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
          },
          "completionId": {
            "anyOf": [
              {
                "type": "string",
                "format": "uuid",
                "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "id",
          "kind",
          "position",
          "caption",
          "width",
          "height",
          "mimeType",
          "sizeBytes",
          "createdAt",
          "completionId"
        ],
        "additionalProperties": false,
        "x-photo-invariants": "Finding completionId is null; remediation has a completionId, dimensions, image/webp MIME and null caption."
      },
      "ObservationPhotoPage": {
        "type": "object",
        "properties": {
          "data": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "format": "uuid",
                  "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                },
                "kind": {
                  "type": "string",
                  "enum": [
                    "finding",
                    "remediation"
                  ]
                },
                "position": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 9007199254740991
                },
                "caption": {
                  "anyOf": [
                    {
                      "type": "string",
                      "maxLength": 2000,
                      "x-length-unit": "Unicode code points"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "width": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "height": {
                  "anyOf": [
                    {
                      "type": "integer",
                      "exclusiveMinimum": 0,
                      "maximum": 9007199254740991
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mimeType": {
                  "type": "string",
                  "enum": [
                    "image/jpeg",
                    "image/png",
                    "image/webp",
                    "image/heic"
                  ]
                },
                "sizeBytes": {
                  "type": "integer",
                  "exclusiveMinimum": 0,
                  "maximum": 10485760
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$",
                  "description": "UTC ISO 8601 timestamp ending in Z. Adapters convert database +00:00 offsets before validation."
                },
                "completionId": {
                  "anyOf": [
                    {
                      "type": "string",
                      "format": "uuid",
                      "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "kind",
                "position",
                "caption",
                "width",
                "height",
                "mimeType",
                "sizeBytes",
                "createdAt",
                "completionId"
              ],
              "additionalProperties": false,
              "x-photo-invariants": "Finding completionId is null; remediation has a completionId, dimensions, image/webp MIME and null caption."
            }
          },
          "meta": {
            "type": "object",
            "properties": {
              "pageIndex": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740991
              },
              "pageSize": {
                "type": "integer",
                "minimum": 1,
                "maximum": 100
              },
              "hasMore": {
                "type": "boolean"
              }
            },
            "required": [
              "pageIndex",
              "pageSize",
              "hasMore"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": false,
        "x-page-invariants": "data.length <= meta.pageSize; short or empty pages require hasMore=false; retain requested pageIndex"
      },
      "ObservationPhotoQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri"
          },
          "title": {
            "type": "string",
            "pattern": "\\S"
          },
          "status": {
            "anyOf": [
              {
                "type": "number",
                "const": 400
              },
              {
                "type": "number",
                "const": 401
              },
              {
                "type": "number",
                "const": 403
              },
              {
                "type": "number",
                "const": 404
              },
              {
                "type": "number",
                "const": 409
              },
              {
                "type": "number",
                "const": 413
              },
              {
                "type": "number",
                "const": 415
              },
              {
                "type": "number",
                "const": 429
              },
              {
                "type": "number",
                "const": 500
              },
              {
                "type": "number",
                "const": 503
              }
            ]
          },
          "detail": {
            "type": "string",
            "pattern": "\\S",
            "description": "Safe public explanation; excludes SQL, stacks, credentials and private paths."
          },
          "instance": {
            "type": "string",
            "pattern": "^\\/[^?#\\s]*$",
            "description": "Non-sensitive request occurrence identifier; no raw request URL or query."
          },
          "code": {
            "type": "string",
            "enum": [
              "invalid_request",
              "unauthenticated",
              "forbidden",
              "not_found",
              "version_conflict",
              "idempotency_conflict",
              "idempotency_pending",
              "payload_too_large",
              "unsupported_media_type",
              "rate_limited",
              "internal_error",
              "dependency_unavailable"
            ]
          },
          "requestId": {
            "type": "string",
            "pattern": "\\S"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "path": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "integer",
                        "minimum": 0,
                        "maximum": 9007199254740991
                      }
                    ]
                  }
                },
                "code": {
                  "type": "string",
                  "pattern": "\\S"
                },
                "message": {
                  "type": "string",
                  "pattern": "\\S"
                }
              },
              "required": [
                "path",
                "code",
                "message"
              ],
              "additionalProperties": false
            }
          }
        },
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance",
          "code",
          "requestId"
        ],
        "additionalProperties": false,
        "x-status-by-code": {
          "invalid_request": 400,
          "unauthenticated": 401,
          "forbidden": 403,
          "not_found": 404,
          "version_conflict": 409,
          "idempotency_conflict": 409,
          "idempotency_pending": 409,
          "payload_too_large": 413,
          "unsupported_media_type": 415,
          "rate_limited": 429,
          "internal_error": 500,
          "dependency_unavailable": 503
        }
      },
      "WriteHeaders": {
        "type": "object",
        "properties": {
          "Idempotency-Key": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "pattern": "^[\\x21-\\x7e]+$",
            "description": "Opaque caller-generated retry key; retained completed outcomes for at least 24 hours."
          }
        },
        "required": [
          "Idempotency-Key"
        ],
        "additionalProperties": false
      },
      "AccountPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId"
        ],
        "additionalProperties": false
      },
      "PropertyPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId"
        ],
        "additionalProperties": false
      },
      "ObservationPath": {
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "propertyId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "observationId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          }
        },
        "required": [
          "accountId",
          "propertyId",
          "observationId"
        ],
        "additionalProperties": false
      },
      "PropertyQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "search": {
            "type": "string",
            "allOf": [
              {
                "pattern": "\\S"
              },
              {
                "pattern": "^[^\\u0000]*$"
              }
            ],
            "x-normalization": "trim before validation",
            "maxLength": 200,
            "x-length-unit": "Unicode code points"
          },
          "status": {
            "default": "active",
            "type": "string",
            "enum": [
              "active",
              "archived"
            ]
          },
          "propertyType": {
            "type": "string",
            "enum": [
              "detached",
              "apartment",
              "townhouse",
              "semi_detached",
              "cabin",
              "commercial",
              "other"
            ]
          },
          "sortBy": {
            "default": "updatedAt",
            "type": "string",
            "enum": [
              "address",
              "propertyType",
              "constructionYear",
              "createdAt",
              "updatedAt"
            ]
          },
          "sortDirection": {
            "default": "desc",
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          }
        },
        "additionalProperties": false
      },
      "PlacementQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          }
        },
        "additionalProperties": false
      },
      "ObservationQuery": {
        "type": "object",
        "properties": {
          "pageIndex": {
            "default": 0,
            "type": "integer",
            "minimum": 0,
            "maximum": 9007199254740991
          },
          "pageSize": {
            "default": 25,
            "type": "integer",
            "minimum": 1,
            "maximum": 100
          },
          "status": {
            "type": "string",
            "enum": [
              "open",
              "in_progress",
              "resolved"
            ]
          },
          "tgGrade": {
            "type": "string",
            "enum": [
              "TG0",
              "TG1",
              "TG2",
              "TG3",
              "TG-IU"
            ]
          },
          "placementId": {
            "type": "string",
            "format": "uuid",
            "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
          },
          "sortBy": {
            "default": "createdAt",
            "type": "string",
            "const": "createdAt"
          },
          "sortDirection": {
            "default": "desc",
            "type": "string",
            "enum": [
              "asc",
              "desc"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "OpaqueBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Opaque environment-bound personal API token. Cookies, session JWTs and Supabase keys are not customer credentials."
      }
    },
    "headers": {
      "CacheControl": {
        "required": true,
        "description": "Required on every tenant success and problem response.",
        "schema": {
          "type": "string",
          "const": "private, no-store"
        },
        "example": "private, no-store"
      },
      "RequestId": {
        "required": true,
        "description": "Non-sensitive request correlation identifier matching problem.requestId.",
        "schema": {
          "type": "string",
          "minLength": 1
        },
        "example": "request-example-1"
      },
      "BearerChallenge": {
        "required": true,
        "description": "Required for 401 responses.",
        "schema": {
          "type": "string",
          "const": "Bearer"
        },
        "example": "Bearer"
      },
      "RetryAfterRequired": {
        "required": true,
        "description": "Delay in seconds. Required for rate_limited.",
        "schema": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "example": "5"
      },
      "RetryAfter": {
        "description": "Delay in seconds. Required for rate_limited and idempotency_pending; optional for unavailable dependencies and other conflicts.",
        "schema": {
          "type": "string",
          "pattern": "^[0-9]+$"
        },
        "example": "5"
      }
    }
  }
}
