{
  "openapi": "3.1.1",
  "info": {
    "title": "Homematch Marketplace Core API",
    "description": "Connect a Homematch account, supply SwissRETS-profiled listings, control publication, and\nreconcile receiver-owned Marketplace presence. This is the required foundation and the\ndefault integration journey; Messenger is an independently authorized add-on.\n\n## Authentication and authority\n\nStart with the public capabilities operation to verify the API/profile versions,\nSwissRETS schema digest, and closed party-role vocabulary. Every account operation then\nsends a publishing credential in `X-Api-Key`. The credential resolves directly to exactly\none Homematch account; request bodies and headers cannot choose or impersonate another\naccount. CRM/provider metadata is provenance, not authority.\n\n## Choose a synchronization profile\n\n- **Listing Management:** preview, PUT, publish, unpublish, supersede, and observe one\n  SwissRETS-profiled resource. Content, availability, supply membership, and Marketplace\n  publication are separate state axes.\n- **Complete inventory:** atomically replace the authenticated account's inventory. Omission may\n  withdraw inventory only when the body explicitly declares completeness, its count\n  matches, every listing validates, and the revision is accepted.\n\nListing Management operations are the default. A complete inventory always means the\naccount's complete portfolio, independent of which CRM submitted it.\n\n## Required inquiry contact\n\nEvery supplied listing must declare the inquiry action and exactly one private\n`inquiry_recipient` in `extensions.parties`. Its stable recipient reference must resolve\nto an active account-owned API delivery registration or an explicit valid fallback email.\nA missing contact is refused at intake as `validation_failed` on `/extensions/declaredActions`\nor `/extensions/parties`, and one no route can reach as `supply_inquiry_route_unavailable`,\nincluding unpublished resource PUTs. Public/visit contacts never substitute for the private\nrecipient.\n\n## Safe retries and observation\n\nMutating supply operations marked with `Idempotency-Key` persist exact\nreplay evidence. Reusing a key with different input is `supply_idempotency_key_reused`. Resource and lifecycle\noperations also share one monotonically increasing revision sequence and return an ETag.\nPreview is non-mutating and deliberately requires no idempotency key.\n\nAn accepted receipt proves durable acceptance, not public visibility. Poll the listing\npresence operation until Marketplace-owned observation converges. Silence is never\ninterpreted as withdrawal, delivery, read state, or successful publication.\n\n## Errors and support\n\nEvery refusal is an RFC 9457 problem (`application/problem+json`) of a declared type:\n`code` names it (the `ProblemCode` enum, published in the `Peak.Homematch.Marketplace.Contracts`\npackage as `MarketplaceSupplyProblems`), `type` is its URI, `detail` explains this occurrence\nin English for logs and support, and `traceId` is what support searches by. A value the\nrequest got wrong is `validation_failed` (400) with one `errors` entry per broken rule:\n`pointer` (RFC 6901, into the request body) or `parameter` (a route, query, header or form\nparameter), its rule `code` and bounds. A code a client does not know is judged by its\nstatus. Preserve the exact request for `rate_limited`, `unavailable` (both with\n`Retry-After`), `5xx`, timeout, and ambiguous transport failures; correct content or\nauthority before sending a refused request again.\n\nQuestions and onboarding support: [info@homematch.ch](mailto:info@homematch.ch).",
    "contact": {
      "name": "Homematch",
      "url": "https://homematch.ch",
      "email": "info@homematch.ch"
    },
    "license": {
      "name": "Proprietary",
      "identifier": "LicenseRef-Proprietary"
    },
    "version": "1.0",
    "x-contract-generation": 3,
    "x-contract-breaks": [
      {
        "generation": 1,
        "change": "Integrations send the provider contract generation they were built for"
      },
      {
        "generation": 2,
        "change": "Every refusal is an RFC 9457 problem of a declared type, and request values are refused as validation_failed (400) with JSON Pointers, never 422"
      },
      {
        "generation": 3,
        "change": "A connection request is the organization's link to a Homematch account: Pending, Linked, Ready or Registered with the linked account, never Approved or Rejected; registration waits for Ready (supply_connection_not_ready); Incubator is retired, not drained, when another system connects"
      }
    ]
  },
  "servers": [
    {
      "url": "/",
      "description": "The environment from which this document was served"
    }
  ],
  "paths": {
    "/api/marketplace/account/v1/profile/photo": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Manage the authenticated account's public profile",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `account:profile:write`\n\n**Account authority:** the credential account owns the profile\n\nShared account profile API for authorised integrations. Changes require the current expectedUpdatedAt. A photo is sent as one multipart file with a required requestId, the provider's own id for the request, saved before sending and sent again on every retry so a retry is the same request; it is scoped to the account and the credential. The answer is the photo request as it stands and does not wait for its processing: the previous photo stays visible until the new one is ready and the photo read shows it then. The request's outcome (applied, refused or ended) is pushed to the provider over its delivery channel as homematch-account-photo-outcome/1, naming the request by its requestId. Later profile edits or ended authority prevent stale publication.",
        "operationId": "getMarketplaceAccountProfilePhoto",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPhotoState"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "account:profile:write",
        "x-required-account-authority": "the credential account owns the profile"
      },
      "post": {
        "tags": [
          "Profile"
        ],
        "summary": "Manage the authenticated account's public profile",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `account:profile:write`\n\n**Account authority:** the credential account owns the profile\n\nShared account profile API for authorised integrations. Changes require the current expectedUpdatedAt. A photo is sent as one multipart file with a required requestId, the provider's own id for the request, saved before sending and sent again on every retry so a retry is the same request; it is scoped to the account and the credential. The answer is the photo request as it stands and does not wait for its processing: the previous photo stays visible until the new one is ready and the photo read shows it then. The request's outcome (applied, refused or ended) is pushed to the provider over its delivery channel as homematch-account-photo-outcome/1, naming the request by its requestId. Later profile edits or ended authority prevent stale publication.",
        "operationId": "uploadMarketplaceAccountProfilePhoto",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "required": [
                  "file",
                  "source",
                  "requestId"
                ],
                "type": "object",
                "allOf": [
                  {
                    "type": "object",
                    "properties": {
                      "file": {
                        "$ref": "#/components/schemas/IFormFile"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "source": {
                        "maxLength": 512,
                        "minLength": 0,
                        "type": "string"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "expectedUpdatedAt": {
                        "type": "string",
                        "format": "date-time"
                      }
                    }
                  },
                  {
                    "type": "object",
                    "properties": {
                      "requestId": {
                        "type": "string",
                        "format": "uuid"
                      }
                    }
                  }
                ]
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPhotoUploadStatus"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "account:profile:write",
        "x-required-account-authority": "the credential account owns the profile"
      },
      "delete": {
        "tags": [
          "Profile"
        ],
        "summary": "Manage the authenticated account's public profile",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `account:profile:write`\n\n**Account authority:** the credential account owns the profile\n\nShared account profile API for authorised integrations. Changes require the current expectedUpdatedAt. A photo is sent as one multipart file with a required requestId, the provider's own id for the request, saved before sending and sent again on every retry so a retry is the same request; it is scoped to the account and the credential. The answer is the photo request as it stands and does not wait for its processing: the previous photo stays visible until the new one is ready and the photo read shows it then. The request's outcome (applied, refused or ended) is pushed to the provider over its delivery channel as homematch-account-photo-outcome/1, naming the request by its requestId. Later profile edits or ended authority prevent stale publication.",
        "operationId": "deleteMarketplaceAccountProfilePhoto",
        "parameters": [
          {
            "name": "source",
            "in": "query",
            "required": true,
            "schema": {
              "maxLength": 512,
              "minLength": 0,
              "type": "string"
            }
          },
          {
            "name": "expectedUpdatedAt",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPageDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "account:profile:write",
        "x-required-account-authority": "the credential account owns the profile"
      }
    },
    "/api/marketplace/account/v1/profile": {
      "get": {
        "tags": [
          "Profile"
        ],
        "summary": "Manage the authenticated account's public profile",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `account:profile:write`\n\n**Account authority:** the credential account owns the profile\n\nShared account profile API for authorised integrations. Changes require the current expectedUpdatedAt. A photo is sent as one multipart file with a required requestId, the provider's own id for the request, saved before sending and sent again on every retry so a retry is the same request; it is scoped to the account and the credential. The answer is the photo request as it stands and does not wait for its processing: the previous photo stays visible until the new one is ready and the photo read shows it then. The request's outcome (applied, refused or ended) is pushed to the provider over its delivery channel as homematch-account-photo-outcome/1, naming the request by its requestId. Later profile edits or ended authority prevent stale publication.",
        "operationId": "getMarketplaceAccountProfile",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPageDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "account:profile:write",
        "x-required-account-authority": "the credential account owns the profile"
      },
      "put": {
        "tags": [
          "Profile"
        ],
        "summary": "Manage the authenticated account's public profile",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `account:profile:write`\n\n**Account authority:** the credential account owns the profile\n\nShared account profile API for authorised integrations. Changes require the current expectedUpdatedAt. A photo is sent as one multipart file with a required requestId, the provider's own id for the request, saved before sending and sent again on every retry so a retry is the same request; it is scoped to the account and the credential. The answer is the photo request as it stands and does not wait for its processing: the previous photo stays visible until the new one is ready and the photo read shows it then. The request's outcome (applied, refused or ended) is pushed to the provider over its delivery channel as homematch-account-photo-outcome/1, naming the request by its requestId. Later profile edits or ended authority prevent stale publication.",
        "operationId": "updateMarketplaceAccountProfile",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CurateAccountProfileRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CurateAccountProfileRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CurateAccountProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AccountPageDto"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "account:profile:write",
        "x-required-account-authority": "the credential account owns the profile"
      }
    },
    "/api/marketplace/supply/v1/capabilities": {
      "get": {
        "tags": [
          "Supply"
        ],
        "summary": "Discover listing-management contract capabilities",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `none`\n\n**Account authority:** platform metadata only; no Homematch account is selected\n\nReturns the accepted API/profile versions, SwissRETS schema digest, and closed party-role vocabulary so clients can fail before dispatch.",
        "operationId": "getMarketplaceSupplyCapabilities",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MarketplaceSupplyCapabilities"
                }
              }
            }
          }
        },
        "security": [
          { }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "none",
        "x-required-account-authority": "platform metadata only; no Homematch account is selected"
      }
    },
    "/api/marketplace/supply/v1/complete-inventory": {
      "put": {
        "tags": [
          "Supply"
        ],
        "summary": "Replace the account's complete inventory",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `inventories:write`\n\n**Account authority:** the credential account owns the complete inventory\n\nValidates the entire declared-complete inventory before atomically accepting present resources and withdrawing permitted omissions.",
        "operationId": "replaceCompleteMarketplaceInventory",
        "parameters": [
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Stable key for this exact operation, authority, and body. Exact replay returns the durable receipt; changed reuse is supply_idempotency_key_reused (409).",
            "required": true,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutCompleteInventoryRequest"
              },
              "examples": {
                "completeSaleInventory": {
                  "summary": "Atomically replace a declared-complete one-listing inventory",
                  "description": "Executable example generated with the production request contract and validated against the pinned SwissRETS schema.",
                  "value": {
                    "profileVersion": "homematch-swissrets-json-2",
                    "swissRetsVersion": "3.6.0",
                    "revision": "inventory-100",
                    "revisionOrdinal": 100,
                    "occurredAt": "2026-08-31T12:00:00Z",
                    "complete": true,
                    "declaredListingCount": 1,
                    "listings": [
                      {
                        "providerListingKey": "example-sale-42",
                        "property": {
                          "id": "example-sale-42",
                          "referenceId": "SALE-42",
                          "type": "buy",
                          "categories": [
                            "apartment"
                          ],
                          "availability": {
                            "state": "active"
                          },
                          "address": {
                            "street": "Seestrasse 42",
                            "postalCode": "8000",
                            "locality": "Zürich"
                          },
                          "prices": {
                            "currency": "CHF",
                            "buy": {
                              "price": 950000,
                              "referring": "all"
                            }
                          },
                          "characteristics": {
                            "numberOfRooms": 4.5,
                            "areaBwf": 101.2
                          },
                          "localizations": [
                            {
                              "languageCode": "de",
                              "title": "Eigentumswohnung am See",
                              "attachments": {
                                "images": [
                                  {
                                    "url": "https://cdn.example/example-sale-42.webp",
                                    "mimeType": "image/webp"
                                  }
                                ]
                              }
                            }
                          ]
                        },
                        "extensions": {
                          "parties": [
                            {
                              "providerPartyId": "office-42-inquiries",
                              "role": "inquiry_recipient",
                              "kind": "organization",
                              "profile": {
                                "email": "inquiries@example.com"
                              }
                            }
                          ],
                          "declaredActions": [
                            {
                              "kind": "inquiry"
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PutCompleteInventoryRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PutCompleteInventoryRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Idempotent-Replay": {
                "description": "True when this response was replayed from durable idempotency evidence.",
                "schema": {
                  "type": "boolean"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompleteInventoryReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "inventories:write",
        "x-required-account-authority": "the credential account owns the complete inventory"
      }
    },
    "/api/marketplace/supply/v1/complete-inventory/runs/{runId}": {
      "get": {
        "tags": [
          "Observation"
        ],
        "summary": "Read one complete-inventory run",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `inventories:read`\n\n**Account authority:** the credential account owns the complete inventory\n\nReturns account-scoped aggregate counts for the committed run identified by the receipt id. Credential rotation does not change run authority.",
        "operationId": "getMarketplaceCompleteInventoryRun",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompleteInventoryRunStatus"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "inventories:read",
        "x-required-account-authority": "the credential account owns the complete inventory"
      }
    },
    "/api/marketplace/supply/v1/complete-inventory/runs/{runId}/items": {
      "get": {
        "tags": [
          "Observation"
        ],
        "summary": "List complete-inventory item outcomes",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `inventories:read`\n\n**Account authority:** the credential account owns the complete inventory\n\nReturns an opaque-cursor page of created, updated, unchanged, or withdrawn listing outcomes for one committed account inventory run.",
        "operationId": "listMarketplaceCompleteInventoryRunItems",
        "parameters": [
          {
            "name": "runId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Page size. Defaults to 50; minimum 1 and maximum 200.",
            "schema": {
              "maximum": 200,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque continuation token returned by the preceding page. It is bound to this account and filter query.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "outcome",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/CompleteInventoryItemOutcome"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompleteInventoryRunItemPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "inventories:read",
        "x-required-account-authority": "the credential account owns the complete inventory"
      }
    },
    "/api/marketplace/supply/v1/listings": {
      "get": {
        "tags": [
          "Supply"
        ],
        "summary": "List accepted listing resources",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `listings:read`\n\n**Account authority:** the credential Homematch account\n\nReturns an opaque-cursor page of the authenticated account's accepted resources. Filtered desired publication state is provider intent, not public Marketplace presence.",
        "operationId": "listMarketplaceAcceptedListings",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "Page size. Defaults to 50; minimum 1 and maximum 200.",
            "schema": {
              "maximum": 200,
              "minimum": 1,
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "description": "Opaque continuation token returned by the preceding page. It is bound to this account and filter query.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "desiredPublicationState",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/AcceptedListingPublicationState"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptedListingPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "listings:read",
        "x-required-account-authority": "the credential Homematch account"
      }
    },
    "/api/marketplace/supply/v1/listings/{providerListingKey}": {
      "get": {
        "tags": [
          "Supply"
        ],
        "summary": "Read one accepted listing resource",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `listings:read`\n\n**Account authority:** the credential Homematch account\n\nReturns the latest accepted SwissRETS resource, revision, ETag, and desired publication state. Use the presence operation for receiver-owned serving truth.",
        "operationId": "getMarketplaceAcceptedListing",
        "parameters": [
          {
            "name": "providerListingKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AcceptedListingResource"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "listings:read",
        "x-required-account-authority": "the credential Homematch account"
      },
      "put": {
        "tags": [
          "Supply"
        ],
        "summary": "Create or replace one listing resource",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `listings:write`\n\n**Account authority:** the credential Homematch account\n\nStores one SwissRETS-profiled provider resource at the supplied revision without implicitly publishing it. Requires the inquiry action and one private inquiry_recipient with an executable destination; incomplete contact data is refused before the resource is stored.",
        "operationId": "putMarketplaceListing",
        "parameters": [
          {
            "name": "providerListingKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Stable key for this exact operation, authority, and body. Exact replay returns the durable receipt; changed reuse is supply_idempotency_key_reused (409).",
            "required": true,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutListingResourceRequest"
              },
              "examples": {
                "saleListing": {
                  "summary": "Create or replace one SwissRETS sale listing",
                  "description": "Executable example generated with the production request contract and validated against the pinned SwissRETS schema.",
                  "value": {
                    "profileVersion": "homematch-swissrets-json-2",
                    "swissRetsVersion": "3.6.0",
                    "revision": "resource-100",
                    "revisionOrdinal": 100,
                    "occurredAt": "2026-08-31T12:00:00Z",
                    "publicationState": "published",
                    "property": {
                      "id": "example-sale-42",
                      "referenceId": "SALE-42",
                      "type": "buy",
                      "categories": [
                        "apartment"
                      ],
                      "availability": {
                        "state": "active"
                      },
                      "address": {
                        "street": "Seestrasse 42",
                        "postalCode": "8000",
                        "locality": "Zürich"
                      },
                      "prices": {
                        "currency": "CHF",
                        "buy": {
                          "price": 950000,
                          "referring": "all"
                        }
                      },
                      "characteristics": {
                        "numberOfRooms": 4.5,
                        "areaBwf": 101.2
                      },
                      "localizations": [
                        {
                          "languageCode": "de",
                          "title": "Eigentumswohnung am See",
                          "attachments": {
                            "images": [
                              {
                                "url": "https://cdn.example/example-sale-42.webp",
                                "mimeType": "image/webp"
                              }
                            ]
                          }
                        }
                      ]
                    },
                    "extensions": {
                      "parties": [
                        {
                          "providerPartyId": "office-42-inquiries",
                          "role": "inquiry_recipient",
                          "kind": "organization",
                          "profile": {
                            "email": "inquiries@example.com"
                          }
                        }
                      ],
                      "declaredActions": [
                        {
                          "kind": "inquiry"
                        }
                      ]
                    }
                  }
                }
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PutListingResourceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PutListingResourceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Idempotent-Replay": {
                "description": "True when this response was replayed from durable idempotency evidence.",
                "schema": {
                  "type": "boolean"
                }
              },
              "ETag": {
                "description": "Hash of the stored SwissRETS resource and Homematch extensions.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupplyOperationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "listings:write",
        "x-required-account-authority": "the credential Homematch account"
      }
    },
    "/api/marketplace/supply/v1/listings/{providerListingKey}/presence": {
      "get": {
        "tags": [
          "Observation"
        ],
        "summary": "Observe one listing's Marketplace presence",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `listings:read`\n\n**Account authority:** the credential Homematch account\n\nReturns receiver-owned Catalog and serving observation for the account-owned resource; accepted delivery alone is not public presence.",
        "operationId": "getMarketplaceListingPresence",
        "parameters": [
          {
            "name": "providerListingKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListingPresenceResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "listings:read",
        "x-required-account-authority": "the credential Homematch account"
      }
    },
    "/api/marketplace/supply/v1/listings/{providerListingKey}:preview": {
      "post": {
        "tags": [
          "Supply"
        ],
        "summary": "Validate and preview one listing without mutation",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `listings:write`\n\n**Account authority:** the credential Homematch account\n\nRuns receiver validation and rendering projection without storing, publishing, or consuming an idempotency key.",
        "operationId": "previewMarketplaceListing",
        "parameters": [
          {
            "name": "providerListingKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutListingResourceRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PutListingResourceRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PutListingResourceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewListingReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "listings:write",
        "x-required-account-authority": "the credential Homematch account"
      }
    },
    "/api/marketplace/supply/v1/listings/{providerListingKey}:supersede": {
      "post": {
        "tags": [
          "Supply"
        ],
        "summary": "Retire one listing in favor of a successor",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `listings:write`\n\n**Account authority:** the credential Homematch account\n\nAdvances the shared resource revision, retires this lifecycle, and optionally records an explicit provider successor key.",
        "operationId": "supersedeMarketplaceListing",
        "parameters": [
          {
            "name": "providerListingKey",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Idempotency-Key",
            "in": "header",
            "description": "Stable key for this exact operation, authority, and body. Exact replay returns the durable receipt; changed reuse is supply_idempotency_key_reused (409).",
            "required": true,
            "schema": {
              "maxLength": 128,
              "minLength": 1,
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupersedeListingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/SupersedeListingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/SupersedeListingRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "Idempotent-Replay": {
                "description": "True when this response was replayed from durable idempotency evidence.",
                "schema": {
                  "type": "boolean"
                }
              },
              "ETag": {
                "description": "Hash of the stored SwissRETS resource and Homematch extensions.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupplyOperationReceipt"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "listings:write",
        "x-required-account-authority": "the credential Homematch account"
      }
    },
    "/api/marketplace/supply/v1/portal-listings": {
      "get": {
        "tags": [
          "Supply"
        ],
        "summary": "List the account's portal listings",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `listings:read`\n\n**Account authority:** the credential Homematch account\n\nReturns an opaque-cursor page of the live listings Peak Incubator supplies to the credential's account, as a person choosing what to take over needs to recognise them.",
        "operationId": "listMarketplacePortalListings",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32"
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalListingPage"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "listings:read",
        "x-required-account-authority": "the credential Homematch account"
      }
    },
    "/api/marketplace/supply/v1/portal-listings/{marketplaceListingId}": {
      "get": {
        "tags": [
          "Supply"
        ],
        "summary": "Read one portal listing",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `listings:read`\n\n**Account authority:** the credential Homematch account\n\nReturns a portal listing's accepted SwissRETS content and media, with source URLs and hashes, for copying into this system. Delivering the media unchanged and in the same order keeps the photos Homematch has processed.",
        "operationId": "getMarketplacePortalListing",
        "parameters": [
          {
            "name": "marketplaceListingId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalListingResource"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "listings:read",
        "x-required-account-authority": "the credential Homematch account"
      }
    },
    "/api/marketplace/supply/v1/portal-listings/{marketplaceListingId}/handoff": {
      "put": {
        "tags": [
          "Supply"
        ],
        "summary": "Take over a portal listing",
        "description": "**Product:** Marketplace Core\n\n**Credential scope:** `inventories:write`\n\n**Account authority:** the credential Homematch account\n\nRecords a person's decision that this system takes the listing over under a key it has never delivered. Nothing changes until it first delivers that key; that delivery keeps the listing's id, link and history, and is final. Repeating the same request answers the same handoff.",
        "operationId": "putMarketplacePortalListingHandoff",
        "parameters": [
          {
            "name": "marketplaceListingId",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "name": "api-version",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutPortalListingHandoffRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PutPortalListingHandoffRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PutPortalListingHandoffRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PortalListingHandoff"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        },
        "security": [
          {
            "SupplyApiKey": [ ]
          }
        ],
        "x-homematch-product": "Marketplace Core",
        "x-required-credential-scope": "inventories:write",
        "x-required-account-authority": "the credential Homematch account"
      }
    }
  },
  "components": {
    "schemas": {
      "AcceptedListingPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AcceptedListingSummary"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "AcceptedListingPublicationState": {
        "examples": [
          "unpublished"
        ],
        "enum": [
          "unpublished",
          "published"
        ],
        "type": "string",
        "description": "Allowed values: unpublished, published"
      },
      "AcceptedListingResource": {
        "required": [
          "providerListingKey",
          "profileVersion",
          "swissRetsVersion",
          "revision",
          "revisionOrdinal",
          "occurredAt",
          "resourceETag",
          "property",
          "extensions",
          "desiredPublicationState",
          "firstAcceptedAt",
          "lastChangedAt"
        ],
        "type": "object",
        "properties": {
          "providerListingKey": {
            "type": "string"
          },
          "profileVersion": {
            "type": "string"
          },
          "swissRetsVersion": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          },
          "revisionOrdinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "resourceETag": {
            "type": "string"
          },
          "property": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsProperty"
              }
            ]
          },
          "extensions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HomematchSupplyExtensions"
              }
            ]
          },
          "desiredPublicationState": {
            "$ref": "#/components/schemas/AcceptedListingPublicationState"
          },
          "firstAcceptedAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastChangedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AcceptedListingSummary": {
        "required": [
          "providerListingKey",
          "revision",
          "revisionOrdinal",
          "occurredAt",
          "resourceETag",
          "desiredPublicationState",
          "firstAcceptedAt",
          "lastChangedAt"
        ],
        "type": "object",
        "properties": {
          "providerListingKey": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          },
          "revisionOrdinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "resourceETag": {
            "type": "string"
          },
          "desiredPublicationState": {
            "$ref": "#/components/schemas/AcceptedListingPublicationState"
          },
          "firstAcceptedAt": {
            "type": "string",
            "format": "date-time"
          },
          "lastChangedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AccountAddress": {
        "examples": [
          "Current"
        ],
        "enum": [
          "Current",
          "Moved"
        ],
        "type": "string",
        "description": "Allowed values: Current, Moved",
        "default": "Current"
      },
      "AccountBadge": {
        "examples": [
          "none"
        ],
        "enum": [
          "none",
          "blue",
          "gold"
        ],
        "type": "string",
        "description": "Allowed values: none, blue, gold"
      },
      "AccountListingCounts": {
        "required": [
          "total",
          "rent",
          "sale"
        ],
        "type": "object",
        "properties": {
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "rent": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "sale": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "What this account has on the marketplace right now, counted from the live\nprojection — the same membership the account's listing grid pages through,\nso the header and the grid can never disagree.\n\nint AccountListingCounts.Total is the sum: a page shows the two deal types when both\nare present and the total alone when the account only does one, which is\n58% of them."
      },
      "AccountPageDto": {
        "required": [
          "identity",
          "bio",
          "website",
          "isPrivate",
          "socials",
          "updatedAt",
          "memberSince",
          "listingCounts"
        ],
        "type": "object",
        "properties": {
          "identity": {
            "$ref": "#/components/schemas/PublicAccountSummary"
          },
          "bio": {
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "type": [
              "null",
              "string"
            ]
          },
          "isPrivate": {
            "type": "boolean"
          },
          "socials": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountSocialLink"
            }
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "memberSince": {
            "type": "string",
            "format": "date-time"
          },
          "listingCounts": {
            "$ref": "#/components/schemas/AccountListingCounts"
          },
          "category": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OrganizationCategory"
              }
            ]
          },
          "displayNameDerived": {
            "type": "boolean",
            "default": false
          },
          "editVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "address": {
            "$ref": "#/components/schemas/AccountAddress"
          },
          "indexed": {
            "type": "boolean",
            "default": false
          }
        },
        "description": "The common public page for a personal or organization Homematch account.\nContent privacy is a policy on this identity, not another profile type."
      },
      "AccountPhotoState": {
        "required": [
          "updatedAt",
          "url",
          "canInitialize",
          "managedByCurrentClient"
        ],
        "type": "object",
        "properties": {
          "updatedAt": {
            "type": "string",
            "format": "date-time"
          },
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "canInitialize": {
            "type": "boolean"
          },
          "managedByCurrentClient": {
            "type": "boolean"
          }
        }
      },
      "AccountPhotoUploadPhase": {
        "examples": [
          "AwaitingUpload"
        ],
        "enum": [
          "AwaitingUpload",
          "Processing",
          "Applied",
          "Removing",
          "Removed"
        ],
        "type": "string",
        "description": "Allowed values: AwaitingUpload, Processing, Applied, Removing, Removed"
      },
      "AccountPhotoUploadRefusal": {
        "required": [
          "reason",
          "code"
        ],
        "type": "object",
        "properties": {
          "reason": {
            "$ref": "#/components/schemas/MediaRefusalReason"
          },
          "code": {
            "type": "string"
          }
        }
      },
      "AccountPhotoUploadStatus": {
        "required": [
          "id",
          "state",
          "uploadDeadline",
          "failureCode",
          "delivery",
          "refusal"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "$ref": "#/components/schemas/AccountPhotoUploadPhase"
          },
          "uploadDeadline": {
            "type": "string",
            "format": "date-time"
          },
          "failureCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "delivery": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ImageDeliveryDto"
              }
            ]
          },
          "refusal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/AccountPhotoUploadRefusal"
              }
            ]
          }
        }
      },
      "AccountSocialInput": {
        "required": [
          "platform",
          "typed"
        ],
        "type": "object",
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/SocialPlatform"
          },
          "typed": {
            "type": "string"
          }
        }
      },
      "AccountSocialLink": {
        "required": [
          "platform",
          "url"
        ],
        "type": "object",
        "properties": {
          "platform": {
            "$ref": "#/components/schemas/SocialPlatform"
          },
          "url": {
            "type": "string"
          }
        }
      },
      "CompleteInventoryItemOutcome": {
        "examples": [
          "created"
        ],
        "enum": [
          "created",
          "updated",
          "unchanged",
          "withdrawn",
          "rejected"
        ],
        "type": "string",
        "description": "Allowed values: created, updated, unchanged, withdrawn, rejected"
      },
      "CompleteInventoryListing": {
        "required": [
          "providerListingKey",
          "property"
        ],
        "type": "object",
        "properties": {
          "providerListingKey": {
            "type": "string"
          },
          "property": {
            "$ref": "#/components/schemas/SwissRetsProperty"
          },
          "extensions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HomematchSupplyExtensions"
              }
            ]
          }
        }
      },
      "CompleteInventoryReceipt": {
        "required": [
          "receiptId",
          "operation",
          "revision",
          "revisionOrdinal",
          "result",
          "declaredListingCount",
          "acceptedListingCount",
          "withdrawnListingCount",
          "recordedAt"
        ],
        "type": "object",
        "properties": {
          "receiptId": {
            "type": "string",
            "format": "uuid"
          },
          "operation": {
            "$ref": "#/components/schemas/SupplyOperationKind"
          },
          "revision": {
            "type": "string"
          },
          "revisionOrdinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "result": {
            "$ref": "#/components/schemas/SupplyReceiptResult"
          },
          "declaredListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acceptedListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "withdrawnListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recordedAt": {
            "type": "string",
            "format": "date-time"
          },
          "rejectedListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          },
          "unsupportedFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "runStatusPath": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CompleteInventoryRunItem": {
        "required": [
          "providerListingKey",
          "outcome",
          "resourceETag"
        ],
        "type": "object",
        "properties": {
          "providerListingKey": {
            "type": "string"
          },
          "outcome": {
            "$ref": "#/components/schemas/CompleteInventoryItemOutcome"
          },
          "resourceETag": {
            "type": [
              "null",
              "string"
            ]
          },
          "failureCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "failureDetail": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CompleteInventoryRunItemPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompleteInventoryRunItem"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CompleteInventoryRunState": {
        "examples": [
          "completed"
        ],
        "enum": [
          "completed"
        ],
        "type": "string",
        "description": "Allowed values: completed"
      },
      "CompleteInventoryRunStatus": {
        "required": [
          "runId",
          "state",
          "revision",
          "revisionOrdinal",
          "declaredListingCount",
          "acceptedListingCount",
          "createdListingCount",
          "updatedListingCount",
          "unchangedListingCount",
          "withdrawnListingCount",
          "recordedAt"
        ],
        "type": "object",
        "properties": {
          "runId": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "$ref": "#/components/schemas/CompleteInventoryRunState"
          },
          "revision": {
            "type": "string"
          },
          "revisionOrdinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "declaredListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "acceptedListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "createdListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "updatedListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "unchangedListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "withdrawnListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "recordedAt": {
            "type": "string",
            "format": "date-time"
          },
          "rejectedListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32",
            "default": 0
          }
        }
      },
      "CurateAccountProfileRequest": {
        "required": [
          "source",
          "profile"
        ],
        "type": "object",
        "properties": {
          "source": {
            "type": "string"
          },
          "profile": {
            "$ref": "#/components/schemas/UpdateAccountProfileRequest"
          },
          "authoredBio": {
            "type": [
              "null",
              "string"
            ],
            "description": "The provider's own description of the account in the notation its source uses (plain text,\nMarkdown or HTML). Homematch reads it into the plain-text bio (AccountText); when\ngiven it replaces `Profile.Bio`."
          },
          "language": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "description": "The language the publisher works in, as the provider knows it (for Peak Incubator, the language\nof the agency's own listings). It becomes the account's language for every account-native\nsurface; omitted, the account's language stays as it is.",
                "$ref": "#/components/schemas/SupportedLanguage"
              }
            ]
          },
          "contactEmail": {
            "type": [
              "null",
              "string"
            ],
            "description": "The organization's public contact address, shown on its profile and listings. Omitted, it stays;\nempty, it is removed. A provider's write is never domain evidence: only a code-proven login is\n(`OrganizationDomains.ProvenByLoginsAsync`)."
          },
          "contactPhone": {
            "type": [
              "null",
              "string"
            ],
            "description": "The organization's public phone, any common notation, kept in E.164. Omitted, it stays; empty,\nit is removed. A number written this way is unverified."
          }
        }
      },
      "HomematchSupplyExtensions": {
        "type": "object",
        "properties": {
          "propertyFamily": {
            "examples": [
              "apartment"
            ],
            "enum": [
              "apartment",
              "house",
              "investment",
              "commercial",
              "gastro",
              "parking",
              "storage",
              "land",
              "agriculture",
              "garden"
            ],
            "type": "string",
            "description": "Allowed values: apartment, house, investment, commercial, gastro, parking, storage, land, agriculture, garden"
          },
          "projectType": {
            "examples": [
              "new_construction_light"
            ],
            "enum": [
              "new_construction_light",
              "new_construction_premium"
            ],
            "type": "string",
            "description": "Allowed values: new_construction_light, new_construction_premium"
          },
          "projectUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "viewingBookingUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "addressGeography": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SupplyAddressGeography"
              }
            ]
          },
          "registerMatchedEgid": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "originalLanguageCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "availabilityKind": {
            "examples": [
              "immediately"
            ],
            "enum": [
              "immediately",
              "by_agreement"
            ],
            "type": "string",
            "description": "Allowed values: immediately, by_agreement"
          },
          "parties": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SupplyPartyReference"
            }
          },
          "declaredActions": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SupplyDeclaredAction"
            }
          },
          "media": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SupplyMediaExtension"
            }
          },
          "assertedFeatures": {
            "type": [
              "null",
              "array"
            ]
          }
        }
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "ImageDeliveryDto": {
        "required": [
          "supplierMediaId",
          "deliveryRevision",
          "renditions"
        ],
        "type": "object",
        "properties": {
          "supplierMediaId": {
            "type": "string"
          },
          "deliveryRevision": {
            "type": "string"
          },
          "renditions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ImageRenditionDto"
            }
          },
          "thumbHash": {
            "type": [
              "null",
              "string"
            ],
            "format": "byte"
          },
          "readPolicy": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MediaReadPolicyDto"
              }
            ]
          }
        }
      },
      "ImageDynamicRange": {
        "examples": [
          "sdr"
        ],
        "enum": [
          "sdr",
          "gainmap"
        ],
        "type": "string",
        "description": "Allowed values: sdr, gainmap"
      },
      "ImageRenditionDto": {
        "required": [
          "variantKey",
          "width",
          "height",
          "mimeType",
          "codec",
          "sha256",
          "sizeBytes",
          "url"
        ],
        "type": "object",
        "properties": {
          "variantKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "width": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "height": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "mimeType": {
            "type": "string"
          },
          "codec": {
            "type": [
              "null",
              "string"
            ]
          },
          "sha256": {
            "type": [
              "null",
              "string"
            ]
          },
          "sizeBytes": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "url": {
            "type": "string"
          },
          "dynamicRange": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ImageDynamicRange"
              }
            ]
          }
        }
      },
      "ListingMediaIssue": {
        "required": [
          "sourceUrl",
          "kind",
          "code",
          "detail"
        ],
        "type": "object",
        "properties": {
          "sourceUrl": {
            "type": "string"
          },
          "kind": {
            "$ref": "#/components/schemas/ListingMediaIssueKind"
          },
          "code": {
            "$ref": "#/components/schemas/ListingMediaIssueCode"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ListingMediaIssueCode": {
        "examples": [
          "media_source_unreachable"
        ],
        "enum": [
          "media_source_unreachable",
          "media_source_not_a_file",
          "media_type_mismatch",
          "media_source_too_large",
          "media_processing_failed"
        ],
        "type": "string",
        "description": "Allowed values: media_source_unreachable, media_source_not_a_file, media_type_mismatch, media_source_too_large, media_processing_failed"
      },
      "ListingMediaIssueKind": {
        "examples": [
          "image"
        ],
        "enum": [
          "image",
          "video",
          "document",
          "floor_plan",
          "contact_photo"
        ],
        "type": "string",
        "description": "Allowed values: image, video, document, floor_plan, contact_photo"
      },
      "ListingPresenceReasonCode": {
        "examples": [
          "source_version_pending"
        ],
        "enum": [
          "source_version_pending",
          "serving_row_not_public",
          "withdrawal_pending",
          "catalog_projection_pending",
          "catalog_decision",
          "latest_revision_rejected"
        ],
        "type": "string",
        "description": "Allowed values: source_version_pending, serving_row_not_public, withdrawal_pending, catalog_projection_pending, catalog_decision, latest_revision_rejected"
      },
      "ListingPresenceResponse": {
        "required": [
          "state",
          "providerListingKey",
          "sourceListingVersionId",
          "appliedSourceListingVersionId",
          "marketplaceListingId",
          "publicListingUrl",
          "reasonCode",
          "detail",
          "observedAt"
        ],
        "type": "object",
        "properties": {
          "state": {
            "$ref": "#/components/schemas/ListingPresenceState"
          },
          "providerListingKey": {
            "type": "string"
          },
          "sourceListingVersionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "appliedSourceListingVersionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "marketplaceListingId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "publicListingUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "reasonCode": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ListingPresenceReasonCode"
              }
            ]
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "observedAt": {
            "type": "string",
            "format": "date-time"
          },
          "mediaIssues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ListingMediaIssue"
            }
          },
          "mediaPendingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ListingPresenceState": {
        "examples": [
          "Reconciling"
        ],
        "enum": [
          "Reconciling",
          "Live",
          "Suppressed",
          "Withdrawn"
        ],
        "type": "string",
        "description": "Allowed values: Reconciling, Live, Suppressed, Withdrawn"
      },
      "MarketplaceSupplyCapabilities": {
        "required": [
          "apiVersion",
          "profileVersion",
          "swissRetsVersion",
          "swissRetsSchemaSha256",
          "partyRoles"
        ],
        "type": "object",
        "properties": {
          "apiVersion": {
            "type": "string"
          },
          "profileVersion": {
            "type": "string"
          },
          "swissRetsVersion": {
            "type": "string"
          },
          "swissRetsSchemaSha256": {
            "type": "string"
          },
          "partyRoles": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "MediaReadPolicyDto": {
        "required": [
          "version",
          "kind",
          "maxAgeSeconds",
          "offlineAllowed"
        ],
        "type": "object",
        "properties": {
          "version": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "kind": {
            "type": "string"
          },
          "maxAgeSeconds": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "offlineAllowed": {
            "type": "boolean"
          },
          "expiresAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          }
        }
      },
      "MediaRefusalReason": {
        "examples": [
          "Unreadable"
        ],
        "enum": [
          "Unreadable",
          "PasswordProtected",
          "UnsupportedFormat",
          "TooLarge",
          "TooLong"
        ],
        "type": "string",
        "description": "Allowed values: Unreadable, PasswordProtected, UnsupportedFormat, TooLarge, TooLong"
      },
      "OrganizationCategory": {
        "examples": [
          "real_estate_agency"
        ],
        "enum": [
          "real_estate_agency",
          "property_management",
          "property_developer",
          "company"
        ],
        "type": "string",
        "description": "Allowed values: real_estate_agency, property_management, property_developer, company"
      },
      "PortalListingHandoff": {
        "required": [
          "marketplaceListingId",
          "providerListingKey",
          "applied"
        ],
        "type": "object",
        "properties": {
          "marketplaceListingId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "providerListingKey": {
            "type": "string"
          },
          "applied": {
            "type": "boolean"
          }
        }
      },
      "PortalListingPage": {
        "required": [
          "items",
          "nextCursor"
        ],
        "type": "object",
        "properties": {
          "items": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PortalListingSummary"
            }
          },
          "nextCursor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PortalListingPublicContact": {
        "required": [
          "firstName",
          "lastName",
          "email",
          "phone"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PortalListingResource": {
        "required": [
          "marketplaceListingId",
          "publicListingUrl",
          "resourceETag",
          "property",
          "extensions",
          "handoffProviderListingKey",
          "lastChangedAt"
        ],
        "type": "object",
        "properties": {
          "marketplaceListingId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "publicListingUrl": {
            "type": "string"
          },
          "resourceETag": {
            "type": "string"
          },
          "property": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsProperty"
              }
            ]
          },
          "extensions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HomematchSupplyExtensions"
              }
            ]
          },
          "handoffProviderListingKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastChangedAt": {
            "type": "string",
            "format": "date-time"
          },
          "publicContact": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PortalListingPublicContact"
              }
            ]
          }
        }
      },
      "PortalListingSummary": {
        "required": [
          "marketplaceListingId",
          "publicListingUrl",
          "title",
          "type",
          "address",
          "prices",
          "numberOfRooms",
          "coverImageUrl",
          "imageCount",
          "inquiryCount",
          "handoffProviderListingKey",
          "lastChangedAt"
        ],
        "type": "object",
        "properties": {
          "marketplaceListingId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "publicListingUrl": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/SwissRetsDealType"
          },
          "address": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsAddress"
              }
            ]
          },
          "prices": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsPrices"
              }
            ]
          },
          "numberOfRooms": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "coverImageUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "imageCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "inquiryCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "handoffProviderListingKey": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastChangedAt": {
            "type": "string",
            "format": "date-time"
          },
          "publicContact": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PortalListingPublicContact"
              }
            ]
          }
        }
      },
      "PreviewListingReceipt": {
        "required": [
          "token",
          "previewUrl",
          "expiresAt"
        ],
        "type": "object",
        "properties": {
          "token": {
            "type": "string"
          },
          "previewUrl": {
            "type": "string"
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "Problem": {
        "required": [
          "type",
          "title",
          "status",
          "code",
          "audience"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "$ref": "#/components/schemas/ProblemCode"
          },
          "audience": {
            "$ref": "#/components/schemas/ProblemAudience"
          },
          "traceId": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ProblemError"
            }
          },
          "upstream": {
            "$ref": "#/components/schemas/UpstreamProblem"
          },
          "dependency": {
            "type": "string",
            "description": "On unavailable: the service that is down. For support, never branched on."
          },
          "requiredContract": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        },
        "description": "An RFC 9457 problem of a declared type."
      },
      "ProblemAudience": {
        "enum": [
          "user",
          "client"
        ],
        "type": "string",
        "description": "Who detail is written for: user (a client may show it), client (developers; a client shows its own failure)."
      },
      "ProblemCode": {
        "enum": [
          "forbidden",
          "internal_error",
          "method_not_allowed",
          "not_found",
          "rate_limited",
          "request_too_large",
          "request_unreadable",
          "supply_account_unavailable",
          "supply_contract_outdated",
          "supply_credential_unavailable",
          "supply_idempotency_key_reused",
          "supply_incubator_disconnected",
          "supply_incubator_takeover_required",
          "supply_inquiry_delivery_unsupported",
          "supply_inquiry_route_ambiguous",
          "supply_inquiry_route_unavailable",
          "supply_inventory_outcomes_unavailable",
          "supply_lifecycle_conflict",
          "supply_listing_account_conflict",
          "supply_listing_not_found",
          "supply_listing_unpublishable",
          "supply_photo_already_applied",
          "supply_photo_request_reused",
          "supply_photo_upload_expired",
          "supply_photo_upload_not_found",
          "supply_profile_changed",
          "supply_registration_account_closed",
          "supply_registration_identity_conflict",
          "supply_registration_not_found",
          "supply_revision_conflict",
          "supply_revision_stale",
          "supply_synchronization_conflict",
          "supply_writer_not_found",
          "supply_writer_retirement_blocked",
          "supply_writer_unavailable",
          "unauthorized",
          "unavailable",
          "unsupported_media_type",
          "validation_failed"
        ],
        "type": "string",
        "description": "Why the service refused the request. Branch on it; title and detail are never parsed."
      },
      "ProblemError": {
        "required": [
          "code",
          "detail",
          "audience"
        ],
        "type": "object",
        "properties": {
          "pointer": {
            "type": "string"
          },
          "parameter": {
            "type": "string"
          },
          "code": {
            "$ref": "#/components/schemas/ProblemErrorCode"
          },
          "detail": {
            "type": "string"
          },
          "audience": {
            "$ref": "#/components/schemas/ProblemAudience"
          },
          "minimum": {
            "type": "number"
          },
          "maximum": {
            "type": "number"
          }
        },
        "description": "One broken rule: pointer (RFC 6901, into the body) or parameter (query or route)."
      },
      "ProblemErrorCode": {
        "enum": [
          "incompatible",
          "invalid",
          "off_step",
          "out_of_range",
          "required",
          "too_few",
          "too_long",
          "too_many",
          "too_short",
          "unavailable",
          "unknown",
          "unreadable"
        ],
        "type": "string",
        "description": "Which rule a value of the request breaks."
      },
      "PublicAccountKind": {
        "examples": [
          "personal"
        ],
        "enum": [
          "personal",
          "organization"
        ],
        "type": "string",
        "description": "Allowed values: personal, organization"
      },
      "PublicAccountState": {
        "examples": [
          "active"
        ],
        "enum": [
          "active",
          "unavailable",
          "erased"
        ],
        "type": "string",
        "description": "Allowed values: active, unavailable, erased"
      },
      "PublicAccountSummary": {
        "required": [
          "accountId",
          "kind",
          "state",
          "displayName",
          "handle",
          "avatar",
          "badge"
        ],
        "type": "object",
        "properties": {
          "accountId": {
            "type": "string",
            "format": "uuid"
          },
          "kind": {
            "$ref": "#/components/schemas/PublicAccountKind"
          },
          "state": {
            "$ref": "#/components/schemas/PublicAccountState"
          },
          "displayName": {
            "type": [
              "null",
              "string"
            ]
          },
          "handle": {
            "type": [
              "null",
              "string"
            ]
          },
          "avatar": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ImageDeliveryDto"
              }
            ]
          },
          "badge": {
            "$ref": "#/components/schemas/AccountBadge"
          }
        }
      },
      "PutCompleteInventoryRequest": {
        "required": [
          "profileVersion",
          "swissRetsVersion",
          "revision",
          "revisionOrdinal",
          "occurredAt",
          "complete",
          "declaredListingCount",
          "listings"
        ],
        "type": "object",
        "properties": {
          "profileVersion": {
            "type": "string"
          },
          "swissRetsVersion": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          },
          "revisionOrdinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "complete": {
            "type": "boolean"
          },
          "declaredListingCount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "listings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CompleteInventoryListing"
            }
          }
        }
      },
      "PutListingResourceRequest": {
        "required": [
          "profileVersion",
          "swissRetsVersion",
          "revision",
          "revisionOrdinal",
          "occurredAt",
          "property"
        ],
        "type": "object",
        "properties": {
          "profileVersion": {
            "type": "string"
          },
          "swissRetsVersion": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          },
          "revisionOrdinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "property": {
            "$ref": "#/components/schemas/SwissRetsProperty"
          },
          "extensions": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/HomematchSupplyExtensions"
              }
            ]
          },
          "publicationState": {
            "examples": [
              "unpublished"
            ],
            "enum": [
              "unpublished",
              "published"
            ],
            "type": "string",
            "description": "Allowed values: unpublished, published"
          }
        }
      },
      "PutPortalListingHandoffRequest": {
        "required": [
          "providerListingKey",
          "decidedBy"
        ],
        "type": "object",
        "properties": {
          "providerListingKey": {
            "type": "string"
          },
          "decidedBy": {
            "type": "string"
          }
        }
      },
      "SocialPlatform": {
        "examples": [
          "Instagram"
        ],
        "enum": [
          "Instagram",
          "TikTok",
          "LinkedIn"
        ],
        "type": "string",
        "description": "Allowed values: Instagram, TikTok, LinkedIn"
      },
      "SupersedeListingRequest": {
        "required": [
          "revision",
          "revisionOrdinal",
          "occurredAt",
          "supersededByProviderListingKey"
        ],
        "type": "object",
        "properties": {
          "revision": {
            "type": "string"
          },
          "revisionOrdinal": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "occurredAt": {
            "type": "string",
            "format": "date-time"
          },
          "supersededByProviderListingKey": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SupplyAddressGeography": {
        "required": [
          "resolutionKind",
          "egaid",
          "principalGeographicAreaId",
          "principalGeographicAreaKind",
          "municipalityGeographicAreaId",
          "localityGeographicAreaId",
          "postalGeographicAreaIds",
          "geographyRevision"
        ],
        "type": "object",
        "properties": {
          "resolutionKind": {
            "type": "string"
          },
          "egaid": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "principalGeographicAreaId": {
            "type": "string",
            "format": "uuid"
          },
          "principalGeographicAreaKind": {
            "type": "string"
          },
          "municipalityGeographicAreaId": {
            "type": "string",
            "format": "uuid"
          },
          "localityGeographicAreaId": {
            "type": "string",
            "format": "uuid"
          },
          "postalGeographicAreaIds": {
            "type": "array",
            "items": {
              "type": "string",
              "format": "uuid"
            }
          },
          "geographyRevision": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "egid": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "SupplyDeclaredAction": {
        "required": [
          "kind"
        ],
        "type": "object",
        "properties": {
          "kind": {
            "$ref": "#/components/schemas/SupplyDeclaredActionKind"
          }
        }
      },
      "SupplyDeclaredActionKind": {
        "examples": [
          "inquiry"
        ],
        "enum": [
          "inquiry"
        ],
        "type": "string",
        "description": "Allowed values: inquiry"
      },
      "SupplyMediaExtension": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "kind": {
            "examples": [
              "image"
            ],
            "enum": [
              "image",
              "video",
              "document"
            ],
            "type": "string",
            "description": "Allowed values: image, video, document"
          },
          "sha256": {
            "type": [
              "null",
              "string"
            ]
          },
          "supplierMediaId": {
            "type": [
              "null",
              "string"
            ]
          },
          "originalSha256": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SupplyOperationKind": {
        "examples": [
          "put"
        ],
        "enum": [
          "put",
          "publish",
          "unpublish",
          "supersede",
          "put-complete-inventory"
        ],
        "type": "string",
        "description": "Allowed values: put, publish, unpublish, supersede, put-complete-inventory"
      },
      "SupplyOperationReceipt": {
        "required": [
          "receiptId",
          "operation",
          "providerListingKey",
          "resourceETag",
          "publicationState",
          "result",
          "sourceListingId",
          "sourceListingVersionId",
          "detail",
          "recordedAt"
        ],
        "type": "object",
        "properties": {
          "receiptId": {
            "type": "string",
            "format": "uuid"
          },
          "operation": {
            "$ref": "#/components/schemas/SupplyOperationKind"
          },
          "providerListingKey": {
            "type": "string"
          },
          "resourceETag": {
            "type": "string"
          },
          "publicationState": {
            "$ref": "#/components/schemas/AcceptedListingPublicationState"
          },
          "result": {
            "$ref": "#/components/schemas/SupplyReceiptResult"
          },
          "sourceListingId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "sourceListingVersionId": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "detail": {
            "type": [
              "null",
              "string"
            ]
          },
          "recordedAt": {
            "type": "string",
            "format": "date-time"
          },
          "unsupportedFields": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SupplyPartyAddress": {
        "type": "object",
        "properties": {
          "street": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "city": {
            "type": [
              "null",
              "string"
            ]
          },
          "canton": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SupplyPartyKind": {
        "examples": [
          "organization"
        ],
        "enum": [
          "organization",
          "person"
        ],
        "type": "string",
        "description": "Allowed values: organization, person"
      },
      "SupplyPartyPerson": {
        "type": "object",
        "properties": {
          "firstName": {
            "type": [
              "null",
              "string"
            ]
          },
          "lastName": {
            "type": [
              "null",
              "string"
            ]
          },
          "jobTitle": {
            "type": [
              "null",
              "string"
            ]
          },
          "gender": {
            "examples": [
              "male"
            ],
            "enum": [
              "male",
              "female",
              "other"
            ],
            "type": "string",
            "description": "Allowed values: male, female, other"
          },
          "photo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SupplyPartyPhoto"
              }
            ]
          }
        }
      },
      "SupplyPartyPhoto": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "sha256": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SupplyPartyProfile": {
        "type": "object",
        "properties": {
          "name": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "type": [
              "null",
              "string"
            ]
          },
          "logoUrl": {
            "type": [
              "null",
              "string"
            ]
          },
          "person": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SupplyPartyPerson"
              }
            ]
          },
          "emailKind": {
            "examples": [
              "personal"
            ],
            "enum": [
              "personal",
              "general",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: personal, general, unknown"
          },
          "address": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SupplyPartyAddress"
              }
            ]
          }
        }
      },
      "SupplyPartyReference": {
        "required": [
          "providerPartyId",
          "role",
          "kind"
        ],
        "type": "object",
        "properties": {
          "providerPartyId": {
            "type": "string"
          },
          "role": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SupplyPartyRole"
              }
            ]
          },
          "kind": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SupplyPartyKind"
              }
            ]
          },
          "providerOfficeId": {
            "type": [
              "null",
              "string"
            ]
          },
          "profile": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SupplyPartyProfile"
              }
            ]
          }
        }
      },
      "SupplyPartyRole": {
        "examples": [
          "advertiser"
        ],
        "enum": [
          "advertiser",
          "manager",
          "public_contact",
          "brand",
          "channel",
          "channel_operator",
          "private_poster",
          "inquiry_recipient",
          "visit_contact"
        ],
        "type": "string",
        "description": "Allowed values: advertiser, manager, public_contact, brand, channel, channel_operator, private_poster, inquiry_recipient, visit_contact"
      },
      "SupplyReceiptResult": {
        "examples": [
          "ResourceStored"
        ],
        "enum": [
          "ResourceStored",
          "ResourceUnchanged",
          "Accepted",
          "Unchanged",
          "InventoryApplied",
          "InventoryUnchanged"
        ],
        "type": "string",
        "description": "Allowed values: ResourceStored, ResourceUnchanged, Accepted, Unchanged, InventoryApplied, InventoryUnchanged"
      },
      "SupportedLanguage": {
        "examples": [
          "German"
        ],
        "enum": [
          "German",
          "English",
          "French",
          "Italian"
        ],
        "type": "string",
        "description": "Allowed values: German, English, French, Italian"
      },
      "SwissRetsAddress": {
        "type": "object",
        "properties": {
          "countryCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "street": {
            "type": [
              "null",
              "string"
            ]
          },
          "streetNumber": {
            "type": [
              "null",
              "string"
            ]
          },
          "postalCode": {
            "type": [
              "null",
              "string"
            ]
          },
          "locality": {
            "type": [
              "null",
              "string"
            ]
          },
          "region": {
            "type": [
              "null",
              "string"
            ]
          },
          "geo": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsGeo"
              }
            ]
          }
        }
      },
      "SwissRetsAttachment": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "mimeType": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SwissRetsAttachments": {
        "type": "object",
        "properties": {
          "images": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SwissRetsAttachment"
            }
          },
          "documents": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SwissRetsAttachment"
            }
          },
          "plans": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SwissRetsAttachment"
            }
          },
          "links": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SwissRetsLink"
            }
          },
          "youTubeLinks": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SwissRetsLink"
            }
          },
          "directLinks": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SwissRetsLink"
            }
          },
          "virtualTourLinks": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/SwissRetsLink"
            }
          }
        }
      },
      "SwissRetsAvailability": {
        "required": [
          "state"
        ],
        "type": "object",
        "properties": {
          "state": {
            "$ref": "#/components/schemas/SwissRetsAvailabilityState"
          },
          "start": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SwissRetsAvailabilityState": {
        "examples": [
          "active"
        ],
        "enum": [
          "active",
          "private",
          "reference",
          "reserved",
          "taken"
        ],
        "type": "string",
        "description": "Allowed values: active, private, reference, reserved, taken"
      },
      "SwissRetsBfs": {
        "type": "object",
        "properties": {
          "egid": {
            "type": [
              "null",
              "string"
            ]
          },
          "ewid": {
            "type": [
              "null",
              "string"
            ]
          },
          "egrid": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SwissRetsBuyPrice": {
        "type": "object",
        "properties": {
          "price": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "extra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "referring": {
            "examples": [
              "all"
            ],
            "enum": [
              "all",
              "m2",
              "km2"
            ],
            "type": "string",
            "description": "Allowed values: all, m2, km2"
          }
        }
      },
      "SwissRetsCharacteristics": {
        "type": "object",
        "properties": {
          "areaBwf": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "areaNwf": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "areaPropertyLand": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "areaBalcony": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "areaTerrace": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "areaGarden": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "arePetsAllowed": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "ceilingHeight": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "craneCapacity": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "floor": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "floorLoad": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "hallHeight": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "hasAttic": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasBalcony": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasBuildingLawRestrictions": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasCableTv": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasCarPort": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasCarPortDouble": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasCellar": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasChargingStation": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasConnectedBuildingLand": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasDemolitionProperty": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasDishwasher": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasElevator": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasEvChargingStation": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasFiberOptic": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasFireplace": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasFlatSharingCommunity": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasForeignQuota": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasGarage": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasGarageDouble": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasGarageUnderground": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasGardenShed": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasLakeView": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasLiftingPlatform": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasMountainView": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasMultimediaWiring": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasNiceView": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasParking": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasPhotovoltaic": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasPlayground": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasRamp": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasSteamer": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasStoreRoom": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasSupplyGas": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasSupplyPower": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasSupplySewage": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasSupplyWater": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasSwimmingPool": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasThermalSolarCollector": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasTiledStove": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasTumbleDryer": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasWashingMachine": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "hasRemoteViewings": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isChildFriendly": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isCornerHouse": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isDemolitionProperty": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isDilapidated": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isFirstOccupancy": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isGroundFloor": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isGroundFloorRaised": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isGutted": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isInNeedOfRenovation": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isInNeedOfRenovationPartially": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isLikeNew": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isMiddleHouse": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isModernized": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isNewConstruction": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isOldBuilding": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isProjection": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isQuiet": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isRefurbished": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isRefurbishedPartially": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isSecondaryResidenceAllowed": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isShellConstruction": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isSmokingAllowed": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isSunny": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isTemporaryUse": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isUnderRoof": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isWellTended": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "isWheelchairAccessible": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "numberOfBathrooms": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numberOfFloors": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numberOfRooms": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "numberOfShowers": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "numberOfToilets": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "onEvenGround": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "onHillside": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "onHillsideSouth": {
            "examples": [
              "applies"
            ],
            "enum": [
              "applies",
              "does-not-apply",
              "unknown"
            ],
            "type": "string",
            "description": "Allowed values: applies, does-not-apply, unknown"
          },
          "utilizationRatio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "yearBuilt": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "yearLastRenovated": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "SwissRetsDealType": {
        "examples": [
          "rent"
        ],
        "enum": [
          "rent",
          "buy"
        ],
        "type": "string",
        "description": "Allowed values: rent, buy"
      },
      "SwissRetsDeposit": {
        "type": "object",
        "properties": {
          "amount": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "type": {
            "examples": [
              "bank-guarantee"
            ],
            "enum": [
              "bank-guarantee",
              "deposit-guarantee"
            ],
            "type": "string",
            "description": "Allowed values: bank-guarantee, deposit-guarantee"
          }
        }
      },
      "SwissRetsExternalReference": {
        "type": "object",
        "properties": {
          "refProperty": {
            "type": [
              "null",
              "string"
            ]
          },
          "refHouse": {
            "type": [
              "null",
              "string"
            ]
          },
          "refObject": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SwissRetsGeo": {
        "required": [
          "latitude",
          "longitude"
        ],
        "type": "object",
        "properties": {
          "latitude": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "longitude": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?(?:[eE][+-]?\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "SwissRetsLink": {
        "required": [
          "url"
        ],
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SwissRetsLocalization": {
        "required": [
          "languageCode",
          "title"
        ],
        "type": "object",
        "properties": {
          "languageCode": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "description": {
            "type": [
              "null",
              "string"
            ]
          },
          "visitInformation": {
            "type": [
              "null",
              "string"
            ]
          },
          "attachments": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsAttachments"
              }
            ]
          }
        }
      },
      "SwissRetsOrganization": {
        "type": "object",
        "properties": {
          "id": {
            "type": [
              "null",
              "string"
            ]
          },
          "legalName": {
            "type": [
              "null",
              "string"
            ]
          },
          "brand": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "mobile": {
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsWebsite"
              }
            ]
          },
          "address": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsAddress"
              }
            ]
          }
        }
      },
      "SwissRetsPerson": {
        "type": "object",
        "properties": {
          "gender": {
            "examples": [
              "male"
            ],
            "enum": [
              "male",
              "female",
              "other"
            ],
            "type": "string",
            "description": "Allowed values: male, female, other"
          },
          "givenName": {
            "type": [
              "null",
              "string"
            ]
          },
          "familyName": {
            "type": [
              "null",
              "string"
            ]
          },
          "email": {
            "type": [
              "null",
              "string"
            ]
          },
          "phone": {
            "type": [
              "null",
              "string"
            ]
          },
          "mobile": {
            "type": [
              "null",
              "string"
            ]
          },
          "note": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "SwissRetsPrices": {
        "type": "object",
        "properties": {
          "currency": {
            "examples": [
              "CHF"
            ],
            "enum": [
              "CHF",
              "EUR",
              "USD",
              "GBP"
            ],
            "type": "string",
            "description": "Allowed values: CHF, EUR, USD, GBP"
          },
          "rent": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsRentPrice"
              }
            ]
          },
          "buy": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsBuyPrice"
              }
            ]
          },
          "deposit": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsDeposit"
              }
            ]
          }
        }
      },
      "SwissRetsProperty": {
        "required": [
          "id",
          "referenceId",
          "type",
          "availability",
          "localizations"
        ],
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "referenceId": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/SwissRetsDealType"
          },
          "availability": {
            "$ref": "#/components/schemas/SwissRetsAvailability"
          },
          "localizations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/SwissRetsLocalization"
            }
          },
          "visualReferenceId": {
            "type": [
              "null",
              "string"
            ]
          },
          "created": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "modified": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "categories": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "type": "string"
            }
          },
          "externalReference": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsExternalReference"
              }
            ]
          },
          "bfs": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsBfs"
              }
            ]
          },
          "address": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsAddress"
              }
            ]
          },
          "characteristics": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsCharacteristics"
              }
            ]
          },
          "prices": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsPrices"
              }
            ]
          },
          "seller": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsSeller"
              }
            ]
          },
          "minergieCertification": {
            "type": [
              "null",
              "string"
            ]
          }
        },
        "description": "One SwissRETS 3.6.0 property, typed: SwissRETS names, nesting, and vocabularies, restricted to the fields Homematch interprets. The checksum-pinned full standard is published at /openapi/schemas/swissrets-json-3.6.0.schema.json."
      },
      "SwissRetsRentPrice": {
        "type": "object",
        "properties": {
          "net": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "gross": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "extra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          },
          "interval": {
            "examples": [
              "onetime"
            ],
            "enum": [
              "onetime",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Allowed values: onetime, day, week, month, year"
          },
          "referring": {
            "examples": [
              "all"
            ],
            "enum": [
              "all",
              "m2",
              "km2"
            ],
            "type": "string",
            "description": "Allowed values: all, m2, km2"
          }
        }
      },
      "SwissRetsSeller": {
        "type": "object",
        "properties": {
          "inquiryEmail": {
            "type": [
              "null",
              "string"
            ]
          },
          "organization": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsOrganization"
              }
            ]
          },
          "contactPerson": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsPerson"
              }
            ]
          },
          "visitPerson": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/SwissRetsPerson"
              }
            ]
          }
        }
      },
      "SwissRetsWebsite": {
        "type": "object",
        "properties": {
          "url": {
            "type": [
              "null",
              "string"
            ]
          },
          "title": {
            "type": [
              "null",
              "string"
            ]
          },
          "label": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "UpdateAccountProfileRequest": {
        "required": [
          "displayName",
          "handle",
          "bio",
          "website"
        ],
        "type": "object",
        "properties": {
          "displayName": {
            "type": [
              "null",
              "string"
            ]
          },
          "handle": {
            "type": [
              "null",
              "string"
            ]
          },
          "bio": {
            "type": [
              "null",
              "string"
            ]
          },
          "website": {
            "type": [
              "null",
              "string"
            ]
          },
          "expectedUpdatedAt": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "socials": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/AccountSocialInput"
            }
          },
          "expectedEditVersion": {
            "type": [
              "null",
              "string"
            ]
          },
          "endsIdentityBadge": {
            "type": [
              "null",
              "boolean"
            ]
          }
        },
        "description": "Replaces the editable public fields. Null bio/website clears them; an established handle cannot be removed.\nA null or blank display name means \"not customised\": the profile then shows the contact name, or\nthe handle without one, and keeps following those until a real display name is set.\nIReadOnlyList&lt;AccountSocialInput&gt;? UpdateAccountProfileRequest.Socials replaces the linked profiles (see AccountSocials): each as\ntyped, one per platform, an empty list removes them all; null leaves them as they are, for\ncallers that do not edit them."
      },
      "UpstreamProblem": {
        "required": [
          "type"
        ],
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "format": "int32"
          }
        },
        "description": "The other service's problem this one answers in its stead; for support, never branched on."
      }
    },
    "securitySchemes": {
      "SupplyApiKey": {
        "type": "apiKey",
        "description": "Publishing credential authenticating exactly one Homematch account.",
        "name": "X-Api-Key",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Profile",
      "description": "Read and curate the account's canonical public identity and processed profile photo."
    },
    {
      "name": "Supply",
      "description": "Validate, accept, publish, withdraw, supersede, and reconcile SwissRETS-profiled listing resources."
    },
    {
      "name": "Observation",
      "description": "Observe receiver-owned Marketplace lifecycle independently from delivery acceptance."
    }
  ]
}