{
  "openapi" : "3.1.2",
  "info" : {
    "title" : "BIM.works Open API",
    "description" : "This API can be used to interact with the BIM.works Repository, either self-hosted or BIM Base hosted",
    "termsOfService" : "https://bimbase.nl/termsandconditions",
    "contact" : {
      "name" : "BIM Base B.V.",
      "url" : "https://bimbase.nl/contact-us",
      "email" : "support@bimbase.nl"
    },
    "version" : "3.0.0-beta.192"
  },
  "servers" : [ {
    "url" : "https://bim.works/openapi",
    "description" : "p8.bim.works"
  } ],
  "security" : [ {
    "BearerAuth" : [ ]
  } ],
  "tags" : [ {
    "name" : "Auth",
    "x-displayName" : "Auth - Authentication",
    "description" : "Authentication and authorization related calls such as for logging in and creating authentication tokens."
  }, {
    "name" : "Fs",
    "x-displayName" : "Fs - FileSystem",
    "description" : "BIM.works repository's virtual filesystem related calls."
  }, {
    "name" : "Model",
    "description" : "Calls related to models, for example to upload or download models"
  }, {
    "name" : "Versions",
    "description" : "Calls related to Versions"
  }, {
    "name" : "IFC",
    "x-displayName" : "IFC - Industry Foundation Classes",
    "description" : "IFC related calls, for example queries and model checks"
  }, {
    "name" : "GIS",
    "x-displayName" : "GIS - Geographic Information Systems",
    "description" : "GIS related calls, for example to export to CityGML"
  }, {
    "name" : "AI",
    "x-displayName" : "AI - Artificial Intelligence",
    "description" : "Natural-language calls, for example to turn a sentence into a BQL query, a BVL visualisation or a BCL check"
  }, {
    "name" : "Account",
    "description" : "The signed-in account: registration, password, sessions and settings"
  }, {
    "name" : "Admin",
    "description" : "The administration of an organization: its accounts and features"
  }, {
    "name" : "Actions",
    "description" : "Stored queries, checks, visualizations and other actions, which Query and Check run by uuid"
  }, {
    "name" : "Workspaces",
    "description" : "Curated views on a folder for visitors of the BIM.works web app, and their share links"
  }, {
    "name" : "Info",
    "description" : "General information about the instance"
  }, {
    "name" : "Viewer",
    "description" : "What the viewers need to place and load models"
  }, {
    "name" : "LinkedData",
    "x-displayName" : "Linked data",
    "description" : "Files, URLs, texts and identifiers linked to objects, which follow their objects to later Versions"
  } ],
  "paths" : {
    "/auth/LoginWithUsernamePassword" : {
      "post" : {
        "operationId" : "LoginWithUsernamePassword",
        "x-required-scopes" : [ ],
        "summary" : "Login using username/password, this can be used for testing. For production use we advise LoginWithApiToken\n",
        "security" : [ ],
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "LoginWithUsernamePasswordRequest",
                "type" : "object",
                "properties" : {
                  "username" : {
                    "type" : "string",
                    "format" : "email"
                  },
                  "password" : {
                    "type" : "string",
                    "format" : "password"
                  },
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                },
                "required" : [ "username", "password" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The login attempt succeeded. The token is also returned in the `Authorization` response header.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/LoginWithApiToken" : {
      "post" : {
        "operationId" : "LoginWithApiToken",
        "x-required-scopes" : [ ],
        "summary" : "Login using an API Token",
        "security" : [ ],
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "LoginWithApiTokenRequest",
                "type" : "object",
                "properties" : {
                  "token" : {
                    "type" : "string",
                    "format" : "password"
                  },
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                },
                "required" : [ "token" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The login attempt succeeded",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/CreateAnonymousToken" : {
      "post" : {
        "operationId" : "CreateAnonymousToken",
        "x-required-scopes" : [ ],
        "summary" : "Create an anonymous token, for using BIM.works without an account",
        "description" : "Creates an anonymous token together with its own base Node and user feature set. No\nauthentication is required, but the feature must be enabled on the instance\n(features.anonymous_tokens). The returned token (always prefixed with \"at-\") is shown\nexactly once and cannot be recovered: when it is lost, nothing in the anonymous\n\"account\" is accessible anymore, by design. Use LoginWithAnonymousToken to exchange\nthe token for an auth object.\n",
        "security" : [ ],
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CreateAnonymousTokenRequest",
                "type" : "object",
                "properties" : {
                  "identifier" : {
                    "type" : "string",
                    "maxLength" : 256,
                    "description" : "Optional identifier stored with the token, useful for debugging"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The anonymous token was created. The token is returned exactly once and can never be retrieved again.",
            "content" : {
              "application/json" : {
                "schema" : {
                  "title" : "CreateAnonymousTokenResult",
                  "type" : "object",
                  "properties" : {
                    "token" : {
                      "type" : "string",
                      "format" : "password",
                      "description" : "The anonymous token, prefixed with \"at-\". Store it safely, it is never shown again."
                    },
                    "uuid" : {
                      "type" : "string",
                      "format" : "uuid"
                    },
                    "root_node_uuid" : {
                      "type" : "string",
                      "format" : "uuid"
                    }
                  },
                  "required" : [ "token", "uuid", "root_node_uuid" ]
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/LoginWithAnonymousToken" : {
      "post" : {
        "operationId" : "LoginWithAnonymousToken",
        "x-required-scopes" : [ ],
        "summary" : "Login using an anonymous token (\"at-\" prefixed)",
        "security" : [ ],
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "LoginWithAnonymousTokenRequest",
                "type" : "object",
                "properties" : {
                  "token" : {
                    "type" : "string",
                    "format" : "password"
                  },
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                },
                "required" : [ "token" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The login attempt succeeded",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/CreateVersionsToken" : {
      "post" : {
        "operationId" : "CreateVersionsToken",
        "x-required-scopes" : [ "tokens:issue" ],
        "summary" : "Create a new token, based on a set of Versions",
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CreateVersionsTokenRequest",
                "type" : "object",
                "properties" : {
                  "expires_seconds" : {
                    "type" : "integer"
                  },
                  "version_uuids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "format" : "uuid"
                    }
                  },
                  "tasks" : {
                    "deprecated" : true,
                    "description" : "Deprecated - use scopes instead. Task-name allow-lists do not cover API calls added later and can name tasks that no longer exist.",
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  },
                  "scopes" : {
                    "description" : "Scopes granted to the token (preferred over tasks - scopes keep working when new API calls are added); the issued scopes can never exceed the issuing credential's scopes",
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/Scope"
                    }
                  },
                  "ip_addresses" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  },
                  "lock_to_called_ip" : {
                    "type" : "boolean"
                  },
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                },
                "required" : [ "expires_seconds", "version_uuids" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Generic auth response, which can be plugged into other clients (for example the Js SDK)",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/CreateNodesToken" : {
      "post" : {
        "operationId" : "CreateNodesToken",
        "x-required-scopes" : [ "tokens:issue" ],
        "summary" : "Create a new token, based on a set of Nodes",
        "description" : "A NodesToken gives access to a provided set of Nodes. This access does not recurse into sub Nodes. It does give access to any Version on any of the Nodes, at the time of creating the token, but also in the future.",
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CreateNodesTokenRequest",
                "type" : "object",
                "properties" : {
                  "expires_seconds" : {
                    "type" : "integer"
                  },
                  "node_uuids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "format" : "uuid"
                    }
                  },
                  "tasks" : {
                    "deprecated" : true,
                    "description" : "Deprecated - use scopes instead. Task-name allow-lists do not cover API calls added later and can name tasks that no longer exist.",
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  },
                  "scopes" : {
                    "description" : "Scopes granted to the token (preferred over tasks - scopes keep working when new API calls are added); the issued scopes can never exceed the issuing credential's scopes",
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/Scope"
                    }
                  },
                  "ip_addresses" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  },
                  "lock_to_called_ip" : {
                    "type" : "boolean"
                  },
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                },
                "required" : [ "expires_seconds", "node_uuids" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Generic auth response, which can be plugged into other clients (for example the Js SDK)",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/CreateRecursiveNodeToken" : {
      "post" : {
        "operationId" : "CreateRecursiveNodeToken",
        "x-required-scopes" : [ "tokens:issue" ],
        "summary" : "Create a new token, based on a Node",
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CreateRecursiveNodeTokenRequest",
                "type" : "object",
                "properties" : {
                  "expires_seconds" : {
                    "type" : "integer"
                  },
                  "node_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "tasks" : {
                    "deprecated" : true,
                    "description" : "Deprecated - use scopes instead. Task-name allow-lists do not cover API calls added later and can name tasks that no longer exist.",
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  },
                  "scopes" : {
                    "description" : "Scopes granted to the token (preferred over tasks - scopes keep working when new API calls are added); the issued scopes can never exceed the issuing credential's scopes",
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/Scope"
                    }
                  },
                  "ip_addresses" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    }
                  },
                  "lock_to_called_ip" : {
                    "type" : "boolean"
                  },
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                },
                "required" : [ "expires_seconds", "node_uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Generic auth response, which can be plugged into other clients (for example the Js SDK)",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/CreateNode" : {
      "post" : {
        "operationId" : "CreateNode",
        "x-required-scopes" : [ "fs:write" ],
        "summary" : "Create a new Node",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CreateNodeRequest",
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string"
                  },
                  "folder" : {
                    "type" : "boolean"
                  },
                  "input_file_type" : {
                    "$ref" : "#/components/schemas/InputFileType",
                    "description" : "The type of Node, when not provided it assumed to be FOLDER (when folder is true) or IFC (when folder is false)"
                  },
                  "parent_node_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node under which to create a new Node. When not specified this defaults to the Root Node of your current auth context"
                  },
                  "allow_existing" : {
                    "type" : "boolean",
                    "description" : "When true, no exception will be thrown in case the specified Node already exists, the existing Node will be returned. When false, an exception will be thrown when a Node with the given name already exists."
                  }
                },
                "required" : [ "name", "folder" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The new Node",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Node"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/GetRootNodeUuid" : {
      "get" : {
        "operationId" : "GetRootNodeUuid",
        "x-required-scopes" : [ "fs:read" ],
        "summary" : "Get the UUID of the current root Node. This depends on the API Token/Auth Token that is being used.",
        "tags" : [ "Fs" ],
        "responses" : {
          "200" : {
            "description" : "The UUID of the Root Node",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "string",
                  "format" : "uuid",
                  "description" : "The UUID of the Root Node"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/GetNode" : {
      "post" : {
        "operationId" : "GetNode",
        "x-required-scopes" : [ "fs:read" ],
        "summary" : "Get Node based on a given path, by its UUID or by the UUID of one of its Versions. A path is always relative to the Root Node of the used Token.",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetNodeRequest",
                "type" : "object",
                "properties" : {
                  "path" : {
                    "type" : "string",
                    "description" : "The path to the Node from the current Root Node. Use forward slashes to separate Nodes"
                  },
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to get information about"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of a Version (convenience method)"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "All information of the Node on this path",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Node"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/UpdateNode" : {
      "post" : {
        "operationId" : "UpdateNode",
        "x-required-scopes" : [ "fs:write" ],
        "summary" : "Update a Node",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UpdateNodeRequest",
                "type" : "object",
                "properties" : {
                  "path" : {
                    "type" : "string",
                    "description" : "The path to the Node from the current Root Node. Use forward slashes to separate Nodes"
                  },
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to get information about"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of a Version (convenience method)"
                  },
                  "name" : {
                    "type" : "string",
                    "description" : "A new name for the Node, optional"
                  },
                  "user_data" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "description" : "User defined data, optional"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The updated Node",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Node"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/GetVersion" : {
      "post" : {
        "operationId" : "GetVersion",
        "x-required-scopes" : [ "fs:read" ],
        "summary" : "Get a Version by its UUID",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetVersionRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Version to get"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Version information",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ModelVersion"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/ListNodes" : {
      "post" : {
        "operationId" : "ListNodes",
        "x-required-scopes" : [ "fs:read" ],
        "summary" : "Get a list of Nodes that are children of the given Node",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListNodesRequest",
                "type" : "object",
                "properties" : {
                  "path" : {
                    "type" : "string",
                    "description" : "The path to the Node from the current Root Node. Use forward slashes to separate Nodes"
                  },
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to get information about"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of a Version (convenience method)"
                  },
                  "show_deleted_nodes" : {
                    "type" : "boolean",
                    "description" : "Whether to also show deleted nodes (default: false). This feature is currently only available for SUPER_ADMIN users"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "All information of the sub Nodes of the provided Node",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Node"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/ListVersions" : {
      "post" : {
        "operationId" : "ListVersions",
        "x-required-scopes" : [ "fs:read" ],
        "summary" : "Get a list of all the Versions of the given Node, or the given Versions",
        "description" : "Name the Node with one of path, uuid and version_uuid (a Version of the Node), or pass version_uuids to get those Versions, which may belong to different Nodes. Each Version needs read rights.",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListVersionsRequest",
                "type" : "object",
                "properties" : {
                  "path" : {
                    "type" : "string",
                    "description" : "The path to the Node from the current Root Node. Use forward slashes to separate Nodes"
                  },
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to get information about"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of a Version (convenience method)"
                  },
                  "version_uuids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "format" : "uuid"
                    },
                    "description" : "The UUIDs of the Versions to get, from any Node, instead of a Node. The answer keeps their order"
                  }
                }
              },
              "examples" : {
                "VersionsOfANode" : {
                  "value" : {
                    "uuid" : "3f2b6a7e-1c4d-4e8f-9a0b-5c6d7e8f9a0b"
                  }
                },
                "GivenVersions" : {
                  "value" : {
                    "version_uuids" : [ "df8d817c-c78f-47f6-bcdc-645d7d7db9e9", "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb" ]
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "All information of the Versions of the given Node, or of the given Versions",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/ModelVersion"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/DeleteNode" : {
      "post" : {
        "operationId" : "DeleteNode",
        "x-required-scopes" : [ "fs:write" ],
        "summary" : "Delete a Node",
        "description" : "Deletes the given Node, named by uuid or by path. This is a soft delete, a deleted Node can be restored with UndeleteNode. The Root Node of the current token cannot be deleted. With if_exists a Node that does not exist is no error.",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DeleteNodeRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to delete. Pass uuid or path, not both"
                  },
                  "path" : {
                    "type" : "string",
                    "description" : "The path to the Node from the current Root Node, instead of uuid. Use forward slashes to separate Nodes"
                  },
                  "if_exists" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "When true, a Node that does not exist is no error and nothing is deleted"
                  }
                }
              },
              "examples" : {
                "ByUuid" : {
                  "value" : {
                    "uuid" : "3f2b6a7e-1c4d-4e8f-9a0b-5c6d7e8f9a0b"
                  }
                },
                "ByPathIfItExists" : {
                  "value" : {
                    "path" : "Projects/Old drafts",
                    "if_exists" : true
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The Node was deleted"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/UndeleteNode" : {
      "post" : {
        "operationId" : "UndeleteNode",
        "x-required-scopes" : [ "fs:write" ],
        "summary" : "Restore a previously deleted Node",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UndeleteNodeRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to restore"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The Node was restored"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/MoveNode" : {
      "post" : {
        "operationId" : "MoveNode",
        "x-required-scopes" : [ "fs:write" ],
        "summary" : "Move a Node to another parent folder",
        "description" : "Moves the given Node under a new parent Node. The target Node must be a folder. Renaming is done with UpdateNode.",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "MoveNodeRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to move"
                  },
                  "target_parent_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the folder Node to move the Node to"
                  }
                },
                "required" : [ "uuid", "target_parent_uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The moved Node",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Node"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/DeleteVersion" : {
      "post" : {
        "operationId" : "DeleteVersion",
        "x-required-scopes" : [ "fs:write" ],
        "summary" : "Delete a Version of a Node",
        "description" : "Only the last Version of a Node can be deleted, intermediate Versions must stay available.",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DeleteVersionRequest",
                "type" : "object",
                "properties" : {
                  "node_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node the Version belongs to"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Version to delete"
                  }
                },
                "required" : [ "node_uuid", "version_uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The Version was deleted"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/ListNodesRecursive" : {
      "post" : {
        "operationId" : "ListNodesRecursive",
        "x-required-scopes" : [ "fs:read" ],
        "summary" : "Get all Nodes below the given Node, recursively",
        "description" : "Returns the given Node and all Nodes below it. Use caution on large trees, there is no pagination.",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListNodesRecursiveRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to start from"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The Node and all Nodes below it",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Node"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/ListNodeErrors" : {
      "post" : {
        "operationId" : "ListNodeErrors",
        "x-required-scopes" : [ "fs:read" ],
        "summary" : "Get the errors of the given Node",
        "description" : "Model uploads are processed asynchronously. When processing fails, the resulting errors can be retrieved with this call. Errors are sorted oldest first.",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListNodeErrorsRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to get the errors of"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The errors of the given Node",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/ModelError"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/DownloadAsZip" : {
      "post" : {
        "operationId" : "DownloadAsZip",
        "x-required-scopes" : [ "model:read" ],
        "summary" : "Download a folder Node and everything below it as a ZIP file",
        "description" : "The ZIP file contains the original model files of the last Version of every Node below the given folder Node, with their tree paths as ZIP entry paths. With `format` `ZIP_ZST` the same ZIP comes compressed as a whole with zstd, a `.zip.zst` file.",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DownloadAsZipRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the folder Node to download"
                  },
                  "include_deleted" : {
                    "type" : "boolean",
                    "description" : "Whether to also include deleted Nodes (default: false)"
                  },
                  "format" : {
                    "type" : "string",
                    "enum" : [ "ZIP", "ZIP_ZST" ],
                    "default" : "ZIP",
                    "description" : "`ZIP` (default): a ZIP file whose entries are deflated, which every unzip tool opens. `ZIP_ZST`: the ZIP with its entries stored, compressed as a whole with zstd (`application/zstd`, file name `name.zip.zst`). Usually about a third smaller and several times faster to produce; `zstd -d` or 7-Zip turns it into the ZIP."
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The ZIP file, or with `format` `ZIP_ZST` the zstd-compressed ZIP file",
            "content" : {
              "application/zip" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/zstd" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/Download" : {
      "post" : {
        "operationId" : "Download",
        "x-required-scopes" : [ "model:read" ],
        "summary" : "Download the model of the given Version UUID, as uploaded or as IFC or ifcXML. In case you want to download only a subset of an IFC model, use ifc/query.",
        "description" : "`format` chooses what comes back; it wins over the Accept header, which is not read by this operation. `original`\n(the default) is the file as it was uploaded, byte for byte; `ifc` and `ifcxml` serialize the stored model, so\nthey work for any Version whose model parsed as IFC, whatever its upload encoding. With `error_uuid` instead of a\nmodel identifier the file of a failed upload comes back as it was uploaded.\n\nWith target_schema the model is converted to that IFC schema and the converted file is returned. The only\nsupported conversion is IFC2X3 to IFC4; every other conversion is refused with a message that names the supported\nones. A target schema that the model already has is no error, the model is then returned as without target_schema.\nThe objects of the converted file have the express ids and the GlobalIds of the source. What the conversion lost\nand what it added is counted in the response headers and listed by model/SchemaConversionReport. A conversion can\ntake minutes for a large model; the converted file is kept, so a second request is answered at once.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/DownloadRequest"
              },
              "examples" : {
                "DownloadVersion" : {
                  "value" : {
                    "type" : "VersionModelIdentifier",
                    "uuid" : "df8d817c-c78f-47f6-bcdc-645d7d7db9e9"
                  }
                },
                "DownloadVersionAsIfc4" : {
                  "value" : {
                    "type" : "VersionModelIdentifier",
                    "uuid" : "df8d817c-c78f-47f6-bcdc-645d7d7db9e9",
                    "target_schema" : "IFC4"
                  }
                },
                "DownloadVersionAsIfcXml" : {
                  "value" : {
                    "type" : "VersionModelIdentifier",
                    "uuid" : "df8d817c-c78f-47f6-bcdc-645d7d7db9e9",
                    "format" : "ifcxml"
                  }
                },
                "DownloadFailedUpload" : {
                  "value" : {
                    "error_uuid" : "0b9e7c6d-5a4f-4e3d-8c2b-1a0f9e8d7c6b"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The model file. Without target_schema byte-for-byte as it was uploaded, with target_schema the converted file",
            "headers" : {
              "X-BimWorks-Conversion-Status" : {
                "description" : "Only for a converted model. COMPLETED when nothing was lost, COMPLETED_WITH_LOSS when the conversion lost information",
                "schema" : {
                  "type" : "string",
                  "enum" : [ "COMPLETED", "COMPLETED_WITH_LOSS" ]
                }
              },
              "X-BimWorks-Conversion-From" : {
                "description" : "Only for a converted model. The schema of the model",
                "schema" : {
                  "type" : "string"
                }
              },
              "X-BimWorks-Conversion-To" : {
                "description" : "Only for a converted model. The schema of the returned file",
                "schema" : {
                  "type" : "string"
                }
              },
              "X-BimWorks-Conversion-Rule-Set" : {
                "description" : "Only for a converted model. The version of the conversion rules",
                "schema" : {
                  "type" : "integer"
                }
              },
              "X-BimWorks-Conversion-Losses" : {
                "description" : "Only for a converted model. The number of findings about information that was lost",
                "schema" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              },
              "X-BimWorks-Conversion-Additions" : {
                "description" : "Only for a converted model. The number of findings about information that was added",
                "schema" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              },
              "X-BimWorks-Conversion-Errors" : {
                "description" : "Only for a converted model. The number of findings with severity ERROR or higher",
                "schema" : {
                  "type" : "integer",
                  "format" : "int64"
                }
              },
              "X-BimWorks-Conversion-Validation" : {
                "description" : "Only with validate. VALID when the schema check of the converted file found nothing that the same check of the model did not find, else INVALID",
                "schema" : {
                  "type" : "string",
                  "enum" : [ "VALID", "INVALID" ]
                }
              }
            },
            "content" : {
              "application/ifc" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "An IFC STEP file, for format ifc and for an uploaded IFC with format original"
                }
              },
              "application/xml" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "An ifcXML file, for format ifcxml and for an uploaded ifcXML with format original"
                }
              },
              "application/e57" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/pdf" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/zip" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/SchemaConversionReport" : {
      "post" : {
        "operationId" : "SchemaConversionReport",
        "x-required-scopes" : [ "model:read" ],
        "summary" : "The log of a schema conversion",
        "description" : "What a schema conversion lost, added and changed. For a Version that was made by the statement CONVERT SCHEMA pass its identifier; for a converted download pass the identifier of the Version that was downloaded and the target_schema it was converted to. This call reads a log, it converts nothing; a conversion that was never made is not found. The report holds the summary, exact counters per rule and a capped number of findings per rule. Every single loss and addition is in the detail log, which is never capped.",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/SchemaConversionReportRequest"
              },
              "examples" : {
                "ReportOfAConvertedDownload" : {
                  "value" : {
                    "type" : "VersionModelIdentifier",
                    "uuid" : "df8d817c-c78f-47f6-bcdc-645d7d7db9e9",
                    "target_schema" : "IFC4"
                  }
                },
                "ReportAsMarkdown" : {
                  "value" : {
                    "type" : "VersionModelIdentifier",
                    "uuid" : "df8d817c-c78f-47f6-bcdc-645d7d7db9e9",
                    "target_schema" : "IFC4",
                    "format" : "markdown"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The conversion report in the requested format",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/SchemaConversionReportResponse"
                }
              },
              "text/markdown" : {
                "schema" : {
                  "type" : "string",
                  "description" : "The report as text, for format markdown"
                }
              },
              "application/zstd" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "The complete detail log, for format detail. One JSON object per line, compressed with zstd"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/DownloadIfcXml" : {
      "post" : {
        "operationId" : "DownloadIfcXml",
        "x-required-scopes" : [ "model:read" ],
        "deprecated" : true,
        "summary" : "Download the model of the given Version UUID serialized as ifcXML (deprecated, use Download with format ifcxml)",
        "description" : "Deprecated, Download with `format` `ifcxml` answers the same file; this operation will be removed in a later release. The stored model is converted on the fly, so this works for any Version whose model parsed as IFC, regardless of the encoding it was uploaded in. The ifcXML dialect follows the model's schema, ISO 10303-28 for IFC2X3 and ifcXML4 for IFC4/IFC4X3.",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ModelIdentifier"
              },
              "examples" : {
                "DownloadVersionAsIfcXml" : {
                  "value" : {
                    "type" : "VersionModelIdentifier",
                    "uuid" : "df8d817c-c78f-47f6-bcdc-645d7d7db9e9"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The model serialized as ifcXML",
            "content" : {
              "application/xml" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/Versions/{uuid}" : {
      "get" : {
        "operationId" : "Version",
        "x-required-scopes" : [ "fs:read" ],
        "deprecated" : true,
        "summary" : "The metadata of a Version by its UUID (deprecated, use GetVersion, or Download for the file)",
        "description" : "Deprecated, this operation will be removed in a later release. Earlier versions of this specification said it answers the file of the Version; it answers the Version's metadata as JSON, the same as GetVersion. For the file, use Download. The binary content types are listed only so that the Accept header of older generated clients still matches; the body is always the JSON.",
        "tags" : [ "Versions" ],
        "parameters" : [ {
          "name" : "uuid",
          "in" : "path",
          "required" : true,
          "description" : "The UUID of the Version",
          "schema" : {
            "type" : "string",
            "format" : "uuid"
          }
        } ],
        "responses" : {
          "200" : {
            "description" : "The metadata of this Version",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ModelVersion"
                }
              },
              "application/ifc" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/e57" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/pdf" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/zip" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/AddModelWithUrl" : {
      "post" : {
        "operationId" : "AddModelWithUrl",
        "x-required-scopes" : [ "model:upload" ],
        "summary" : "Add a new model by providing a URL",
        "description" : "The server fetches the file from `url` (within its egress policy) and checks it in under `node_uuid`.\nThe checkin (parsing, geometry, indexing) follows the upload, which is always waited for. Without `wait_ms` the call\nanswers when the checkin ends, with the new Version, which for a big model can take longer than a gateway waits.\nWith `wait_ms` it answers the Version when the checkin ends within that many milliseconds, and otherwise 202 with\nthe checkin's status and `job_uuid`: follow it with GetCheckin. A checkin still running after an hour answers 202\ntoo. A ZIP of models is checked in where it was received and has no job, so it always waits. The same file name in\nthe same folder adds a Version to that model.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "AddModelWithUrlRequest",
                "type" : "object",
                "description" : "Add model to the repository",
                "properties" : {
                  "node_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to which to add the model"
                  },
                  "path" : {
                    "type" : "string",
                    "description" : "Instead of node_uuid, the path of the folder, from the caller's root"
                  },
                  "filename" : {
                    "type" : "string",
                    "description" : "Name of the file; the last segment of the URL's path when absent"
                  },
                  "url" : {
                    "type" : "string",
                    "description" : "URL to get the model"
                  },
                  "input_file_type" : {
                    "$ref" : "#/components/schemas/InputFileType",
                    "description" : "The type of the model. When present and not UNKNOWN it wins over the filename extension - the route for correcting misnamed files or extension-less URLs"
                  },
                  "format_settings" : {
                    "$ref" : "#/components/schemas/PointCloudFormatSettings"
                  },
                  "force_reprocessing" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Process the file again, also when the server has processed the same file before"
                  },
                  "tags" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/VersionTag"
                    },
                    "description" : "Tags of the new Version"
                  },
                  "validation_settings" : {
                    "$ref" : "#/components/schemas/ValidationSettings"
                  },
                  "wait_ms" : {
                    "type" : "integer",
                    "format" : "int64",
                    "minimum" : 0,
                    "description" : "Answer 202 with the checkin's status when the checkin takes longer than this"
                  },
                  "force" : {
                    "$ref" : "#/components/schemas/UploadForce"
                  }
                },
                "required" : [ "url" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Upload was successful",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ModelVersion",
                  "description" : "The new Version that was created as the result of this upload"
                }
              }
            }
          },
          "202" : {
            "description" : "The checkin is still running (after wait_ms, or after an hour without it); follow it with GetCheckin",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CheckinStatus"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/UploadModel" : {
      "post" : {
        "operationId" : "UploadModel",
        "x-required-scopes" : [ "model:upload" ],
        "summary" : "Upload a single model using multipart/form-data",
        "description" : "Uploads a file into the folder `node_uuid` (the caller's own root when absent). When LookupModelHashes says the\nserver has the file already, send its `hash` instead of the `file` part: no bytes travel. A hash the server\ncannot use after all answers NO_STREAM (404); send the file then.\nThe checkin (parsing, geometry, indexing) follows the upload, which is always waited for. Without `wait_ms` the call\nanswers when the checkin ends, with the new Version, which for a big model can take longer than a gateway waits.\nWith `wait_ms` it answers the Version when the checkin ends within that many milliseconds, and otherwise 202 with\nthe checkin's status and `job_uuid`: follow it with GetCheckin. A checkin still running after an hour answers 202\ntoo. A ZIP of models is checked in where it was received and has no job, so it always waits. The same file name in\nthe same folder adds a Version to that model.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "type" : "object",
                "properties" : {
                  "file" : {
                    "type" : "string",
                    "format" : "binary",
                    "description" : "A single uploaded model"
                  },
                  "node_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Node to which to add the models"
                  },
                  "filename" : {
                    "type" : "string",
                    "description" : "Name of the file",
                    "default" : "model.ifc"
                  },
                  "filesize" : {
                    "type" : "integer",
                    "format" : "int64",
                    "default" : -1,
                    "description" : "Filesize in bytes"
                  },
                  "content_type" : {
                    "type" : "string",
                    "description" : "The content type. When available this information is taken from the Content-Type of the file part. Allowed values are application/ifc, application/xml (for .ifcxml files), application/pdf, application/e57"
                  },
                  "input_file_type" : {
                    "type" : "string",
                    "description" : "The type of the model (an InputFileType name). When present and not UNKNOWN it wins over the filename extension"
                  },
                  "format_settings" : {
                    "type" : "string",
                    "description" : "A JSON-encoded PointCloudFormatSettings object (multipart form fields are strings) with per-upload point cloud format options"
                  },
                  "hash" : {
                    "type" : "string",
                    "description" : "Instead of the file, its full_xxh64 (see ModelHash) when LookupModelHashes said the server knows it; ignored next to a file, which the server hashes itself. Needs filename"
                  },
                  "force_reprocessing" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Process the file again, also when the server has processed the same file before"
                  },
                  "tags" : {
                    "type" : "string",
                    "description" : "Tags of the new Version, comma-separated VersionTag names"
                  },
                  "validation_settings" : {
                    "type" : "string",
                    "description" : "A JSON-encoded ValidationSettings object"
                  },
                  "wait_ms" : {
                    "type" : "integer",
                    "format" : "int64",
                    "minimum" : 0,
                    "description" : "Answer 202 with the checkin's status when the checkin takes longer than this"
                  },
                  "force" : {
                    "type" : "string",
                    "description" : "An UploadForce: NONE, NEW_VERSION or NEW_MODEL"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Upload was successful",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ModelVersion",
                  "description" : "The new Version that was created as the result of this upload"
                }
              }
            }
          },
          "202" : {
            "description" : "The checkin is still running (after wait_ms, or after an hour without it); follow it with GetCheckin",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CheckinStatus"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "413" : {
            "$ref" : "#/components/responses/PayloadTooLargeError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/Query" : {
      "post" : {
        "operationId" : "Query",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "Query one or more IFC models",
        "description" : "Queries one or more models with BQL (BIM.works Query Language): the `query` text, or a stored query action\nby `action_uuid`. Running a stored query needs read rights on it, not actions:read.\n\n`format` chooses what comes back; it wins over the Accept header, which is only read when `format` is absent\n(`application/ifc`, `application/xml`, `text/csv` and the xlsx type then ask for those formats):\n\n- `json` (the default): one record per object (or group), with one field per `GET` column. A plain query\n  answers an array of records. With `compression: 1`, or a slice (`groupPath`, `groupKeys`), it answers an\n  object: the records under `objects` (or `groups`), the slice it addressed, and the compact tables.\n- `count`: `{count}`, the number of matching objects, without building records.\n- `qids`: `{qids: {<version uuid>: [oid, …]}}`, the matching objects as the selection the viewers take. Only\n  for a query whose result is plain objects (no `GROUP BY` other than the leaf of a slice, no aggregate, no\n  `ORDER BY`).\n- `csv` and `xlsx`: the records as a table, one column per `GET` feature.\n- `ifc` and `ifcxml`: the matching objects as an IFC STEP or an ifcXML model, with what they need to be\n  valid (their geometry, placement and spatial structure).\n\nAn empty `models` array validates the query instead of running it: the answer is\n`{messages: [{code, severity, line, column, message}]}`, empty for a clean query, whatever the format.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "QueryRequest",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    },
                    "description" : "Models to query, by Version or Node identifier (a Node stands for its latest Version). An empty model set validates the query instead"
                  },
                  "query" : {
                    "type" : "string",
                    "description" : "The query, in BQL. Pass either `query` or `action_uuid`"
                  },
                  "action_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "A stored query (BQL) action to run instead of `query`"
                  },
                  "action_version" : {
                    "type" : "integer",
                    "minimum" : 1,
                    "description" : "The version of the stored action to run; its current version when absent"
                  },
                  "format" : {
                    "type" : "string",
                    "enum" : [ "json", "count", "qids", "csv", "xlsx", "ifc", "ifcxml" ],
                    "description" : "Absent, the Accept header decides, and json when it names none of these. `json`: the records (`application/json`); `count`: `{count}` (`application/json`); `qids`: `{qids: {version uuid: [oid]}}` (`application/json`); `csv`: the records as a table (`text/csv`); `xlsx`: the same as a spreadsheet; `ifc`: the matching objects as IFC STEP (`application/ifc`); `ifcxml`: the same as ifcXML (`application/xml`). The IFC formats are a download of model content and also need the model:read scope"
                  },
                  "parameters" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "description" : "Values for the `$name` parameters of the query, by name. Every parameter of the query then needs a value. Not for formats ifc and ifcxml"
                  },
                  "virtual_features" : {
                    "description" : "The virtual features to apply (formats json, count, qids, csv and xlsx): `\"enabled\"` (the enabled definitions of the workspace the call works in: your default workspace, or the published workspace of a visitor), `\"none\"` (the default), an array of definition uuids, or an object `{apply, include, exclude}`"
                  },
                  "force_get_qid" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Format json; add the `qid` of each object to its record, also when the query does not `GET` it"
                  },
                  "columns" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Format json; answer an object instead of the bare array of a plain query: the records under `objects` and the columns table under `columns`, one entry per `GET` item with its alias, its text and where its value is in a record (QueryColumn). A compact (`compression: 1`) or sliced answer is an object already and always carries `columns`"
                  },
                  "alias_keys" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Format json; put values under their `AS` aliases, as before 3.0: an aliased attribute, property, quantity, calculated value, relation or model field is written at a root key named after its alias, and an aliased computed column (aggregate, arithmetic, shape, ...) under its alias. By default an alias only names its column (see `columns`) and every value stays where it is without one. For clients written against the old placement; read values through `columns` instead"
                  },
                  "filename" : {
                    "type" : "string",
                    "description" : "The file name of the Content-Disposition, for the formats csv, xlsx, ifc and ifcxml"
                  },
                  "colors" : {
                    "$ref" : "#/components/schemas/QidColors",
                    "description" : "Formats ifc and ifcxml; the objects' colours, written as IfcStyledItems"
                  },
                  "bvl" : {
                    "type" : "string",
                    "description" : "Formats ifc and ifcxml, instead of colors; a BVL text: the export keeps the selected objects it shows (begin it with `SHOW;` to keep them all) and writes the colours it gives them"
                  },
                  "compression" : {
                    "type" : "integer",
                    "enum" : [ 0, 1 ],
                    "default" : 0,
                    "description" : "Output format of the JSON results. 0 (default): plain output, each object contains readable values such as qid and type. 1: compact output, version UUIDs and entity types are returned once in top-level vids/types arrays, and objects reference them by index (_v/_t) with _o as the object id. Only use 1 when you explicitly want the compact format, for example to reduce response size"
                  },
                  "groupPath" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "type" : "integer",
                      "minimum" : 0
                    },
                    "description" : "Slice mode for queries with a (multi-key) GROUP BY. Each entry addresses one group per nesting level, as an index into that level's groups (sorted by group key value). An empty array returns the level-0 groups. When entries remain below the addressed path, the response contains the next level's groups in a top-level \"groups\" array (same record shape as regular grouped results, plus \"groupKey\" and \"groupValue\" columns carrying the group's own key and display value); when the path consumes all group keys, the member objects of the addressed group are returned in \"objects\". Objects without a value for a level's group feature are grouped under a synthetic \"[none]\" group at that level, so every level fully partitions its parent. Group indices are stable for an identical model set and query. Without groupPath, a multi-key GROUP BY returns flat records, one per non-empty key combination (including [none] combinations), ordered by key 1, then key 2, etc."
                  },
                  "groupKeys" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "The same slice as groupPath, addressed by value instead of by index - the `groupKey` of one group per level, as the slice records carry it. A key still names its group after the models change. Pass groupPath or groupKeys, not both"
                  },
                  "groupLevel" : {
                    "type" : "integer",
                    "minimum" : 0,
                    "description" : "Optional validation aid for groupPath and groupKeys: must equal the number of their entries (the nesting level of the returned groups)"
                  }
                }
              },
              "examples" : {
                "queryOnVersion" : {
                  "summary" : "Execute a query on a model defined by it's Version UUID",
                  "value" : {
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "name" : "My model name",
                      "uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb"
                    } ],
                    "query" : "GET attribute.GlobalId, attribute.Name WHERE type = IFCWALL AND property.*.IsExternal = true"
                  }
                },
                "countWithParameter" : {
                  "summary" : "Count the walls of one storey, the storey as a parameter",
                  "value" : {
                    "models" : [ {
                      "type" : "NodeModelIdentifier",
                      "uuid" : "0f1e2d3c-4b5a-4968-8776-655443322110"
                    } ],
                    "query" : "GET qid WHERE type = IFCWALL AND buildingStorey.attribute.Name = $storey",
                    "parameters" : {
                      "storey" : "01 First floor"
                    },
                    "format" : "count"
                  }
                },
                "storedQueryAsQids" : {
                  "summary" : "The objects of a stored query, as a selection",
                  "value" : {
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb"
                    } ],
                    "action_uuid" : "5e4d3c2b-1a09-4f8e-9d7c-6b5a49382716",
                    "format" : "qids"
                  }
                },
                "tableAsSpreadsheet" : {
                  "summary" : "The doors with their sizes, as a spreadsheet",
                  "value" : {
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb"
                    } ],
                    "query" : "GET attribute.Name, quantity.Qto_DoorBaseQuantities.Width, quantity.Qto_DoorBaseQuantities.Height WHERE type = IFCDOOR",
                    "format" : "xlsx",
                    "filename" : "doors.xlsx"
                  }
                },
                "selectionAsIfc" : {
                  "summary" : "The external walls as an IFC file",
                  "value" : {
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb"
                    } ],
                    "query" : "GET qid WHERE type = IFCWALL AND property.*.IsExternal = true",
                    "format" : "ifc",
                    "filename" : "external-walls.ifc"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Query results in the requested format",
            "content" : {
              "application/json" : {
                "schema" : {
                  "description" : "Format json: the BIM.works query results JSON. A plain query answers an array of records with readable values; with `columns: true` it answers {objects, columns}, columns being an array of QueryColumn. With compression 1 the records reference top-level vids/types arrays by index, and columns is there too. With groupPath or groupKeys the response echoes the slice and groupLevel, and the records are under \"groups\" (the next level's groups) or \"objects\" (the member objects, when the slice consumed all group keys). Format count: {count}. Format qids: {qids}. An empty models array: {messages}"
                }
              },
              "text/csv" : {
                "schema" : {
                  "description" : "Format csv, the records as a table",
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : {
                "schema" : {
                  "description" : "Format xlsx, the records as a spreadsheet",
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/ifc" : {
                "schema" : {
                  "description" : "Format ifc, the matching objects as an IFC STEP model",
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/xml" : {
                "schema" : {
                  "description" : "Format ifcxml, the matching objects as an ifcXML model (dialect follows the models' schema)",
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/Check" : {
      "post" : {
        "operationId" : "Check",
        "x-required-scopes" : [ "checks:run" ],
        "summary" : "Check one or more models",
        "description" : "Checks one or more models against an IDS definition (XML), a BCL definition (BIM.works Checking Language) or a\nstored check action. Pass exactly one of `ids`, `bcl` and `action_uuid`. A stored action is an IDS or a BCL\n(CHECK3) action; running it needs read rights on it, not actions:read.\n\n`format` chooses what comes back; it wins over the Accept header, which is only read when `format` is\nabsent (`Accept: application/bcf` then asks for `bcf`). `json` (the default) is every checked object with\nits result, `summary` only the counts, and `bcf` the results as a BCF ZIP file. A run with the same\ndefinition on the same Versions is served from the cache; with other `parameters` it is another run.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CheckRequest",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    },
                    "description" : "Models to check. Passing an empty model set is also valid, and allows you to validate your model check definition"
                  },
                  "ids" : {
                    "type" : "string",
                    "description" : "An IDS definition (XML)"
                  },
                  "bcl" : {
                    "type" : "string",
                    "description" : "A BIM.works Checking Language (BCL) definition"
                  },
                  "action_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "A stored IDS or BCL check action to run instead of `ids` or `bcl`"
                  },
                  "action_version" : {
                    "type" : "integer",
                    "minimum" : 1,
                    "description" : "The version of the stored action to run; its current version when absent"
                  },
                  "format" : {
                    "type" : "string",
                    "enum" : [ "json", "summary", "bcf" ],
                    "description" : "Absent, the Accept header decides, and json when it names none of these. `json`: the model mapping and every checked object with its result (`application/json`); `summary`: the model mapping and the counts per result (`application/json`); `bcf`: the results as a BCF ZIP file (`application/bcf`)"
                  },
                  "parameters" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "description" : "Values for the `$name` parameters of a BCL check (`bcl`, or a stored BCL action), by name. Every parameter of the check then needs a value. Not for an IDS"
                  }
                },
                "required" : [ "models" ]
              },
              "examples" : {
                "IdsCheck" : {
                  "summary" : "Check against an IDS definition",
                  "value" : {
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "uuid" : "7a6f8454-2b1c-4d3e-9f80-1a2b3c4d5e6f"
                    } ],
                    "ids" : "<ids xmlns=\"http://standards.buildingsmart.org/IDS\">…</ids>"
                  }
                },
                "StoredCheckSummary" : {
                  "summary" : "The counts of a stored check action",
                  "value" : {
                    "models" : [ {
                      "type" : "NodeModelIdentifier",
                      "uuid" : "0f1e2d3c-4b5a-4968-8776-655443322110"
                    } ],
                    "action_uuid" : "5e4d3c2b-1a09-4f8e-9d7c-6b5a49382716",
                    "format" : "summary"
                  }
                },
                "BclCheckAsBcf" : {
                  "summary" : "A BCL check as a BCF file",
                  "value" : {
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "uuid" : "7a6f8454-2b1c-4d3e-9f80-1a2b3c4d5e6f"
                    } ],
                    "bcl" : "select (type = IFCDOOR) {\n    name \"Doors are fully quantified\"\n    require quantity.Qto_DoorBaseQuantities.Width != null;\n    require quantity.Qto_DoorBaseQuantities.Height != null;\n}\n",
                    "format" : "bcf"
                  }
                },
                "BclCheckWithParameters" : {
                  "summary" : "A BCL check with parameters",
                  "value" : {
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "uuid" : "7a6f8454-2b1c-4d3e-9f80-1a2b3c4d5e6f"
                    } ],
                    "bcl" : "select (type = IFCWALL) {\n    name \"Walls are rated\"\n    require property.Pset_WallCommon.FireRating IN $ratings;\n}\n",
                    "parameters" : {
                      "ratings" : [ "EI 60", "EI 90" ]
                    },
                    "format" : "summary"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The check results in the requested format",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CheckResultsResponse"
                }
              },
              "application/bcf" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "The check results as a BCF ZIP file, for format bcf"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/ResolveBvl" : {
      "post" : {
        "operationId" : "ResolveBvl",
        "x-required-scopes" : [ "actions:read" ],
        "summary" : "Resolve a BVL script to what it shows, hides, selects and colours",
        "description" : "Runs a BVL (BIM.works Visualisation Language) script against one or more models and returns its effect, ready\nfor a viewer: the objects to show, hide, select and fit, the colour per object, the labels and the annotations.\nThe server evaluates every condition of the script (each one is a BQL expression); the client only applies the\nanswer, in the JavaScript SDK with `new BvlHelper(objectStateManager, viewer).processResults([answer])` of\n`@bimworks/viewercommon`.\n\nEvery object set in the answer is a QidSet: an object of version UUID to an array of object ids (oids), so\n`{\"7a6f8454-…\": [12, 40]}` holds the objects `7a6f8454-…-12` and `7a6f8454-…-40`. Nothing is changed in the\nmodels.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ResolveBvlRequest",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    },
                    "description" : "The models to resolve the script against. Version and Node identifiers (a Node stands for its latest Version); a URL identifier is refused"
                  },
                  "bvl" : {
                    "type" : "string",
                    "description" : "The BVL script"
                  },
                  "parameters" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "description" : "Values for the `$name` parameters of the script, by name"
                  },
                  "include_non_geometric" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Whether the script also applies to products without geometry. By default it applies to the objects with geometry only, the ones a viewer can draw, so an `else { HIDE; }` does not name every product without geometry. `model_coverage` counts those products either way"
                  }
                },
                "required" : [ "models", "bvl" ]
              },
              "examples" : {
                "externalWalls" : {
                  "summary" : "Colour the external walls red and frame them",
                  "value" : {
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb"
                    } ],
                    "bvl" : "if (type = IFCWALL AND property.*.IsExternal = true) { COLOR \"red\" VIEWFIT; }"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The resolved actions",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ResolvedActions"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/CompareModels" : {
      "post" : {
        "operationId" : "CompareModels",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "Compare two models with a BCOL definition",
        "description" : "Compares two models (usually two Versions of one Node, left the older one) and returns what was added,\nremoved, changed and unchanged, by the categories of a BCOL (BIM.works Compare Language) definition: the\nbuilt-in Default, another built-in definition, a stored compare action, or BCOL text.\n\nObjects are paired first: by object id when one Version descends from the other through edits, otherwise\nby the definition's keys (the Default: `attribute.GlobalId`). The pairs are then judged by the definition's\nrules and watch lists, geometry included (translation, rotation, scale, shape).\n\nThe result is stored and identified by `result_uuid`; the same request is answered from the store until a\nside is reindexed (`cached` is true), and GetCompareResult reads it again, page by page. Records exist for\nadded, removed and changed objects only; unchanged pairs are in the object sets. The `layers` carry the\nresolved BVL styling of every category and side, ready for a viewer.\n\nWith `options.wait_ms` the call waits at most that long: a compare still running answers 202 with\n`result_uuid` and `status: RUNNING`, and goes on in the background.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CompareModelsRequest",
                "type" : "object",
                "properties" : {
                  "left" : {
                    "$ref" : "#/components/schemas/CompareSide"
                  },
                  "right" : {
                    "$ref" : "#/components/schemas/CompareSide"
                  },
                  "bcol" : {
                    "type" : "string",
                    "description" : "A BCOL definition. When neither bcol, bcol_json, definition nor action_uuid is given, the built-in Default is used"
                  },
                  "bcol_json" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "description" : "A BCOL definition as JSON, the V3 envelope {\"lang\": \"bcol\", \"version\": \"3\", \"definition\": {...}}: the structure as JSON, conditions, features and styles as BQL and BVL text. Its JSON Schema (2020-12) is https://bim.works/schemas/bcol/v3 (ApiSpec/src/schemas/bcol-v3.schema.json). An error is reported at its JSON path"
                  },
                  "definition" : {
                    "type" : "string",
                    "enum" : [ "default", "everything", "inventory", "geometry" ],
                    "description" : "A built-in definition"
                  },
                  "action_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "A stored compare (BCOL) action"
                  },
                  "action_version" : {
                    "type" : "integer",
                    "description" : "The version of the stored action; default its current version"
                  },
                  "options" : {
                    "$ref" : "#/components/schemas/CompareOptions"
                  }
                },
                "required" : [ "left", "right" ]
              },
              "examples" : {
                "versions" : {
                  "summary" : "Two Versions of a Node with the built-in Default",
                  "value" : {
                    "left" : {
                      "models" : [ {
                        "type" : "VersionModelIdentifier",
                        "uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb"
                      } ]
                    },
                    "right" : {
                      "models" : [ {
                        "type" : "VersionModelIdentifier",
                        "uuid" : "3f8f1c2a-6d4e-4b8a-9c1d-2e5f7a8b9c0d"
                      } ]
                    }
                  }
                },
                "walls" : {
                  "summary" : "Only the walls, by name and geometry, summary only",
                  "value" : {
                    "left" : {
                      "models" : [ {
                        "type" : "VersionModelIdentifier",
                        "uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb"
                      } ]
                    },
                    "right" : {
                      "models" : [ {
                        "type" : "VersionModelIdentifier",
                        "uuid" : "3f8f1c2a-6d4e-4b8a-9c1d-2e5f7a8b9c0d"
                      } ]
                    },
                    "bcol" : "WHERE type = IFCWALL;\ncompare (attribute.Name, geometry WITHIN 1 mm);\n",
                    "options" : {
                      "details" : "summary"
                    }
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The compare result, at the requested detail level",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CompareResult"
                }
              }
            }
          },
          "202" : {
            "description" : "The compare is still running after `wait_ms`; read it later with GetCompareResult",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CompareResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/GetCompareResult" : {
      "post" : {
        "operationId" : "GetCompareResult",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "Read a stored compare result",
        "description" : "Reads a result of CompareModels by its `result_uuid`, at a detail level and a page of its records, or its\nstatus while it is computed. Requires read access to both sides, and the same feature visibility as the\ncaller that computed it (otherwise compare the models again).\n\n`format` chooses what comes back; it wins over the Accept header, which is only read when `format` is\nabsent. `json` (the default) is the paged result above. The other formats are the whole result as a file:\n`document` is the result as one JSON document, `xlsx` has a Summary sheet (the categories with their counts,\nthe statistics, the warnings) and a Changes sheet (one row per added, removed and changed object, with what\nthe definition reports of both sides and every changed feature with its two values and their difference),\n`csv` is the Changes sheet, and `bcf` is BCF 3.0 with one topic per added, removed or changed object (at\nmost 1,000). `categories` limits a file to the records of those categories. While the result is still\ncomputed, a file format answers 202 with the status.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetCompareResultRequest",
                "type" : "object",
                "properties" : {
                  "result_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The result, as CompareModels answered it"
                  },
                  "details" : {
                    "type" : "string",
                    "enum" : [ "summary", "objects", "changes", "full" ],
                    "default" : "full",
                    "description" : "How much of the result to return"
                  },
                  "layers" : {
                    "type" : "boolean",
                    "default" : true,
                    "description" : "Whether `full` includes the layers"
                  },
                  "category" : {
                    "type" : "string",
                    "description" : "Only the records of this category (an id from `summary.categories`)"
                  },
                  "offset" : {
                    "type" : "integer",
                    "minimum" : 0,
                    "default" : 0,
                    "description" : "The first record of the page"
                  },
                  "limit" : {
                    "type" : "integer",
                    "minimum" : 1,
                    "maximum" : 10000,
                    "default" : 1000,
                    "description" : "The number of records in the page"
                  },
                  "format" : {
                    "type" : "string",
                    "enum" : [ "json", "document", "xlsx", "csv", "bcf" ],
                    "description" : "Absent, the Accept header decides, and json when it names none of these. `json`: the paged result (`application/json`); `document`: the whole result as one JSON document (`application/json`); `xlsx`: a Summary and a Changes sheet; `csv`: the Changes sheet (`text/csv`); `bcf`: BCF 3.0, one topic per added, removed or changed object (`application/bcf`)"
                  },
                  "categories" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "For the file formats, only the records of these categories (ids from summary.categories)"
                  }
                },
                "required" : [ "result_uuid" ]
              },
              "examples" : {
                "PagedResult" : {
                  "value" : {
                    "result_uuid" : "4d1f2a3b-5c6d-4e7f-8a9b-0c1d2e3f4a5b",
                    "details" : "changes",
                    "limit" : 100
                  }
                },
                "AsSpreadsheet" : {
                  "value" : {
                    "result_uuid" : "4d1f2a3b-5c6d-4e7f-8a9b-0c1d2e3f4a5b",
                    "format" : "xlsx"
                  }
                },
                "ChangedObjectsAsBcf" : {
                  "value" : {
                    "result_uuid" : "4d1f2a3b-5c6d-4e7f-8a9b-0c1d2e3f4a5b",
                    "format" : "bcf",
                    "categories" : [ "changed" ]
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The result in the requested format, or for format json its status while it is computed",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CompareResult"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "The result as a spreadsheet, for format xlsx"
                }
              },
              "text/csv" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "The Changes sheet, for format csv"
                }
              },
              "application/bcf" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "The result as BCF 3.0, for format bcf"
                }
              }
            }
          },
          "202" : {
            "description" : "For a file format, the result is still computed; the body is its status, as format json answers it",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CompareResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/GetVersionChanges" : {
      "post" : {
        "operationId" : "GetVersionChanges",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "What changed in Versions since the Versions before them",
        "description" : "The counts of the built-in Default compare of each Version with the Version before it on its Node (the\nhighest version number below it among the Node's live, processed IFC Versions): added, removed, changed,\nunchanged and ignored objects. New uploads are compared automatically when the server has\n`compare.auto_on_upload` on. A Version nothing compared yet is compared now, in the background (`pending`),\nunless `only_stored` asks for stored results only. Read the full result with GetCompareResult or map\nobjects with MapQids.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetVersionChangesRequest",
                "type" : "object",
                "properties" : {
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "One Version"
                  },
                  "version_uuids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "format" : "uuid"
                    },
                    "maxItems" : 200,
                    "description" : "Several Versions"
                  },
                  "only_stored" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Answer from stored results only; compute nothing"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Per Version its changes; for a single version_uuid the fields of that Version are also at the top level",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/VersionChangesResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/ListComparePairOverrides" : {
      "post" : {
        "operationId" : "ListComparePairOverrides",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "The pairs fixed by hand for two Versions",
        "description" : "The objects a user linked as one object, and the objects a user confirmed as really removed or added. Every compare of the two Versions uses them. Needs read rights on both Versions.",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListComparePairOverridesRequest",
                "type" : "object",
                "required" : [ "left_version_uuid", "right_version_uuid" ],
                "properties" : {
                  "left_version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "right_version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The overrides, oldest first",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ComparePairOverrides"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/SetComparePairOverride" : {
      "post" : {
        "operationId" : "SetComparePairOverride",
        "x-required-scopes" : [ "model:write" ],
        "summary" : "Fix a pair by hand for two Versions",
        "description" : "Links two objects as one object (the manual matcher pairs them before every other matcher), or confirms that an object really was removed or added (no matcher pairs it). Every compare of the two Versions uses it from then on; a stored result made before is computed again. An earlier override of either object is replaced. Needs read rights on both Versions and write rights on the right one.",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "SetComparePairOverrideRequest",
                "type" : "object",
                "required" : [ "left_version_uuid", "right_version_uuid", "kind" ],
                "properties" : {
                  "left_version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "right_version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "kind" : {
                    "type" : "string",
                    "enum" : [ "pair", "removed", "added" ]
                  },
                  "left_oid" : {
                    "type" : "integer",
                    "description" : "The left object (pair, removed)"
                  },
                  "right_oid" : {
                    "type" : "integer",
                    "description" : "The right object (pair, added)"
                  },
                  "note" : {
                    "type" : "string"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The new override and every override of the two Versions",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ComparePairOverrideSet"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/DeleteComparePairOverride" : {
      "post" : {
        "operationId" : "DeleteComparePairOverride",
        "x-required-scopes" : [ "model:write" ],
        "summary" : "Take a pair fixed by hand away again",
        "description" : "Needs read rights on both Versions and write rights on the right one.",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DeleteComparePairOverrideRequest",
                "type" : "object",
                "required" : [ "uuid" ],
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "What the two Versions still have",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ComparePairOverrides"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/GetMatchCandidates" : {
      "post" : {
        "operationId" : "GetMatchCandidates",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "The added objects that could be a removed object",
        "description" : "For the review of a stored compare's unmatched objects. Per removed object the added objects that could be it, best first by the geometric matcher's cost (the distance between the box centres, the size, the type, the name). Objects a user confirmed are listed apart.",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetMatchCandidatesRequest",
                "type" : "object",
                "required" : [ "result_uuid" ],
                "properties" : {
                  "result_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "left_oids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "integer"
                    },
                    "description" : "Only these removed objects (a compare of two Versions)"
                  },
                  "left_qids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "Only these removed objects, as qids; also for a compare of federations"
                  },
                  "limit" : {
                    "type" : "integer",
                    "minimum" : 1,
                    "maximum" : 20,
                    "default" : 5,
                    "description" : "Candidates per object"
                  },
                  "radius_mm" : {
                    "type" : "number",
                    "default" : 10000,
                    "description" : "How far a candidate may be"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The removed objects with their candidates, the added objects, and what was confirmed",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/MatchCandidates"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/GetCompareBul" : {
      "post" : {
        "operationId" : "GetCompareBul",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "The changes between two Versions as BUL",
        "description" : "The changes of a compare of two Versions written as BUL statements on the left Version, verified by a dry run\nof that Version, and the changes BUL cannot write, each with the reason. Values carry their IFC type\n(`IFCPOSITIVELENGTHMEASURE(1200 mm)`), moves and rotations become TRANSFORM statements, removed objects\nDELETE OBJECT; added objects, materials, relations and changed shapes are never BUL. The compare compares\nevery value exactly and is stored like any other; the BUL is made once per compare result and kept with it.\n`record` says whether the right Version, an upload, can be replaced by a transaction with these changes\n(RecordUploadAsTransaction).\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetCompareBulRequest",
                "type" : "object",
                "required" : [ "left_version_uuid", "right_version_uuid" ],
                "properties" : {
                  "left_version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The older Version, which the statements address"
                  },
                  "right_version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The statements, the residual, the coverage and whether the upload can be recorded",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CompareBul"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/RecordUploadAsTransaction" : {
      "post" : {
        "operationId" : "RecordUploadAsTransaction",
        "x-required-scopes" : [ "model:write" ],
        "summary" : "Replace an upload by a transaction with the same changes",
        "description" : "Records an uploaded Version as a transaction on the Version before it: the BUL of GetCompareBul is committed\non the previous Version, and the upload is deleted the way deleting the last Version does (a soft delete:\nits data stays). The new Version takes the upload's place and number, keeps the previous Version's object ids,\nand so keeps the history of every object and what refers to it. Only for the last Version of its Node, made\nby an upload, with a previous Version, when every change of the two is in the BUL (`record.possible` of\nGetCompareBul). Needs write rights on the Node and the user feature BUL (Model editing); without the\nfeature the call answers 403 USER_FEATURE_REQUIRED.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "RecordUploadAsTransactionRequest",
                "type" : "object",
                "required" : [ "version_uuid" ],
                "properties" : {
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The upload to replace"
                  },
                  "comment" : {
                    "type" : "string",
                    "description" : "The transaction's comment; by default one that names the uploaded file"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The committed transaction, the Node with its new Version, and the replaced upload",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/RecordUploadAsTransactionResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "409" : {
            "description" : "The upload is no longer the last Version of its Node"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/MapQids" : {
      "post" : {
        "operationId" : "MapQids",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "Map objects of one Version to their counterparts in another",
        "description" : "The correspondence of a compare, for re-pointing stored object references after a new Version: every asked\nobject of `from_version` with its counterpart in `to_version`, and the asked objects without one (added,\nremoved, or outside the compare). Without `via` the built-in Default compare of the two Versions is used: a\nstored one in either direction (the automatic compare of an upload is one), else a new one.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "MapQidsRequest",
                "type" : "object",
                "properties" : {
                  "from_version" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "to_version" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "qids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "Objects of from_version as qids (Version uuid, a dash, the object id)"
                  },
                  "oids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "integer"
                    },
                    "description" : "Objects of from_version as object ids"
                  },
                  "all" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Every matched object"
                  },
                  "via" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The result_uuid of a compare of the two Versions to read"
                  }
                },
                "required" : [ "from_version", "to_version" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The pairs, aligned, and the unmatched objects",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/MapQidsResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/CompareObjects" : {
      "post" : {
        "operationId" : "CompareObjects",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "Compare two chosen objects",
        "description" : "Compares two objects as one pair, whatever matching would say: of one model or of two. By default with the\nbuilt-in `everything` definition. The answer says what differs (`changed_features` and `changes`, in the shape\nof a compare record) and what the definition watches.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CompareObjectsRequest",
                "type" : "object",
                "properties" : {
                  "left" : {
                    "type" : "string",
                    "description" : "The first object, as a qid"
                  },
                  "right" : {
                    "type" : "string",
                    "description" : "The second object, as a qid"
                  },
                  "bcol" : {
                    "type" : "string",
                    "description" : "A BCOL definition"
                  },
                  "definition" : {
                    "type" : "string",
                    "enum" : [ "default", "everything", "inventory", "geometry" ],
                    "default" : "everything",
                    "description" : "A built-in definition"
                  }
                },
                "required" : [ "left", "right" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "What differs between the two objects",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CompareObjectsResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/ExportCompareResult" : {
      "post" : {
        "operationId" : "ExportCompareResult",
        "x-required-scopes" : [ "query:run" ],
        "deprecated" : true,
        "summary" : "Download a stored compare result (deprecated, use GetCompareResult with a format)",
        "description" : "Deprecated: GetCompareResult with `format` (`document` for this operation's `json`) answers the same files,\nand a 202 with the status while the result is computed. This operation will be removed in a later release.\n\nA stored compare result as a file: `xlsx` has a Summary sheet (the categories with their counts, the\nstatistics, the warnings) and a Changes sheet (one row per added, removed and changed object, with what the\ndefinition reports of both sides and every changed feature with its two values and their difference), `csv`\nis the Changes sheet, `json` the whole result document.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ExportCompareResultRequest",
                "type" : "object",
                "properties" : {
                  "result_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "format" : {
                    "type" : "string",
                    "enum" : [ "xlsx", "csv", "json", "bcf" ],
                    "default" : "xlsx",
                    "description" : "xlsx: a Summary and a Changes sheet; csv: the Changes sheet; json: the whole result; bcf: BCF 3.0, one topic per added, removed or changed object (at most 1,000)"
                  },
                  "categories" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "Only the records of these categories (ids from summary.categories)"
                  }
                },
                "required" : [ "result_uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The file",
            "content" : {
              "application/octet-stream" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/CommitTransaction" : {
      "post" : {
        "operationId" : "CommitTransaction",
        "x-required-scopes" : [ "model:write" ],
        "summary" : "Commit a BUL transaction against the head Version of a Node, producing a new Version",
        "description" : "Applies one or more BUL (BIM.works Update Language) statements to the given Version and creates a new\nVersion on the same Node. The given Version must be the head (latest) Version of its Node: history is\nlinear, and committing against an older Version fails with 409. The commit is atomic (either the complete\nnew Version is created, or nothing is) and synchronous: the new Version is ready when the call returns.\n\nStatements: `SET <feature> = <value>, ... WHERE <bql>`, `DEL <feature>, ... WHERE <bql>`,\n`DELETE OBJECT WHERE <bql>`, and `TRANSFORM MOVE(x, y, z) ROTATE(AXIS(x, y, z), angle, PIVOT(x, y, z))\nWHERE <bql>` — a rigid world-space move and/or rotate of the matched products' placements\n(coordinates default to mm with an optional length unit, angles in degrees; at least one of MOVE/ROTATE\nis required, the PIVOT defaults to each object's placement origin). Objects placed relative to a\ntransformed object move with it.\n\nThe value of a SET is a literal, or a feature of each object, `SET quantity.BaseQuantities.NetVolume =\ncalculated.quantity.netVolume WHERE ...`: read per object from the given Version (never from what an\nearlier statement of the transaction wrote) and converted like a literal with its unit; an object without\nthat value is left alone.\n\n`GEOREFERENCE CRS \"EPSG:<code>\" ORIGIN (e, n, h) XAXIS (abscissa, ordinate) | ROTATION <degrees>\n[GRIDSCALE g] [CRSDESCRIPTION \"...\"] [GEODETICDATUM \"...\"] [VERTICALDATUM \"...\"] [MAPPROJECTION \"...\"]\n[MAPZONE \"...\"]` writes the model's georeference into its IFC data: an IfcMapConversion with an\nIfcProjectedCRS (map unit the CRS's own, usually the metre) on the 3D 'Model' context, created or overwritten. ORIGIN is the map\nposition of the model's origin, in metres unless a length unit is given; XAXIS is the direction of the\nmodel's X axis in the map, ROTATION the same as an angle counter-clockwise from east. The CRS must be a\nprojected EPSG system (a system in feet gets a foot map unit), and the model IFC4 or later (convert an IFC2X3 model with `CONVERT\nSCHEMA TO IFC4` first). The new Version's stored geo reference is computed from the written conversion.\n`GEOREFERENCE REMOVE` deletes the conversion. Neither takes a WHERE.\n\nWith `dry_run: true` the statements are resolved and applied in memory only. Nothing is persisted, and the\nresponse reports per update how many objects the WHERE clause matches and how many of those would actually\nchange (a SET to a value an object already has is matched but not changed). Dry runs work against any\nVersion, not only the head; `is_head` in the response tells whether a real commit would be accepted.\nWith `include_oids: true` as well, every update also names its statement (`statement_index`,\n`statement_lines`) and the objects themselves: `matched_oids` and `changed_oids`, for showing them before\ncommitting.\n\nRequires write access to the Node. For scoped tokens, the token's tasks must include `CommitTransaction`.\nEvery statement other than `CONVERT SCHEMA` and `GEOREFERENCE` also needs the user feature BUL (Model\nediting), dry runs included: without it the call answers 403 USER_FEATURE_REQUIRED.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CommitTransactionRequest",
                "type" : "object",
                "properties" : {
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The UUID of the Version to apply the transaction to. Must be the head Version of its Node (dry runs excepted)"
                  },
                  "bul" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "minItems" : 1,
                    "description" : "The BUL statements to apply, in order, as one atomic transaction"
                  },
                  "comment" : {
                    "type" : "string",
                    "description" : "A description of the intent of the transaction, stored with the transaction and shown in the Version history"
                  },
                  "dry_run" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "When true, the updates are resolved and applied in memory only and the response reports what a commit would do, without persisting anything"
                  },
                  "include_oids" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Dry run only. When true, every update in the response also carries statement_index, statement_lines, matched_oids and changed_oids"
                  }
                },
                "required" : [ "version_uuid", "bul" ]
              },
              "examples" : {
                "commit" : {
                  "summary" : "Commit a rename of all doors",
                  "value" : {
                    "version_uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb",
                    "bul" : [ "SET attribute.Name = \"Standard door\" WHERE type = IFCDOOR" ],
                    "comment" : "Normalize door names"
                  }
                },
                "dryRun" : {
                  "summary" : "Preview the same transaction without committing anything",
                  "value" : {
                    "version_uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb",
                    "bul" : [ "SET attribute.Name = \"Standard door\" WHERE type = IFCDOOR" ],
                    "dry_run" : true
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The transaction result. For a commit: `transaction` and `node`. For a dry run: `updates`, `is_head` and (only when the Version is not the head) `head_version`",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CommitTransactionResult"
                },
                "examples" : {
                  "commit" : {
                    "summary" : "The result of a committed transaction",
                    "value" : {
                      "transaction" : {
                        "transaction_uuid" : "9a1a54f1-8c2b-4f4e-9a7e-1f6d3f2f6b1c",
                        "version_uuid" : "3f8f1c2a-6d4e-4b8a-9c1d-2e5f7a8b9c0d",
                        "version" : 5,
                        "summary" : {
                          "updates" : [ {
                            "update_index" : 0,
                            "operation" : "SET",
                            "feature" : "attribute.Name",
                            "matched_count" : 24,
                            "changed_count" : 21,
                            "created_count" : 0,
                            "deleted_count" : 0
                          } ]
                        }
                      }
                    }
                  },
                  "dryRun" : {
                    "summary" : "The result of a dry run",
                    "value" : {
                      "updates" : [ {
                        "update_index" : 0,
                        "operation" : "SET",
                        "feature" : "attribute.Name",
                        "value" : "\"Standard door\"",
                        "matched_count" : 24,
                        "changed_count" : 21
                      } ],
                      "is_head" : true
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "409" : {
            "$ref" : "#/components/responses/ConflictError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/gis/ExportCityGML3" : {
      "post" : {
        "operationId" : "ExportCityGML3",
        "x-required-scopes" : [ "model:read" ],
        "summary" : "Export one or more IFC models to CityGML 3 or CityJSON 2",
        "description" : "Export one or more IFC models into one city model, using per-LOD export settings that select objects and geometry via BQL. `format` chooses the encoding; it wins over the Accept header, which is only read when `format` is absent.",
        "tags" : [ "GIS" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ExportCityGML3Request",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    },
                    "description" : "Models to export. Passing an empty model set is also valid, and allows you to validate your export settings"
                  },
                  "settings" : {
                    "$ref" : "#/components/schemas/CityGML3ExportSettings"
                  },
                  "format" : {
                    "type" : "string",
                    "enum" : [ "citygml3", "cityjson2" ],
                    "description" : "Absent, the Accept header decides, and citygml3 when it does not ask for CityJSON. `citygml3`: CityGML 3.0, served as `application/gml`; `cityjson2`: CityJSON 2.0, served as `application/city+json`"
                  }
                },
                "required" : [ "models", "settings" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The exported city model, in the requested format",
            "content" : {
              "application/gml" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "The CityGML 3.0 file, for format citygml3"
                }
              },
              "application/city+json" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "The CityJSON 2.0 file, for format cityjson2"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/ExportVectorSvg" : {
      "post" : {
        "operationId" : "ExportVectorSvg",
        "x-required-scopes" : [ "geometry:read" ],
        "summary" : "Export an orthographic vector drawing (SVG) of a model",
        "description" : "Renders a floor plan, section or elevation of one model as an SVG drawing with occlusion culling (every product its own group), optionally restricted, recoloured and labelled through BQL and BVL. A request carrying `styling` also needs the actions:read scope. The response carries the drawing; the `cache` and `labels` objects of the task response are returned as the `X-BimWorks-Vector` header (JSON).",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/ExportVectorSvgRequest"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The drawing",
            "content" : {
              "image/svg+xml" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary",
                  "description" : "The SVG document"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/gis/Generate3DTilesUrl" : {
      "post" : {
        "operationId" : "Generate3DTilesUrl",
        "x-required-scopes" : [ "geometry:read" ],
        "summary" : "Create a signed 3D Tiles tileset URL for a folder or a set of versions",
        "description" : "Mints a URL to a Cesium 3D Tiles tileset.json of the models of a folder node (followed recursively at request time) or of a fixed set of versions. The settings — which objects, in which colours, with which batch-table columns — are signed into the URL and cannot be changed by whoever holds it. The URL is valid for 90 days.",
        "tags" : [ "GIS" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "Generate3DTilesUrlRequest",
                "type" : "object",
                "properties" : {
                  "node_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "A folder node; its models are collected recursively on every tileset request. Wins over version_uuids when both are given."
                  },
                  "version_uuids" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "format" : "uuid"
                    },
                    "description" : "A fixed set of model versions"
                  },
                  "settings" : {
                    "$ref" : "#/components/schemas/TilesSettings"
                  },
                  "link_account" : {
                    "type" : "boolean",
                    "description" : "Bind the URL to the calling account"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The tileset URL",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "url" : {
                      "type" : "string",
                      "format" : "uri",
                      "description" : "The tileset.json URL, including the signed token"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ai/TextToAction" : {
      "post" : {
        "operationId" : "TextToAction",
        "x-required-scopes" : [ "ai:use" ],
        "summary" : "Turn a sentence into a BIM.works action (BQL, BVL or BCL)",
        "description" : "Sends the text to the language model the instance is configured with (the account's default text-to-action\nmodel, else the server's `ai.default_text_to_action`) and returns the action it wrote: a BQL query, a BVL\nvisualisation or a BCL check. The server parses and formats the code before it answers; code that does not\nparse goes back to the model once with the parser's error, and fails with 502 when the second answer does not\nparse either.\n\nNothing is executed: run the answer yourself, BQL with Query, BVL with ResolveBvl, BCL with Check. Pass\n`language` to require one of the three; without it the model chooses from the text (\"how many…\" tends to a\nquery, \"show / colour / hide…\" to a visualisation, \"check that…\" to a check). With `models`, the model may\nlook at those models first using aggregate queries, for example to use the property names they actually carry.\n`ai.text_to_action_tools` selects `mcp` (default, requiring `ai.mcp_server_enabled` and a reachable server)\nor `inline` (queries execute internally without an inbound connection).\n\nNeeds AI on the instance (`ai.enabled`): 403 when it is off. The text and the answer of a successful call are\nkept in the instance's text-to-action log.\n",
        "tags" : [ "AI" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "TextToActionRequest",
                "type" : "object",
                "properties" : {
                  "input" : {
                    "type" : "string",
                    "description" : "What the action should do, in a sentence; any language the model understands"
                  },
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    },
                    "description" : "Optional, the models the action is meant for (Version and Node identifiers; a URL identifier is refused). The answer is not limited to them; run it on any model"
                  },
                  "language" : {
                    "type" : "string",
                    "enum" : [ "BQL", "BVL", "BCL" ],
                    "description" : "Require an action in this language; an answer in another one fails with 502"
                  }
                },
                "required" : [ "input" ]
              },
              "examples" : {
                "visualisation" : {
                  "summary" : "A visualisation, for the demo model",
                  "value" : {
                    "input" : "Show the external walls in red",
                    "models" : [ {
                      "type" : "VersionModelIdentifier",
                      "uuid" : "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb"
                    } ]
                  }
                },
                "query" : {
                  "summary" : "A query, BQL required",
                  "value" : {
                    "input" : "List every door with its name and width",
                    "language" : "BQL"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The action",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/TextToActionResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "502" : {
            "description" : "The language model gave no usable action: it answered in prose (the message carries its answer, often a question back), wrote code that does not parse, or used another language than `language`",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/LoginAnonymous" : {
      "post" : {
        "operationId" : "LoginAnonymous",
        "x-required-scopes" : [ ],
        "summary" : "Sign in without an account",
        "description" : "An anonymous session: it reaches only the operations that need no credential, unless the instance allows\nanonymous use (features.allow_anonymous_use). It is what the SDKs' anonymous client uses. Not to be confused\nwith anonymous tokens (CreateAnonymousToken, LoginWithAnonymousToken), which own a Node of their own.\n",
        "security" : [ ],
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "LoginAnonymousRequest",
                "type" : "object",
                "properties" : {
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The anonymous session",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/GetSession" : {
      "post" : {
        "operationId" : "GetSession",
        "x-required-scopes" : [ ],
        "summary" : "Describe the session behind the bearer token",
        "description" : "What the presented credential is: its kind, when it expires, the scopes it grants (absent when it is\nunscoped, as an account session is), the Node it is rooted at, and, when it belongs to an account and grants\naccount:read, that account. A nodes token (CreateNodesToken) or a versions token (CreateVersionsToken) has no\nroot Node: it answers the Nodes (`node_uuids`) or Versions (`version_uuids`) it names instead. A credential\nthat is no longer valid (expired, signed out, its account removed) answers 401, so this is also the check that\na stored token still works.\n",
        "tags" : [ "Auth" ],
        "responses" : {
          "200" : {
            "description" : "The session",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Session"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/ListApiTokens" : {
      "post" : {
        "operationId" : "ListApiTokens",
        "x-required-scopes" : [ "admin:read" ],
        "summary" : "List API tokens",
        "description" : "The active API tokens rooted at a Node (`node_uuid`, which needs read rights on it), or without `node_uuid`\nthose of the caller's organization, which only a super admin or the organization's creator lists (403\nNON_AUTHORIZED_TASK for any other member). The secret is never listed: `last_four` shows its end. Expired\ntokens are listed with their `expires_on`.\n",
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListApiTokensRequest",
                "type" : "object",
                "properties" : {
                  "node_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The Node the tokens are rooted at; the caller's organization when absent"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The tokens",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/ApiToken"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/CreateApiToken" : {
      "post" : {
        "operationId" : "CreateApiToken",
        "x-required-scopes" : [ "admin:write", "tokens:issue" ],
        "summary" : "Create an API token",
        "description" : "A long-lived token rooted at a folder, for a platform that provisions one per customer or a job that runs\nunattended. The secret is answered once and cannot be recovered; store it. Callable with an account session\nonly: another API token, a delegated token or a workspace token is refused with CREDENTIAL_CREATION_NOT_ALLOWED.\n",
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CreateApiTokenRequest",
                "type" : "object",
                "properties" : {
                  "node_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The Node (folder) the token is rooted at; needs write rights on it"
                  },
                  "name" : {
                    "type" : "string",
                    "description" : "The name of the token"
                  },
                  "scopes" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "The scopes the token grants, as wire names (fs:read, model:upload, ...). A scoped caller can grant no more than it has itself"
                  },
                  "expires_on" : {
                    "type" : "string",
                    "description" : "When the token expires: a date (YYYY-MM-DD, the end of that day in UTC) or a date-time. At most auth.api_token_max_expiry ahead (3 years by default); 1 month when absent"
                  },
                  "cors_enabled_domains" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "The browser origins that may use the token, with only_cors_enabled_addresses"
                  },
                  "only_cors_enabled_addresses" : {
                    "type" : "boolean",
                    "description" : "Refuse calls from other origins than cors_enabled_domains"
                  },
                  "white_listed_ip_addresses" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "The client addresses that may use the token, with only_white_listed_ip_addresses"
                  },
                  "only_white_listed_ip_addresses" : {
                    "type" : "boolean",
                    "description" : "Refuse calls from other addresses than white_listed_ip_addresses"
                  },
                  "bim_context" : {
                    "type" : "string",
                    "enum" : [ "DEFAULT", "MKM", "HONG_KONG", "NL", "GB" ],
                    "default" : "DEFAULT",
                    "description" : "The regional context of the token"
                  }
                },
                "required" : [ "name", "node_uuid", "scopes" ]
              },
              "examples" : {
                "UploadOnly" : {
                  "summary" : "A token that may only upload into one folder",
                  "value" : {
                    "name" : "Customer 42 uploads",
                    "node_uuid" : "0f1e2d3c-4b5a-4968-8776-655443322110",
                    "scopes" : [ "fs:read", "model:upload" ],
                    "expires_on" : "2027-06-30"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The new token, with its secret",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiTokenSecret"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/UpdateApiToken" : {
      "post" : {
        "operationId" : "UpdateApiToken",
        "x-required-scopes" : [ "admin:write" ],
        "summary" : "Change an API token",
        "description" : "Changes the fields that are passed; the others stay as they are. Changing `scopes` needs tokens:issue as\nwell, and so does `rotate_secret`, which replaces the secret (for a rotation from a vault) and answers the new\none once in `token`. Callable with an account session, or with an API token for that token itself (another\ntoken is refused with CREDENTIAL_CREATION_NOT_ALLOWED before anything changes); not with a delegated or\nworkspace token. An API token moves its own `expires_on` earlier, never later. Needs write rights on the\ntoken's Node, and the caller must be the token's creator, an admin of its organization or a super admin: a\ntoken acts as the account that created it, so another member is refused (403 NON_AUTHORIZED_TASK).\n",
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UpdateApiTokenRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The token"
                  },
                  "name" : {
                    "type" : "string",
                    "description" : "The name of the token"
                  },
                  "scopes" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "The scopes the token grants, as wire names (fs:read, model:upload, ...). A scoped caller can grant no more than it has itself"
                  },
                  "expires_on" : {
                    "type" : "string",
                    "description" : "When the token expires: a date (YYYY-MM-DD, the end of that day in UTC) or a date-time. At most auth.api_token_max_expiry ahead (3 years by default); 1 month when absent"
                  },
                  "cors_enabled_domains" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "The browser origins that may use the token, with only_cors_enabled_addresses"
                  },
                  "only_cors_enabled_addresses" : {
                    "type" : "boolean",
                    "description" : "Refuse calls from other origins than cors_enabled_domains"
                  },
                  "white_listed_ip_addresses" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "The client addresses that may use the token, with only_white_listed_ip_addresses"
                  },
                  "only_white_listed_ip_addresses" : {
                    "type" : "boolean",
                    "description" : "Refuse calls from other addresses than white_listed_ip_addresses"
                  },
                  "rotate_secret" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Replace the secret; the new one is answered once in `token`. Needs tokens:issue as well; an API token replaces only its own"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The token as it is now; `token` holds the new secret after rotate_secret",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ApiToken"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/auth/DeleteApiToken" : {
      "post" : {
        "operationId" : "DeleteApiToken",
        "x-required-scopes" : [ "admin:write" ],
        "summary" : "Revoke an API token",
        "description" : "The token stops working at once. Needs write rights on its Node while that Node exists, and the caller must be\nthe token's creator, an admin of its organization or a super admin; another member is refused (403\nNON_AUTHORIZED_TASK). Callable with an account session or an API token, not with a delegated or workspace\ntoken.\n",
        "tags" : [ "Auth" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DeleteApiTokenRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The token"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The token is revoked"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/Register" : {
      "post" : {
        "operationId" : "Register",
        "x-required-scopes" : [ ],
        "summary" : "Register an account",
        "description" : "Creates an account for an e-mail address and sends it the validation e-mail; the account is usable once the\naddress is confirmed with ValidateEmailAddress. Refused (REGISTRATION_NOT_ALLOWED) when the instance does not\nallow self-registration (security.account_self_registration) or the address asked too often; an address that\nalready has an account is refused with EMAIL_ADDRESS_ALREADY_REGISTERED.\n",
        "security" : [ ],
        "tags" : [ "Account" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "RegisterRequest",
                "type" : "object",
                "properties" : {
                  "username" : {
                    "type" : "string",
                    "description" : "The e-mail address of the account",
                    "format" : "email"
                  },
                  "preferred_language" : {
                    "type" : "string",
                    "description" : "The language of the e-mails and the web app, ISO 639-1 (en, nl, ...)"
                  }
                },
                "required" : [ "username" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The validation e-mail is sent"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/RequestValidationEmail" : {
      "post" : {
        "operationId" : "RequestValidationEmail",
        "x-required-scopes" : [ ],
        "summary" : "Send a new validation e-mail",
        "description" : "A new validation link for an address that registered but did not confirm yet. It answers the same whether or\nnot such an account exists.\n",
        "security" : [ ],
        "tags" : [ "Account" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "RequestValidationEmailRequest",
                "type" : "object",
                "properties" : {
                  "username" : {
                    "type" : "string",
                    "description" : "The e-mail address of the account",
                    "format" : "email"
                  }
                },
                "required" : [ "username" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Done (whether or not an e-mail was sent)"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/ValidateEmailAddress" : {
      "post" : {
        "operationId" : "ValidateEmailAddress",
        "x-required-scopes" : [ ],
        "summary" : "Confirm an e-mail address and set the password",
        "description" : "Confirms the address with the token from the validation e-mail and sets the account's password (8 to 128\ncharacters, not a common one, not the address). It does not sign in: use LoginWithUsernamePassword after.\nThe link is valid for a day.\n",
        "security" : [ ],
        "tags" : [ "Account" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ValidateEmailAddressRequest",
                "type" : "object",
                "properties" : {
                  "username" : {
                    "type" : "string",
                    "description" : "The e-mail address of the account",
                    "format" : "email"
                  },
                  "token" : {
                    "type" : "string",
                    "description" : "The token from the validation e-mail"
                  },
                  "password" : {
                    "type" : "string",
                    "format" : "password",
                    "description" : "The password to set"
                  }
                },
                "required" : [ "username", "token", "password" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The address is confirmed"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/RequestPasswordReset" : {
      "post" : {
        "operationId" : "RequestPasswordReset",
        "x-required-scopes" : [ ],
        "summary" : "Send a password reset e-mail",
        "description" : "Sends a link to reset the password. The reset itself is completed in the BIM.works web app. It answers the\nsame whether or not the account exists.\n",
        "security" : [ ],
        "tags" : [ "Account" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "RequestPasswordResetRequest",
                "type" : "object",
                "properties" : {
                  "username" : {
                    "type" : "string",
                    "description" : "The e-mail address of the account",
                    "format" : "email"
                  }
                },
                "required" : [ "username" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Done (whether or not an e-mail was sent)"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/ChangePassword" : {
      "post" : {
        "operationId" : "ChangePassword",
        "x-required-scopes" : [ "account:write" ],
        "summary" : "Change the password",
        "description" : "Changes the password of the signed-in account and signs out every other session; this one continues on the\nsession answered here. An account session only: an API token is refused. `current_password` is needed when the\naccount has a password, `code` when it has two-factor authentication. An account without a password (one that\nsigns in with e-mail codes) gets its first one, which needs a session signed in within the last 10 minutes.\n",
        "tags" : [ "Account" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ChangePasswordRequest",
                "type" : "object",
                "properties" : {
                  "current_password" : {
                    "type" : "string",
                    "format" : "password",
                    "description" : "The current password"
                  },
                  "password" : {
                    "type" : "string",
                    "format" : "password",
                    "description" : "The new password"
                  },
                  "code" : {
                    "type" : "integer",
                    "description" : "The current two-factor code, when the account has two-factor authentication"
                  },
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                },
                "required" : [ "password" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The new session",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/SignOutOtherSessions" : {
      "post" : {
        "operationId" : "SignOutOtherSessions",
        "x-required-scopes" : [ "account:write" ],
        "summary" : "Sign out every other session",
        "description" : "Ends every session of the signed-in account except this one, which continues on the session answered here: for\na lost or shared device. An account session only. API tokens are separate credentials and keep working; revoke\nthem with DeleteApiToken.\n",
        "tags" : [ "Account" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "SignOutOtherSessionsRequest",
                "type" : "object",
                "properties" : {
                  "response_format" : {
                    "$ref" : "#/components/schemas/AuthResponseFormat"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The new session",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AuthResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/Logout" : {
      "post" : {
        "operationId" : "Logout",
        "x-required-scopes" : [ ],
        "summary" : "Record a sign-out",
        "description" : "Records that the session signed out. It revokes nothing: the bearer token stays valid until it expires. To\nend sessions, use SignOutOtherSessions or ChangePassword.\n",
        "tags" : [ "Account" ],
        "responses" : {
          "200" : {
            "description" : "Recorded"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/GetSettings" : {
      "post" : {
        "operationId" : "GetSettings",
        "x-required-scopes" : [ "account:read" ],
        "summary" : "Read the account settings",
        "description" : "The settings of the account behind the credential: name, country, language, time zone and the web app\npreferences. With an API token, those of the account that created it.\n",
        "tags" : [ "Account" ],
        "responses" : {
          "200" : {
            "description" : "The settings",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/AccountSettings"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/SaveSettings" : {
      "post" : {
        "operationId" : "SaveSettings",
        "x-required-scopes" : [ "account:write" ],
        "summary" : "Change the account settings",
        "description" : "Changes the settings that are passed; the others stay as they are. With an API token, those of the account\nthat created it.\n",
        "tags" : [ "Account" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "$ref" : "#/components/schemas/AccountSettings"
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Saved"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/account/ListReferenceValues" : {
      "post" : {
        "operationId" : "ListReferenceValues",
        "x-required-scopes" : [ ],
        "summary" : "The values of the settings form",
        "description" : "The countries (ISO 3166 codes), languages (ISO 639-1 codes) or time zones (tz identifiers) that the settings\ntake, with a name to show. Names are in English.\n",
        "tags" : [ "Account" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListReferenceValuesRequest",
                "type" : "object",
                "properties" : {
                  "kind" : {
                    "type" : "string",
                    "enum" : [ "countries", "languages", "time_zones" ],
                    "description" : "Which list"
                  }
                },
                "required" : [ "kind" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The values",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/ReferenceValue"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/admin/ListAccounts" : {
      "post" : {
        "operationId" : "ListAccounts",
        "x-required-scopes" : [ "admin:read" ],
        "summary" : "List the accounts of the organization",
        "description" : "The accounts of the caller's organization, newest first, each with its user and how it signs in. With\n`include_invites` the open invites follow the accounts. Removed accounts are left out unless `show_deleted`.\nOnly a super admin or the organization's creator lists them, with a session or an API token; for any other\nmember the answer is 403 NON_AUTHORIZED_TASK.\n",
        "tags" : [ "Admin" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListAccountsRequest",
                "type" : "object",
                "properties" : {
                  "include_invites" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Also the open invites"
                  },
                  "show_deleted" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Also the removed accounts"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The accounts, then the invites",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/AccountEntry"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/admin/ListOrganizations" : {
      "post" : {
        "operationId" : "ListOrganizations",
        "x-required-scopes" : [ "admin:read" ],
        "summary" : "The caller's organization",
        "description" : "The organization of the caller's account (an empty list when it has none).\n",
        "tags" : [ "Admin" ],
        "responses" : {
          "200" : {
            "description" : "The organization",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Organization"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/admin/ListAccountUserFeatures" : {
      "post" : {
        "operationId" : "ListAccountUserFeatures",
        "x-required-scopes" : [ "account:read" ],
        "summary" : "The user features of an account",
        "description" : "Every user feature with whether the account has it: what the account may do in BIM.works. The caller's own\naccount when `account_uuid` is absent; another account's needs SuperAdmin.\n",
        "tags" : [ "Admin" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListAccountUserFeaturesRequest",
                "type" : "object",
                "properties" : {
                  "account_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The account; the caller's own when absent"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The features, by name",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/UserFeatureState"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/DeleteNodeError" : {
      "post" : {
        "operationId" : "DeleteNodeError",
        "x-required-scopes" : [ "fs:write" ],
        "summary" : "Clear an error of a Node",
        "description" : "Removes an error record (a failed upload or checkin, see ListNodeErrors) once its cause is dealt with. Needs\nwrite rights on the Node.\n",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DeleteNodeErrorRequest",
                "type" : "object",
                "properties" : {
                  "node_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The Node"
                  },
                  "error_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The error, from ListNodeErrors"
                  }
                },
                "required" : [ "node_uuid", "error_uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The error is cleared"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/fs/UpdateVersion" : {
      "post" : {
        "operationId" : "UpdateVersion",
        "x-required-scopes" : [ "model:write" ],
        "summary" : "Change a Version's disciplines or alignment",
        "description" : "Changes the fields that are passed in one transaction; the others stay as they are. `disciplines: []` clears the\ndisciplines, `clear: [alignment]` the alignment. Needs write rights on the Version.\n\n- `disciplines`: the disciplines of the model, the first one primary, recorded as set by a user (an automatic\n  classification no longer overrides them).\n- `alignment`: a 4x4 transformation as 16 numbers in column-major order (the translation at 12, 13, 14, in\n  millimetres), applied when the model is shown with others.\n",
        "tags" : [ "Fs" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UpdateVersionRequest",
                "type" : "object",
                "properties" : {
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The Version"
                  },
                  "disciplines" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "$ref" : "#/components/schemas/Discipline"
                    },
                    "description" : "The disciplines, primary first; [] clears them"
                  },
                  "alignment" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "type" : "number"
                    },
                    "minItems" : 16,
                    "maxItems" : 16,
                    "description" : "16 numbers, column-major, the translation in millimetres"
                  },
                  "clear" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "enum" : [ "alignment" ]
                    },
                    "description" : "Fields to remove"
                  }
                },
                "required" : [ "version_uuid" ]
              },
              "examples" : {
                "SetDisciplines" : {
                  "value" : {
                    "version_uuid" : "7a6f8454-2b1c-4d3e-9f80-1a2b3c4d5e6f",
                    "disciplines" : [ "STRUCTURAL", "ARCHITECTURAL" ]
                  }
                },
                "ShiftTenMetresEast" : {
                  "value" : {
                    "version_uuid" : "7a6f8454-2b1c-4d3e-9f80-1a2b3c4d5e6f",
                    "alignment" : [ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 10000, 0, 0, 1 ]
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The Version as it is now",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ModelVersion"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/gis/GetGeoReference" : {
      "post" : {
        "operationId" : "GetGeoReference",
        "x-required-scopes" : [ "gis:read" ],
        "summary" : "Read or convert a georeference",
        "description" : "With `model`: the georeference stored on the Version (null when it has none), in `target_epsg`, with its\nanchor point in model coordinates, the grid convergence and how its rotation is measured (`rotation_north`).\n`include_map_conversion` adds what the model's own IfcMapConversion says, for a comparison.\n\nWith `geo_reference` instead: that georeference converted to `target_epsg`; no model is read.\n",
        "tags" : [ "GIS" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetGeoReferenceRequest",
                "type" : "object",
                "properties" : {
                  "model" : {
                    "$ref" : "#/components/schemas/ModelIdentifier",
                    "description" : "The Version (a Node stands for its latest Version)"
                  },
                  "geo_reference" : {
                    "$ref" : "#/components/schemas/GeoReference",
                    "description" : "A georeference to convert instead of reading one; its epsg is required"
                  },
                  "target_epsg" : {
                    "type" : "string",
                    "description" : "The coordinate system of the answer",
                    "default" : "EPSG:4326"
                  },
                  "include_map_conversion" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Also the model's IfcMapConversion (with model only)"
                  },
                  "include_source" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Also the coordinate system it was found in (`original_epsg`) and where a copied georeference came from (`geo_reference_source`), with model only"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The georeference",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/GeoReferenceResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/gis/SetGeoReference" : {
      "post" : {
        "operationId" : "SetGeoReference",
        "x-required-scopes" : [ "gis:write" ],
        "summary" : "Store a Version's georeference",
        "description" : "Stores where the model is on earth: the georeference (a point in a coordinate system with a rotation) and the\nanchor point in model coordinates that it applies to. `rotation_north` says whether the rotation is to grid\nnorth (GRID) or true north (TRUE); without it the rotation is to grid north of `original_epsg` when there is\none, else to true north. Needs write rights on the Version. To compute one from the model first, see\nExtractGeoReference.\n",
        "tags" : [ "GIS" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "SetGeoReferenceRequest",
                "type" : "object",
                "properties" : {
                  "model" : {
                    "$ref" : "#/components/schemas/ModelIdentifier",
                    "description" : "The Version (a Node stands for its latest Version)"
                  },
                  "geo_reference" : {
                    "$ref" : "#/components/schemas/GeoReference"
                  },
                  "anchor_point" : {
                    "$ref" : "#/components/schemas/Vector3",
                    "description" : "The point of the model, in model coordinates, that the georeference places"
                  },
                  "rotation_north" : {
                    "type" : "string",
                    "enum" : [ "GRID", "TRUE" ],
                    "description" : "What the rotation is measured to"
                  },
                  "original_epsg" : {
                    "type" : "string",
                    "description" : "The coordinate system the georeference was found in, when it was converted"
                  }
                },
                "required" : [ "model", "geo_reference", "anchor_point" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Stored"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/gis/CopyGeoReference" : {
      "post" : {
        "operationId" : "CopyGeoReference",
        "x-required-scopes" : [ "gis:write" ],
        "summary" : "Give a Version the georeference of another",
        "description" : "Copies the georeference of `from` onto `model`: the latitude, longitude, elevation and rotation, `rotation_north`\nand `original_epsg` as they are, and the anchor point converted to the target's length unit, so it is the same\npoint. A georeference places a Version's aligned coordinates, so a drawing (PDF, DWG) aligned onto an IFC model\nand given that model's georeference is shown on the earth where the model is: in GEO mode, next to GIS layers,\non the map. The answer says where it came from (`geo_reference_source`, with the target's alignment at the time)\nand warns when the target has no alignment. Needs write rights on `model` and read rights on `from`.\n",
        "tags" : [ "GIS" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CopyGeoReferenceRequest",
                "type" : "object",
                "properties" : {
                  "model" : {
                    "$ref" : "#/components/schemas/ModelIdentifier",
                    "description" : "The Version that gets the georeference (a Node stands for its latest Version)"
                  },
                  "from" : {
                    "$ref" : "#/components/schemas/ModelIdentifier",
                    "description" : "The Version whose georeference is copied, usually the model `model` is aligned onto"
                  }
                },
                "required" : [ "model", "from" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The georeference as stored on `model`",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CopiedGeoReference"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/gis/ExtractGeoReference" : {
      "post" : {
        "operationId" : "ExtractGeoReference",
        "x-required-scopes" : [ "gis:read" ],
        "summary" : "Compute a georeference from the model",
        "description" : "Computes a georeference from what the IFC file says, without storing it: call SetGeoReference with the answer\nto keep it. `method`:\n\n- `map_conversion`: the IfcMapConversion (IFC4 and later);\n- `map_conversion_pset`: the ePset_MapConversion property set on the IfcSite (IFC2X3);\n- `ifc_site`: the latitude and longitude of the IfcSite;\n- `epsg`: the model's coordinates read as `epsg` (or `wkt`);\n- `auto`: map_conversion, then map_conversion_pset, then ifc_site; the first that gives one.\n",
        "tags" : [ "GIS" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ExtractGeoReferenceRequest",
                "type" : "object",
                "properties" : {
                  "model" : {
                    "$ref" : "#/components/schemas/ModelIdentifier",
                    "description" : "The Version (a Node stands for its latest Version)"
                  },
                  "method" : {
                    "type" : "string",
                    "enum" : [ "map_conversion", "map_conversion_pset", "ifc_site", "epsg", "auto" ],
                    "description" : "Where to take it from"
                  },
                  "epsg" : {
                    "type" : "string",
                    "description" : "For method epsg: the coordinate system of the model's coordinates, as EPSG:<code>"
                  },
                  "wkt" : {
                    "type" : "string",
                    "description" : "For method epsg: the coordinate system as WKT, instead of epsg"
                  }
                },
                "required" : [ "model", "method" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The georeference that was found",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ExtractedGeoReference"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/ParseQuery" : {
      "post" : {
        "operationId" : "ParseQuery",
        "x-required-scopes" : [ ],
        "summary" : "Parse a BQL query into its syntax tree",
        "description" : "The BQL query as its JSON syntax tree (the BQL JSON serialization, each node with a `__type`), with the\n`parameters` bound when given. A query that does not parse answers SYNTAX_ERROR with the line and column. No\nmodel is read.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ParseQueryRequest",
                "type" : "object",
                "properties" : {
                  "query" : {
                    "type" : "string",
                    "description" : "The BQL query"
                  },
                  "parameters" : {
                    "type" : "object",
                    "additionalProperties" : true,
                    "description" : "Values for the `$name` parameters"
                  }
                },
                "required" : [ "query" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The syntax tree",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : true,
                  "description" : "The syntax tree"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/UpgradeSyntax" : {
      "post" : {
        "operationId" : "UpgradeSyntax",
        "x-required-scopes" : [ ],
        "summary" : "Rewrite BQL, BVL and BCL written for 2.x in the 3.0 syntax",
        "description" : "For BQL, BVL and BCL texts that a client keeps itself, written for BIM.works 2.x: each text that no longer\nparses in 3.0 because of a known syntax change comes back in the 3.0 syntax, with the changes made. The known\nchanges are the unit clause (`IN mm` is `UNIT mm`), `CS LENGTH` (is `LENGTH`) and names that 3.0 reserves as\nkeywords (quoted: `property.Dimensions.\"length\"`, `AS \"status\"`). A text that parses already comes back as it\nis (`UNCHANGED`); a text with any other error comes back as it is too, with the 3.0 parser's message\n(`NOT_REWRITTEN`), also when it has known changes as well. Strings and comments are never changed. Up to 1000\ntexts per request, answered in the order they were sent. No model is read. A stored action needs no call: the\ninstance rewrites its stored actions once, as new versions.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UpgradeSyntaxRequest",
                "type" : "object",
                "properties" : {
                  "inputs" : {
                    "type" : "array",
                    "maxItems" : 1000,
                    "items" : {
                      "$ref" : "#/components/schemas/UpgradeSyntaxInput"
                    }
                  }
                },
                "required" : [ "inputs" ]
              },
              "examples" : {
                "QueryAndCheck" : {
                  "value" : {
                    "inputs" : [ {
                      "id" : "wall-heights",
                      "language" : "BQL",
                      "text" : "GET qid, quantity.Qto_WallBaseQuantities.Height IN mm WHERE type = IFCWALL"
                    }, {
                      "id" : "lengths",
                      "language" : "BCL",
                      "text" : "select (type = IFCWALL) { require property.Dimensions.length > 0; }"
                    } ]
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "One result per input, in the order of the inputs",
            "content" : {
              "application/json" : {
                "schema" : {
                  "title" : "UpgradeSyntaxResponse",
                  "type" : "object",
                  "properties" : {
                    "results" : {
                      "type" : "array",
                      "items" : {
                        "$ref" : "#/components/schemas/UpgradeSyntaxResult"
                      }
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/ListBuildingStoreys" : {
      "post" : {
        "operationId" : "ListBuildingStoreys",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "The building storeys of one or more models",
        "description" : "The storeys of the models merged by name, highest first, each with the objects on it; the objects without a\nstorey come last, under \"[No BS]\". What a storey picker or a walk mode needs in one call.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListBuildingStoreysRequest",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    },
                    "description" : "The models, by Version or Node identifier"
                  }
                },
                "required" : [ "models" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The storeys",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/BuildingStoreys"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/GetObjectHistory" : {
      "post" : {
        "operationId" : "GetObjectHistory",
        "x-required-scopes" : [ "model:read" ],
        "summary" : "The change history of one object",
        "description" : "Every transaction that changed the object (by its oid) in the Node's line of Versions, newest first (as\nListTransactions), with what it changed, and the Version the object first appeared in. `feature` limits it to one\nfeature (`property.Pset_WallCommon.IsExternal`); `features_only` answers only the features that ever changed.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetObjectHistoryRequest",
                "type" : "object",
                "properties" : {
                  "model" : {
                    "$ref" : "#/components/schemas/ModelIdentifier",
                    "description" : "The Version or Node whose history to read"
                  },
                  "oid" : {
                    "type" : "integer",
                    "format" : "int64",
                    "description" : "The object id"
                  },
                  "feature" : {
                    "type" : "string",
                    "description" : "Only the changes to this feature"
                  },
                  "features_only" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Only the names of the features that changed"
                  }
                },
                "required" : [ "model", "oid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The history",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : true,
                  "description" : "{node_uuid, oid, entries: [{transaction_uuid, version, created_by, created_on, comment, changes: [...]}], first_version} or, with features_only, {node_uuid, oid, features}"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/ifc/TextSearch" : {
      "post" : {
        "operationId" : "TextSearch",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "Free-text search in models",
        "description" : "Searches the text of the models (names and values of attributes, properties, quantities, classifications,\nmaterials, layers) for words, not with BQL. Each group says where the text matched, how many objects match\nthere and which (at most `max_qids_per_group`). A query that is a GlobalId (22 characters, or a UUID) also\nfinds that object exactly, as a value match on the attribute GlobalId. Needs text indexing on the instance\n(features.text_indexing). Not available in a workspace whose filter limits the objects.\n",
        "tags" : [ "IFC" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "TextSearchRequest",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    },
                    "description" : "The models, by Version or Node identifier"
                  },
                  "query" : {
                    "type" : "string",
                    "description" : "The words to find"
                  },
                  "fuzzy" : {
                    "type" : "boolean",
                    "default" : true,
                    "description" : "Allow small spelling differences"
                  },
                  "max_edits" : {
                    "type" : "integer",
                    "minimum" : 0,
                    "maximum" : 2,
                    "description" : "For fuzzy: the number of edits allowed (1 when 0 or absent)"
                  },
                  "prefix" : {
                    "type" : "boolean",
                    "default" : true,
                    "description" : "Match the start of words"
                  },
                  "search_values" : {
                    "type" : "boolean",
                    "default" : true,
                    "description" : "Search the values"
                  },
                  "search_names" : {
                    "type" : "boolean",
                    "default" : true,
                    "description" : "Search the names"
                  },
                  "kind" : {
                    "type" : "string",
                    "enum" : [ "attribute", "property", "quantity", "classification", "material", "layer" ],
                    "description" : "Only this kind of feature"
                  },
                  "set" : {
                    "type" : "string",
                    "description" : "Only this property or quantity set"
                  },
                  "name" : {
                    "type" : "string",
                    "description" : "Only this feature name"
                  },
                  "type" : {
                    "type" : "string",
                    "description" : "Only objects of this IFC type"
                  },
                  "max_qids_per_group" : {
                    "type" : "integer",
                    "default" : 100,
                    "description" : "At most this many qids per group; negative for all"
                  }
                },
                "required" : [ "models", "query" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The matches",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/TextSearchResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/GetValidationReport" : {
      "post" : {
        "operationId" : "GetValidationReport",
        "x-required-scopes" : [ "query:run" ],
        "summary" : "Why a model is invalid, or why its checkin failed",
        "description" : "The validation report of a Version (`model`) or of a failed checkin (`error_uuid`, from ListNodeErrors): per\nstage of the checkin (upload, parse, schemaCheck, geometry3d, geometry2d, indexing, ...) its status and its\nfindings, each with its rule, severity and the object it is about. `summary_only` answers the counts.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetValidationReportRequest",
                "type" : "object",
                "properties" : {
                  "model" : {
                    "$ref" : "#/components/schemas/ModelIdentifier",
                    "description" : "The Version (a Node stands for its latest Version)"
                  },
                  "error_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "A failed checkin instead, from ListNodeErrors"
                  },
                  "summary_only" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Only the summary"
                  },
                  "min_severity" : {
                    "type" : "string",
                    "enum" : [ "INFO", "WARNING", "ERROR", "FATAL" ],
                    "description" : "Only findings of this severity or worse"
                  },
                  "stage" : {
                    "type" : "string",
                    "description" : "Only this stage"
                  },
                  "rule" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "Only these rules"
                  },
                  "global_id" : {
                    "type" : "string",
                    "description" : "Only findings about this object"
                  },
                  "express_id" : {
                    "type" : "integer",
                    "format" : "int64",
                    "description" : "Only findings about this STEP line"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The report",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ValidationReportResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/actions/ListActions" : {
      "post" : {
        "operationId" : "ListActions",
        "x-required-scopes" : [ "actions:read" ],
        "summary" : "List the actions in a folder",
        "description" : "The stored actions (queries, checks, visualizations, ...) and folders in a folder, by name, and the folder's\npath. The folder by `uuid` or by `path` (from the caller's own folder); the caller's own folder when both are\nabsent. Query and Check run a stored action by its uuid (`action_uuid`).\n",
        "tags" : [ "Actions" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListActionsRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The folder"
                  },
                  "path" : {
                    "type" : "string",
                    "description" : "The folder, as a path from the caller's own folder (Checks/Fire safety)"
                  },
                  "show_deleted" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Also the deleted ones"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The folder's content",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ActionList"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/actions/GetAction" : {
      "post" : {
        "operationId" : "GetAction",
        "x-required-scopes" : [ "actions:read" ],
        "summary" : "Read an action",
        "description" : "One action with its text, by `uuid` or by `path` (from the caller's own folder).\n",
        "tags" : [ "Actions" ],
        "requestBody" : {
          "required" : false,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetActionRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The action"
                  },
                  "path" : {
                    "type" : "string",
                    "description" : "The action, as a path from the caller's own folder"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The action",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Action"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/actions/AddAction" : {
      "post" : {
        "operationId" : "AddAction",
        "x-required-scopes" : [ "actions:write" ],
        "summary" : "Store an action",
        "description" : "Stores a query, check, visualization or other action in a folder, or a new folder (`main_type: FOLDER`).\nNeeds write rights on the folder.\n",
        "tags" : [ "Actions" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "AddActionRequest",
                "type" : "object",
                "properties" : {
                  "parent_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The folder to store it in"
                  },
                  "name" : {
                    "type" : "string",
                    "description" : "The name"
                  },
                  "main_type" : {
                    "type" : "string",
                    "enum" : [ "FOLDER", "QUERY3", "CHECK3", "IDS", "BVL", "BCOL", "CLASH", "BSL", "BUL" ],
                    "description" : "What it is: FOLDER, QUERY3 (BQL), CHECK3 (BCL), IDS, BVL, BCOL (compare), CLASH, BSL, BUL"
                  },
                  "sub_type" : {
                    "type" : "string",
                    "description" : "The language version; the current one when absent"
                  },
                  "query" : {
                    "type" : "string",
                    "description" : "The text: the BQL, BCL, IDS XML, ...; required except for a folder"
                  },
                  "description" : {
                    "type" : "string",
                    "description" : "A description"
                  },
                  "output_hint" : {
                    "type" : "string",
                    "enum" : [ "VIEWER_3D", "VIEWER_2D", "JSON_VIEW", "TABLE_VIEW", "POPUP_VIEW", "TAKEOFF" ],
                    "description" : "Where the web app shows its result"
                  },
                  "favourite" : {
                    "type" : "boolean",
                    "default" : false,
                    "description" : "Mark it as a favourite"
                  },
                  "icon_name" : {
                    "type" : "string",
                    "description" : "The icon"
                  }
                },
                "required" : [ "parent_uuid", "name", "main_type" ]
              },
              "examples" : {
                "Query" : {
                  "value" : {
                    "parent_uuid" : "5e4d3c2b-1a09-4f8e-9d7c-6b5a49382716",
                    "name" : "External walls",
                    "main_type" : "QUERY3",
                    "query" : "GET attribute.Name WHERE type = IFCWALL AND property.Pset_WallCommon.IsExternal = true"
                  }
                },
                "Folder" : {
                  "value" : {
                    "parent_uuid" : "5e4d3c2b-1a09-4f8e-9d7c-6b5a49382716",
                    "name" : "Fire safety",
                    "main_type" : "FOLDER"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The stored action",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Action"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/actions/UpdateAction" : {
      "post" : {
        "operationId" : "UpdateAction",
        "x-required-scopes" : [ "actions:write" ],
        "summary" : "Change an action",
        "description" : "Changes the fields that are passed; the others stay as they are. A change to an action (not a folder) is a new\nversion unless `save_mode` is OVERWRITE. Pass `base_version`, the version you started from, to have a change\nby someone else in between refused with 409 instead of overwritten. A folder takes only a new `name`.\n",
        "tags" : [ "Actions" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UpdateActionRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The action"
                  },
                  "name" : {
                    "type" : "string",
                    "description" : "The new name"
                  },
                  "query" : {
                    "type" : "string",
                    "description" : "The new text"
                  },
                  "description" : {
                    "type" : "string",
                    "description" : "The new description"
                  },
                  "output_hint" : {
                    "type" : "string",
                    "enum" : [ "VIEWER_3D", "VIEWER_2D", "JSON_VIEW", "TABLE_VIEW", "POPUP_VIEW", "TAKEOFF" ]
                  },
                  "favourite" : {
                    "type" : "boolean",
                    "description" : "Favourite or not"
                  },
                  "save_mode" : {
                    "type" : "string",
                    "enum" : [ "NEW_VERSION", "OVERWRITE" ],
                    "default" : "NEW_VERSION"
                  },
                  "save_comment" : {
                    "type" : "string",
                    "description" : "What changed, for the version history"
                  },
                  "base_version" : {
                    "type" : "integer",
                    "description" : "The version the change was made on"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The action as it is now",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Action"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "409" : {
            "$ref" : "#/components/responses/ConflictError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/actions/DeleteAction" : {
      "post" : {
        "operationId" : "DeleteAction",
        "x-required-scopes" : [ "actions:write" ],
        "summary" : "Delete an action",
        "description" : "Moves the action to the deleted ones (ListActions show_deleted); UndeleteAction brings it back.\n",
        "tags" : [ "Actions" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DeleteActionRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The action"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Deleted"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/actions/UndeleteAction" : {
      "post" : {
        "operationId" : "UndeleteAction",
        "x-required-scopes" : [ "actions:write" ],
        "summary" : "Bring back a deleted action",
        "description" : "Undoes DeleteAction.\n",
        "tags" : [ "Actions" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UndeleteActionRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The action"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Restored"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/workspaces/ListWorkspaces" : {
      "post" : {
        "operationId" : "ListWorkspaces",
        "x-required-scopes" : [ "workspaces:read" ],
        "summary" : "List the caller's workspaces",
        "description" : "The caller's workspaces with their sub-workspaces (`children`). A workspace is a curated view on a folder for\nvisitors of the BIM.works web app: its scopes, object filter and visible features; PublishWorkspace makes it a\nshare link.\n",
        "tags" : [ "Workspaces" ],
        "responses" : {
          "200" : {
            "description" : "The workspaces",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "array",
                  "items" : {
                    "$ref" : "#/components/schemas/Workspace"
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/workspaces/CreateWorkspace" : {
      "post" : {
        "operationId" : "CreateWorkspace",
        "x-required-scopes" : [ "workspaces:write" ],
        "summary" : "Create a workspace",
        "description" : "An account only. A sub-workspace inherits the root folder and the scopes of its parent and can only narrow\nthem.\n",
        "tags" : [ "Workspaces" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "CreateWorkspaceRequest",
                "type" : "object",
                "properties" : {
                  "name" : {
                    "type" : "string",
                    "description" : "The name"
                  },
                  "parent_workspace_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "Make it a sub-workspace of this one"
                  },
                  "scopes" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "What a visitor may do, as scope wire names; unscoped (or the parent's) when null"
                  },
                  "filter" : {
                    "type" : "string",
                    "description" : "A BQL condition that limits the objects a visitor sees"
                  },
                  "load_all_models_initially" : {
                    "type" : "boolean",
                    "description" : "Load every model when a visitor opens it"
                  },
                  "current_space" : {
                    "type" : [ "object", "null" ],
                    "additionalProperties" : true,
                    "description" : "{get_clause, label_template}: how the web app names the space a visitor is in"
                  },
                  "feature_visibility" : {
                    "type" : [ "object", "null" ],
                    "additionalProperties" : true,
                    "description" : "{mode: allow | deny, features: [...]}: the features a visitor sees"
                  }
                },
                "required" : [ "name" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The new workspace",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "uuid" : {
                      "type" : "string",
                      "format" : "uuid"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/workspaces/UpdateWorkspace" : {
      "post" : {
        "operationId" : "UpdateWorkspace",
        "x-required-scopes" : [ "workspaces:write" ],
        "summary" : "Change a workspace",
        "description" : "Changes the fields that are passed; the others stay as they are. A field named in `clear` is removed. Its owner\nonly.\n",
        "tags" : [ "Workspaces" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UpdateWorkspaceRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The workspace"
                  },
                  "name" : {
                    "type" : "string",
                    "description" : "The new name"
                  },
                  "scopes" : {
                    "type" : [ "array", "null" ],
                    "items" : {
                      "type" : "string"
                    },
                    "description" : "What a visitor may do, as scope wire names; unscoped (or the parent's) when null"
                  },
                  "filter" : {
                    "type" : "string",
                    "description" : "A BQL condition that limits the objects a visitor sees"
                  },
                  "load_all_models_initially" : {
                    "type" : "boolean",
                    "description" : "Load every model when a visitor opens it"
                  },
                  "current_space" : {
                    "type" : [ "object", "null" ],
                    "additionalProperties" : true,
                    "description" : "{get_clause, label_template}: how the web app names the space a visitor is in"
                  },
                  "feature_visibility" : {
                    "type" : [ "object", "null" ],
                    "additionalProperties" : true,
                    "description" : "{mode: allow | deny, features: [...]}: the features a visitor sees"
                  },
                  "sub_path" : {
                    "type" : "string",
                    "description" : "For a sub-workspace: the folder in its parent's actions that becomes its own"
                  },
                  "clear" : {
                    "type" : "array",
                    "items" : {
                      "type" : "string",
                      "enum" : [ "filter", "scopes", "current_space", "feature_visibility" ]
                    },
                    "description" : "Fields to remove (scopes: the workspace becomes unscoped, or inherits its parent's)"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Changed"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/workspaces/PublishWorkspace" : {
      "post" : {
        "operationId" : "PublishWorkspace",
        "x-required-scopes" : [ "workspaces:write" ],
        "summary" : "Publish or unpublish a workspace",
        "description" : "Publishing gives the workspace a new `publish_uuid`, the share link into the web app; publishing again replaces\nthe link and ends the old one. `publish: false` unpublishes it and ends the visitors' sessions. Its owner only.\n",
        "tags" : [ "Workspaces" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "PublishWorkspaceRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The workspace"
                  },
                  "publish" : {
                    "type" : "boolean",
                    "default" : true,
                    "description" : "Publish (true) or unpublish (false)"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The workspace with its publish_uuid",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/Workspace"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/workspaces/DeleteWorkspace" : {
      "post" : {
        "operationId" : "DeleteWorkspace",
        "x-required-scopes" : [ "workspaces:write" ],
        "summary" : "Delete a workspace",
        "description" : "Deletes the workspace and its sub-workspaces; their links stop working. The models and actions are kept. Its\nowner only.\n",
        "tags" : [ "Workspaces" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DeleteWorkspaceRequest",
                "type" : "object",
                "properties" : {
                  "uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The workspace"
                  }
                },
                "required" : [ "uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Deleted"
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/info/GetApplicationVersion" : {
      "post" : {
        "operationId" : "GetApplicationVersion",
        "x-required-scopes" : [ ],
        "summary" : "The BIM.works version of the instance",
        "description" : "The version of BIM.works the instance runs, to check compatibility. No credential needed.\n",
        "security" : [ ],
        "tags" : [ "Info" ],
        "responses" : {
          "200" : {
            "description" : "The version",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "version" : {
                      "$ref" : "#/components/schemas/ApplicationVersion"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/viewer/GetGeometryMetaData" : {
      "post" : {
        "operationId" : "GetGeometryMetaData",
        "x-required-scopes" : [ "geometry:read" ],
        "summary" : "What a viewer needs to place and load models",
        "description" : "Per Version (keyed by its uuid): the metadata of its geometry (bounds, units, the unquantization, the file types\nand the geometry encoding the viewer should load), and its placement (georeference, anchor point, alignment,\ngrid convergence). The keys follow the indexed-model metadata, which the viewers read as they are.\n",
        "tags" : [ "Viewer" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetGeometryMetaDataRequest",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    },
                    "description" : "The models, by Version or Node identifier"
                  }
                },
                "required" : [ "models" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The metadata per Version uuid",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "additionalProperties" : {
                    "type" : "object",
                    "additionalProperties" : true
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/LookupModelHashes" : {
      "post" : {
        "operationId" : "LookupModelHashes",
        "x-required-scopes" : [ "model:upload" ],
        "summary" : "Which files the server has already",
        "description" : "For each file, whether the server has processed one with the same content, so its upload can send the `hash`\ninstead of the bytes (UploadModel). Hash the first 32 KiB and pass that with the size first, which is cheap;\nfor the files that are known, hash the whole file and pass `full_xxh64`. The answer is in the order asked.\n`max_concurrent_checkins` is how many checkins the answering server runs at once: an upload scheduler keeps\nabout that many uploads going.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "LookupModelHashesRequest",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "maxItems" : 1000,
                    "items" : {
                      "$ref" : "#/components/schemas/ModelHash"
                    }
                  }
                },
                "required" : [ "models" ]
              },
              "examples" : {
                "BySizeAndPartialHash" : {
                  "value" : {
                    "models" : [ {
                      "size" : 1048576,
                      "partial_xxh64" : 12345678901234567890
                    } ]
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "Per file whether it is known",
            "content" : {
              "application/json" : {
                "schema" : {
                  "type" : "object",
                  "properties" : {
                    "known" : {
                      "type" : "array",
                      "items" : {
                        "type" : "boolean"
                      }
                    },
                    "max_concurrent_checkins" : {
                      "type" : "integer"
                    }
                  }
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/GetCheckin" : {
      "post" : {
        "operationId" : "GetCheckin",
        "x-required-scopes" : [ "fs:read" ],
        "summary" : "The status of a checkin",
        "description" : "The status of the checkin of an upload, by the `job_uuid` an upload answered with 202, or by the `version_uuid`\nit made. With `wait_ms` the call waits that long for the checkin to end (at most 5 minutes). Once it is DONE\nthe answer holds the Version; once it FAILED, the error. Needs read rights on the model. Checkin jobs are kept\nfor 30 days.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetCheckinRequest",
                "type" : "object",
                "properties" : {
                  "job_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The checkin job, as UploadModel or AddModelWithUrl answered it"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The Version the checkin made, instead of job_uuid"
                  },
                  "wait_ms" : {
                    "type" : "integer",
                    "format" : "int64",
                    "minimum" : 0,
                    "maximum" : 300000,
                    "description" : "Wait up to this long for the checkin to end"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The status",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/CheckinStatus"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/Render" : {
      "post" : {
        "operationId" : "Render",
        "x-required-scopes" : [ "geometry:read" ],
        "summary" : "A PNG image of a model",
        "description" : "Renders one model as a PNG. With `camera` it shows that view; with `view` one of the named angles, framing\nthe whole model. With neither it answers the screenshot the checkin stored, or else the `iso_front_right`\nview. A workspace whose filter limits the objects gets no image of the whole model. Rendering must be enabled\non the instance; a host without a GPU renders on the CPU.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "RenderRequest",
                "type" : "object",
                "properties" : {
                  "model" : {
                    "$ref" : "#/components/schemas/ModelIdentifier"
                  },
                  "camera" : {
                    "$ref" : "#/components/schemas/RenderCamera"
                  },
                  "view" : {
                    "type" : "string",
                    "enum" : [ "iso_front_right", "iso_front_left", "iso_back_left", "iso_back_right", "front", "back", "left", "right", "top" ],
                    "description" : "A named angle that frames the whole model, instead of camera"
                  },
                  "size" : {
                    "$ref" : "#/components/schemas/ImageSize"
                  }
                },
                "required" : [ "model" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The image",
            "content" : {
              "image/png" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/AugmentBcf" : {
      "post" : {
        "operationId" : "AugmentBcf",
        "x-required-scopes" : [ "geometry:read" ],
        "summary" : "Add snapshots to a BCF",
        "description" : "Answers the BCF 2.1 file with a PNG snapshot rendered for each viewpoint that has a perspective camera, of the\nmodel `version_uuid`: an integrator keeps its issues and gets BCF with images out of them. Orthogonal\nviewpoints keep what they had; at most 1000 snapshots are rendered per file.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "title" : "AugmentBcfRequest",
                "type" : "object",
                "properties" : {
                  "bcf" : {
                    "type" : "string",
                    "format" : "binary",
                    "description" : "The BCF 2.1 file"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "width" : {
                    "type" : "integer",
                    "minimum" : 16,
                    "maximum" : 4096,
                    "description" : "The snapshots' width in pixels, 300 when absent"
                  },
                  "height" : {
                    "type" : "integer",
                    "minimum" : 16,
                    "maximum" : 4096,
                    "description" : "The snapshots' height in pixels, 300 when absent"
                  }
                },
                "required" : [ "bcf", "version_uuid" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The BCF with the snapshots",
            "content" : {
              "application/bcf" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/model/ExportGeometry" : {
      "post" : {
        "operationId" : "ExportGeometry",
        "x-required-scopes" : [ "geometry:read" ],
        "summary" : "The geometry of models as glTF",
        "description" : "Exports the triangulated geometry of the objects a BQL condition selects (every product when absent) as one\nbinary glTF file, several models in one file.\n",
        "tags" : [ "Model" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ExportGeometryRequest",
                "type" : "object",
                "properties" : {
                  "models" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/ModelIdentifier"
                    }
                  },
                  "query" : {
                    "type" : "string",
                    "description" : "A BQL condition, such as `type = IFCWALL`"
                  },
                  "format" : {
                    "type" : "string",
                    "enum" : [ "glb" ],
                    "description" : "`glb` (`model/gltf-binary`), the only format so far"
                  },
                  "colors" : {
                    "$ref" : "#/components/schemas/QidColors"
                  },
                  "only_outside_triangles" : {
                    "type" : "boolean",
                    "description" : "Leave out the triangles that cannot be seen from outside"
                  }
                },
                "required" : [ "models" ]
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The file",
            "content" : {
              "model/gltf-binary" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/GetLinkedDataPolicy" : {
      "post" : {
        "operationId" : "GetLinkedDataPolicy",
        "x-required-scopes" : [ "links:read" ],
        "summary" : "What this server accepts as linked data",
        "description" : "The file families with their allowed extensions, the extensions that are never accepted, the limits, the\ncategories, the identifier systems and the URL schemes of this server. A client builds its file picker and\nits messages from it, so a file that would be refused is explained before it is sent.\n",
        "tags" : [ "LinkedData" ],
        "responses" : {
          "200" : {
            "description" : "The policy",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataPolicy"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/LinkData" : {
      "post" : {
        "operationId" : "LinkData",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Link files, URLs, texts or identifiers to objects of a Version",
        "description" : "Creates one item per entry of `items` in the JSON `request` part and links each item to every target. The\nfiles are the `file` parts, in the order of the `items` entries whose kind is `FILE` (an entry may name its\npart by position with `stream` instead); an entry without a `filename` takes the part's file name. No new\nVersion is made: each link follows its object to the later Versions of the model.\n\nA refused item does not refuse the others: its entry in the answer carries the `error` and `message`\n(`FILE_TYPE_NOT_ALLOWED`, `FILE_CONTENT_MISMATCH`, `MACROS_NOT_ALLOWED`, `INVALID_URL`, ...). A target that is\nnot on the Version fails the whole call (`LINK_TARGET_NOT_FOUND`, or `AMBIGUOUS_GLOBAL_ID` for a GlobalId on\nseveral objects). Needs write rights on the model.\n",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "title" : "LinkDataRequest",
                "type" : "object",
                "required" : [ "request" ],
                "properties" : {
                  "request" : {
                    "type" : "string",
                    "description" : "A JSON-encoded LinkDataSpec (`version_uuid`, `targets`, `items`)"
                  },
                  "file" : {
                    "type" : "array",
                    "description" : "The files, in the order of the FILE items",
                    "items" : {
                      "type" : "string",
                      "format" : "binary"
                    }
                  }
                }
              },
              "encoding" : {
                "request" : {
                  "contentType" : "application/json"
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "One entry per item, linked or refused",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkDataResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "413" : {
            "$ref" : "#/components/responses/PayloadTooLargeError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/AddLinkTargets" : {
      "post" : {
        "operationId" : "AddLinkTargets",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Link an existing item to more objects",
        "description" : "The item is shared, never copied. A target the item is already linked to on that Version is left as it is. Needs read rights on the item and write rights on the model of `version_uuid`.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "AddLinkTargetsRequest",
                "type" : "object",
                "required" : [ "item_uuid", "version_uuid", "targets" ],
                "properties" : {
                  "item_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid",
                    "description" : "The Version the targets are objects of"
                  },
                  "targets" : {
                    "type" : "array",
                    "items" : {
                      "$ref" : "#/components/schemas/LinkTarget"
                    }
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The item and the links made",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataLinks"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/ListLinkedData" : {
      "post" : {
        "operationId" : "ListLinkedData",
        "x-required-scopes" : [ "links:read" ],
        "summary" : "The linked data on a Version",
        "description" : "Every link shown on the Version, or only those on some objects, with the items they link. The links of the\nmodel are followed up to the Version first, so the answer is never out of date. `items` holds each item\nonce; `links` one entry per object, with `oid_here`, how the link was found there (`how`) and its `state`.\n\nAn orphaned link (its object is not on the Version) is listed only with `include_orphaned`.\n`include_deleted` adds the deleted items that can still be restored and needs write rights on the model.\n`with_objects` names each link's object (`object_here`) and, for a link to check, the object it was on\nbefore (`object_before`). `include_later` adds the links made on later Versions whose object is on this\none, found by following them backwards (`direction` `BACKWARD`). Needs read rights on the model.\n",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ListLinkedDataRequest",
                "type" : "object",
                "required" : [ "version_uuid" ],
                "properties" : {
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "oids" : {
                    "type" : "array",
                    "description" : "Only the links on these objects of the Version",
                    "items" : {
                      "type" : "integer"
                    }
                  },
                  "qids" : {
                    "type" : "array",
                    "description" : "Only the links on these objects, as qids of the Version",
                    "items" : {
                      "type" : "string"
                    }
                  },
                  "include_orphaned" : {
                    "type" : "boolean",
                    "default" : false
                  },
                  "include_deleted" : {
                    "type" : "boolean",
                    "default" : false
                  },
                  "with_objects" : {
                    "type" : "boolean",
                    "default" : false
                  },
                  "include_later" : {
                    "type" : "boolean",
                    "default" : false
                  },
                  "kinds" : {
                    "type" : "array",
                    "description" : "Only items of these kinds",
                    "items" : {
                      "$ref" : "#/components/schemas/LinkedDataKind"
                    }
                  },
                  "categories" : {
                    "type" : "array",
                    "description" : "Only items of these categories",
                    "items" : {
                      "type" : "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The items and the links on the Version",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataList"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/GetLinkedDataCounts" : {
      "post" : {
        "operationId" : "GetLinkedDataCounts",
        "x-required-scopes" : [ "links:read" ],
        "summary" : "Which objects of a Version have linked data",
        "description" : "For colouring and markers in a viewer. What is on an object is what ListLinkedData shows there. The objects, those with a link to check, the objects per file family, one marker per object (its item count, the family most of its items have) and the Version's totals. `include_later` adds the objects whose only links were made on later Versions (`later`), never counted in the totals. Needs read rights on the model.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetLinkedDataCountsRequest",
                "type" : "object",
                "required" : [ "version_uuid" ],
                "properties" : {
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "include_later" : {
                    "type" : "boolean",
                    "default" : false
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The objects with linked data",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataCounts"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/GetLinkedData" : {
      "post" : {
        "operationId" : "GetLinkedData",
        "x-required-scopes" : [ "links:read" ],
        "summary" : "One item with its links and their trail across Versions",
        "description" : "The item with every field, the links on the models the caller can read, and per link the spans of Versions it was followed over, oldest first. A deleted item is answered too, so it can be restored. With `version_uuid` the model is followed up to that Version first. `replaces` and `replaced_by` name the items of a replacement (ReplaceLinkedData), both ways.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "GetLinkedDataRequest",
                "type" : "object",
                "required" : [ "item_uuid" ],
                "properties" : {
                  "item_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The item, its links and its replacements",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataDetails"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "410" : {
            "$ref" : "#/components/responses/GoneError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/UpdateLinkedData" : {
      "post" : {
        "operationId" : "UpdateLinkedData",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Edit the title, description, category, validity or identifier system of an item",
        "description" : "The content never changes; a new file is a new item. Send the `row_version` you read; a stale one answers 409 `VERSION_CONFLICT`, naming who changed the item. An absent field keeps its value, an empty string clears it (the title falls back to the file name). Needs write rights on the item's model.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UpdateLinkedDataRequest",
                "type" : "object",
                "required" : [ "item_uuid", "row_version" ],
                "properties" : {
                  "item_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "row_version" : {
                    "type" : "integer",
                    "description" : "The `row_version` of the item as you read it"
                  },
                  "title" : {
                    "type" : "string"
                  },
                  "description" : {
                    "type" : "string"
                  },
                  "category" : {
                    "type" : "string",
                    "description" : "One of the policy's categories"
                  },
                  "valid_until" : {
                    "type" : "string",
                    "description" : "A date, yyyy-mm-dd"
                  },
                  "identifier_system" : {
                    "type" : "string",
                    "description" : "Only for an IDENTIFIER item"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The item as it is now",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataItem"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "409" : {
            "$ref" : "#/components/responses/ConflictError"
          },
          "410" : {
            "$ref" : "#/components/responses/GoneError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/ReplaceLinkedData" : {
      "post" : {
        "operationId" : "ReplaceLinkedData",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Replace an item from a Version on",
        "description" : "A new datasheet for a pump that was swapped in v12: one call adds the new item (`item` of the JSON `request`\npart, as an item of LinkData; a FILE is the `file` part), linked from `from_version_uuid` on to the objects\nthe old item is on there, and ends the old item's links from that Version, so the older Versions keep the old\none. A link the old item got on that very Version is taken off (`unlinked`), and when that was all of the old\nitem, it is deleted (`deleted`, restorable). The new item names the one it replaces (`replaces_item_uuid`;\nGetLinkedData answers both ways). Only the links on the model of `from_version_uuid` are replaced. Needs write\nrights on the model.\n",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "multipart/form-data" : {
              "schema" : {
                "title" : "ReplaceLinkedDataRequest",
                "type" : "object",
                "required" : [ "request" ],
                "properties" : {
                  "request" : {
                    "type" : "string",
                    "description" : "A JSON-encoded ReplaceLinkedDataSpec (`item_uuid`, `from_version_uuid`, `item`)"
                  },
                  "file" : {
                    "type" : "string",
                    "format" : "binary",
                    "description" : "The new file, when the new item is a FILE"
                  }
                }
              },
              "encoding" : {
                "request" : {
                  "contentType" : "application/json"
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The new item and its links, and what happened to the old one's",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ReplaceLinkedDataResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "413" : {
            "$ref" : "#/components/responses/PayloadTooLargeError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/UnlinkData" : {
      "post" : {
        "operationId" : "UnlinkData",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Take links off their objects, on every Version",
        "description" : "An item that would lose its last link is deleted instead (it can be restored, back on that object). Needs write rights on each link's model; nothing is changed when one is refused.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "UnlinkDataRequest",
                "type" : "object",
                "required" : [ "link_uuids" ],
                "properties" : {
                  "link_uuids" : {
                    "type" : "array",
                    "minItems" : 1,
                    "items" : {
                      "type" : "string",
                      "format" : "uuid"
                    }
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The links taken off, and the items deleted because they lost their last link",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/UnlinkDataResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/DeleteLinkedData" : {
      "post" : {
        "operationId" : "DeleteLinkedData",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Delete items from every object and Version",
        "description" : "Restorable for `retention_days`, after which the content is purged. Needs write rights on the item's model; the user who added an item may also delete it within 24 hours without them. An item already deleted is answered as deleted; nothing is changed when one is refused.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DeleteLinkedDataRequest",
                "type" : "object",
                "required" : [ "item_uuids" ],
                "properties" : {
                  "item_uuids" : {
                    "type" : "array",
                    "minItems" : 1,
                    "items" : {
                      "type" : "string",
                      "format" : "uuid"
                    }
                  },
                  "reason" : {
                    "type" : "string"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The items deleted",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/DeleteLinkedDataResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "410" : {
            "$ref" : "#/components/responses/GoneError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/RestoreLinkedData" : {
      "post" : {
        "operationId" : "RestoreLinkedData",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Bring deleted items back",
        "description" : "Their links were kept; they show again where they were. 410 `RETENTION_PASSED` when an item was deleted longer ago than the retention period. Needs write rights on the item's model.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "RestoreLinkedDataRequest",
                "type" : "object",
                "required" : [ "item_uuids" ],
                "properties" : {
                  "item_uuids" : {
                    "type" : "array",
                    "minItems" : 1,
                    "items" : {
                      "type" : "string",
                      "format" : "uuid"
                    }
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The items restored",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/RestoreLinkedDataResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "410" : {
            "$ref" : "#/components/responses/GoneError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/DownloadLinkedData" : {
      "post" : {
        "operationId" : "DownloadLinkedData",
        "x-required-scopes" : [ "links:read" ],
        "summary" : "The content of one item, as uploaded",
        "description" : "`delivery: stream` (the default) answers the content as the body: a file byte for byte as uploaded, with its\nmedia type and file name; a text whole; a URL or an identifier as text/plain. `X-BimWorks-Sha256` carries the\nSHA-256 of a file or long text, `ETag` the same quoted.\n\n`delivery: url` answers JSON instead, a LinkedDataDownloadUrl: a GET URL of the content valid for 10 minutes\nwithout a token, which supports Range, HEAD and If-None-Match, for players, PDF viewers and a browser tab.\n`disposition: inline` asks that URL to show the content in the browser; the answer's `disposition` says what it\nwill do (inline only for the types a browser may show safely).\n\n404 `LINKED_DATA_DELETED` for a deleted item, 410 `RETENTION_PASSED` for a purged one.\n",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "DownloadLinkedDataRequest",
                "type" : "object",
                "required" : [ "item_uuid" ],
                "properties" : {
                  "item_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "delivery" : {
                    "type" : "string",
                    "enum" : [ "stream", "url" ],
                    "default" : "stream",
                    "description" : "`stream`: the content as the body; `url`: a LinkedDataDownloadUrl as JSON"
                  },
                  "disposition" : {
                    "type" : "string",
                    "enum" : [ "attachment", "inline" ],
                    "default" : "attachment",
                    "description" : "With `delivery: url`, whether the URL sends a download or shows the content"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The content",
            "headers" : {
              "ETag" : {
                "description" : "The SHA-256 of the content, quoted (files and long texts); a body the server compresses on the way carries the compressor's suffix inside the quotes, such as --gzip",
                "schema" : {
                  "type" : "string"
                }
              },
              "X-BimWorks-Sha256" : {
                "description" : "The SHA-256 of the content (files and long texts)",
                "schema" : {
                  "type" : "string"
                }
              }
            },
            "content" : {
              "application/octet-stream" : {
                "schema" : {
                  "type" : "string",
                  "format" : "binary"
                }
              },
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataDownloadUrl"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "410" : {
            "$ref" : "#/components/responses/GoneError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/ConfirmLinkMatch" : {
      "post" : {
        "operationId" : "ConfirmLinkMatch",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Confirm that a link to check is on the right object",
        "description" : "The check goes back to one pairing BIM.works was not sure of (an object matched by type and place after an upload, or the first of several objects with the link's GlobalId). That span becomes `CONFIRMED`, every later span the check stuck to becomes `OK`, and the pair is written as a compare pair override of the two Versions. `version_uuid` is a Version on which the link is marked `CHECK`. Needs write rights on the model.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ConfirmLinkMatchRequest",
                "type" : "object",
                "required" : [ "link_uuid", "version_uuid" ],
                "properties" : {
                  "link_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The confirmed span and the link with its trail",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/ConfirmLinkMatchResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/ReattachLink" : {
      "post" : {
        "operationId" : "ReattachLink",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "Put a link on another object from a Version on",
        "description" : "The older Versions keep the object they had. From `version_uuid` on the link is on `target` (`REATTACHED`, `OK`), follows that object's GlobalId to later uploads, and the newer Versions are followed again from there. On the Version the link was made on, it corrects the object the link was made on. Needs write rights on the model.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "ReattachLinkRequest",
                "type" : "object",
                "required" : [ "link_uuid", "version_uuid", "target" ],
                "properties" : {
                  "link_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "target" : {
                    "$ref" : "#/components/schemas/LinkTarget"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The link with its trail",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataLinkResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    },
    "/linkeddata/EndLink" : {
      "post" : {
        "operationId" : "EndLink",
        "x-required-scopes" : [ "links:write" ],
        "summary" : "End a link from a Version on",
        "description" : "The link stays on the older Versions and is neither shown nor followed from `from_version_uuid` on; unlike UnlinkData, the older Versions keep it. The Version must come after the one the link was made on (unlink it otherwise). Needs write rights on the model.",
        "tags" : [ "LinkedData" ],
        "requestBody" : {
          "required" : true,
          "content" : {
            "application/json" : {
              "schema" : {
                "title" : "EndLinkRequest",
                "type" : "object",
                "required" : [ "link_uuid", "from_version_uuid" ],
                "properties" : {
                  "link_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  },
                  "from_version_uuid" : {
                    "type" : "string",
                    "format" : "uuid"
                  }
                }
              }
            }
          }
        },
        "responses" : {
          "200" : {
            "description" : "The link with its trail",
            "content" : {
              "application/json" : {
                "schema" : {
                  "$ref" : "#/components/schemas/LinkedDataLinkResult"
                }
              }
            }
          },
          "400" : {
            "$ref" : "#/components/responses/BadRequestError"
          },
          "401" : {
            "$ref" : "#/components/responses/UnauthorizedError"
          },
          "403" : {
            "$ref" : "#/components/responses/ForbiddenError"
          },
          "404" : {
            "$ref" : "#/components/responses/NotFoundError"
          },
          "429" : {
            "$ref" : "#/components/responses/TooManyRequestsError"
          },
          "500" : {
            "$ref" : "#/components/responses/InternalServerError"
          },
          "503" : {
            "$ref" : "#/components/responses/ServiceUnavailableError"
          },
          "504" : {
            "$ref" : "#/components/responses/GatewayTimeoutError"
          }
        }
      }
    }
  },
  "components" : {
    "securitySchemes" : {
      "BearerAuth" : {
        "type" : "http",
        "scheme" : "bearer",
        "bearerFormat" : "base64",
        "description" : "All calls except the login calls require a bearer token: `Authorization: Bearer <token>`.\n\nThe token is the Base64-encoded auth object, returned by all login and token creation calls. These calls return\nthe full Auth object by default (the `base64` field is the token); pass `response_format: base64` to receive only\nthe token string instead.\n- LoginWithUsernamePassword / LoginWithApiToken: full access. LoginWithUsernamePassword also returns the token\n  in the `Authorization` response header.\n- CreateNodesToken / CreateRecursiveNodeToken / CreateVersionsToken: reduced scope (specific Nodes/Versions, a\n  set of allowed tasks, optional IP restrictions and expiry).\n"
      }
    },
    "headers" : {
      "Retry-After" : {
        "description" : "The number of seconds to wait before trying again",
        "schema" : {
          "type" : "integer",
          "minimum" : 0
        }
      }
    },
    "responses" : {
      "BadRequestError" : {
        "description" : "Invalid input: a missing or invalid argument, an invalid query/identifier/path, a state conflict caused by the request (for example a Node name that already exists), or an uploaded file that was rejected because it cannot be read (`type` for example `INVALID_INPUT_FILE`, `NO_CONVERTIBLE_CONTENT` or one of the `StepParserErrorCode` codes; uploading the same file again fails the same way)",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "UnauthorizedError" : {
        "description" : "Authentication failed: the bearer token is missing, malformed, expired or otherwise invalid, or the provided login credentials are incorrect",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "ForbiddenError" : {
        "description" : "Authenticated, but not allowed: no read/write rights on the target Node, the token's task or IP scope does not allow this call, or a required user feature is missing",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "NotFoundError" : {
        "description" : "The referenced entity (Node, Version, model file, upload, ...) does not exist",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "ConflictError" : {
        "description" : "The request conflicts with the current state: for example a transaction commit against a Version that is no longer the head of its Node",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "PayloadTooLargeError" : {
        "description" : "The request body is larger than the server accepts (1 GB on a standard installation)",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            },
            "example" : {
              "code" : 62,
              "type" : "PAYLOAD_TOO_LARGE",
              "domain_full" : "nl.sascom.backplane.common.library.DefaultErrorCode",
              "domain" : "DefaultErrorCode",
              "message" : "This upload is too large. The maximum size is 1 GB."
            }
          }
        }
      },
      "TooManyRequestsError" : {
        "description" : "Too many requests from this client in a short time, on an installation that limits the request rate. Wait the number of seconds in `Retry-After` before trying again",
        "headers" : {
          "Retry-After" : {
            "$ref" : "#/components/headers/Retry-After"
          }
        },
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            },
            "example" : {
              "code" : 61,
              "type" : "TOO_MANY_REQUESTS",
              "domain_full" : "nl.sascom.backplane.common.library.DefaultErrorCode",
              "domain" : "DefaultErrorCode",
              "message" : "Too many requests. Please wait a moment and try again."
            }
          }
        }
      },
      "InternalServerError" : {
        "description" : "An unexpected server-side error (database, routing, IO, unknown)",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "ServiceUnavailableError" : {
        "description" : "BIM.works is temporarily unavailable: it is restarting, stopped, or down for scheduled maintenance (`type` `SERVICE_UNAVAILABLE` or `MAINTENANCE`). Wait the number of seconds in `Retry-After` before trying again",
        "headers" : {
          "Retry-After" : {
            "$ref" : "#/components/headers/Retry-After"
          }
        },
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            },
            "examples" : {
              "unavailable" : {
                "summary" : "Restarting or stopped",
                "value" : {
                  "code" : 59,
                  "type" : "SERVICE_UNAVAILABLE",
                  "domain_full" : "nl.sascom.backplane.common.library.DefaultErrorCode",
                  "domain" : "DefaultErrorCode",
                  "message" : "BIM.works is temporarily unavailable. Please try again in a few minutes."
                }
              },
              "maintenance" : {
                "summary" : "Scheduled maintenance",
                "value" : {
                  "code" : 60,
                  "type" : "MAINTENANCE",
                  "domain_full" : "nl.sascom.backplane.common.library.DefaultErrorCode",
                  "domain" : "DefaultErrorCode",
                  "message" : "BIM.works is down for scheduled maintenance. Please try again later."
                }
              }
            }
          }
        }
      },
      "GatewayTimeoutError" : {
        "description" : "BIM.works did not respond in time (`type` `REQUEST_TIMED_OUT`). The request may still be completed: check its result before trying again",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            },
            "example" : {
              "code" : 13,
              "type" : "REQUEST_TIMED_OUT",
              "domain_full" : "nl.sascom.backplane.common.library.DefaultErrorCode",
              "domain" : "DefaultErrorCode",
              "message" : "BIM.works took too long to respond. Your request may still be completed, so check the result before you try again."
            }
          }
        }
      },
      "GoneError" : {
        "description" : "The entity existed but is gone for good: for example a linked data item whose content was purged after its retention period (`type` `RETENTION_PASSED`)",
        "content" : {
          "application/json" : {
            "schema" : {
              "$ref" : "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    },
    "schemas" : {
      "Scope" : {
        "type" : "string",
        "description" : "Authorization scope (family:verb) - the closed catalog, kept in lockstep with the server's Scope enum (docs/api-authorization-scopes-design.md)",
        "enum" : [ "fs:read", "fs:write", "model:read", "model:write", "model:upload", "geometry:read", "query:run", "gis:read", "gis:write", "checks:read", "checks:run", "checks:write", "checks:java", "actions:read", "actions:write", "collab:read", "collab:write", "links:read", "links:write", "workspaces:read", "workspaces:write", "ai:use", "bsdd:read", "bsdd:sync", "tokens:issue", "account:read", "account:write", "admin:read", "admin:write", "superadmin", "*" ]
      },
      "Auth" : {
        "type" : "object",
        "properties" : {
          "input" : {
            "type" : "object",
            "description" : "The signed authorization payload"
          },
          "hmac" : {
            "type" : "string",
            "description" : "The HMAC signature over the payload"
          },
          "hmh" : {
            "type" : "string",
            "description" : "Identifier of the key that signed this blob (opaque to clients; a configured key id, or the hash of an id-less key)"
          },
          "base64" : {
            "type" : "string",
            "description" : "The Base64 encoded JSON serialization of this object, directly usable as a bearer token"
          }
        }
      },
      "AuthResponseFormat" : {
        "type" : "string",
        "description" : "The preferred response format for calls that return authentication material: the full Auth object (\"auth\", the default), or only its Base64 encoded JSON serialization (\"base64\"), which is directly usable as a bearer token",
        "enum" : [ "auth", "base64" ]
      },
      "AuthResult" : {
        "description" : "The authentication result. Depending on the response_format in the request this is either the full Auth object (\"auth\", the default) or only its Base64 encoded JSON serialization (\"base64\")",
        "oneOf" : [ {
          "$ref" : "#/components/schemas/Auth"
        }, {
          "type" : "string",
          "description" : "The Base64 encoded JSON serialization of the Auth object"
        } ]
      },
      "ErrorResponse" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "integer",
            "description" : "Machine-readable error code"
          },
          "type" : {
            "type" : "string",
            "description" : "Machine-readable textual version of the error code"
          },
          "domain_full" : {
            "type" : "string",
            "description" : "The full domain name of the error namespace"
          },
          "domain" : {
            "type" : "string",
            "description" : "The domain of the error (namespace)"
          },
          "message" : {
            "type" : "string",
            "description" : "Human readable version of the error"
          }
        }
      },
      "Node" : {
        "type" : "object",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of this Node"
          },
          "parent_node_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the parent Node, can be null"
          },
          "has_loadable_children" : {
            "type" : "boolean",
            "description" : "Whether this Node has children that can be loaded (can be used UI purposes)"
          },
          "read_access" : {
            "type" : "boolean",
            "description" : "Whether the current Token has read access to this Node"
          },
          "write_access" : {
            "type" : "boolean",
            "description" : "Whether the current Token has write access to this Node"
          },
          "nonce" : {
            "type" : "string",
            "description" : "Currently not used"
          },
          "name" : {
            "type" : "string",
            "description" : "The name of this Node"
          },
          "folder" : {
            "type" : "boolean",
            "description" : "Whether this Node is a folder or not"
          },
          "path" : {
            "type" : "string",
            "description" : "The full path of this Node from the current Root Node"
          },
          "level" : {
            "type" : "integer",
            "description" : "The current level of this Node, indicating the depth of this Node compared to the Root Node"
          },
          "root_node_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the current Root Node of the used Token"
          },
          "type" : {
            "$ref" : "#/components/schemas/NodeType",
            "description" : "The type of this Node"
          },
          "demo_locked" : {
            "type" : "boolean",
            "description" : "Present and true on a Demo folder and on the demo models and folders in it, which are read-only (DEMO_FOLDER_READ_ONLY) - nothing can be uploaded to, created in, deleted, moved or renamed there. A folder or model you made in the Demo folder (its Uploads folder, say) is yours and not locked"
          },
          "metadata" : {
            "type" : "object",
            "description" : "Additional information for viewers"
          },
          "status" : {
            "$ref" : "#/components/schemas/RecordStatus"
          },
          "last_version" : {
            "$ref" : "#/components/schemas/ModelVersion"
          },
          "tree_node_status" : {
            "$ref" : "#/components/schemas/NodeStatus"
          },
          "last_version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "UUID of the latest Version, can be null for Nodes without active Versions"
          },
          "last_version_number" : {
            "type" : "integer",
            "description" : "The last version number (incremental id)"
          },
          "progress" : {
            "type" : "number",
            "description" : "The current progress on this Node, for example when there is an upload active. A percentage between 0-100 inclusive"
          },
          "processing" : {
            "type" : "integer",
            "description" : "Indication of the number of uploads currently being processed on this Node and all sub nodes"
          },
          "created_by" : {
            "type" : "string",
            "description" : "Username of the user that created this Node"
          },
          "created_on" : {
            "type" : "string",
            "format" : "date-time"
          },
          "versions" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ModelVersion"
            }
          },
          "errors" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ModelError"
            }
          },
          "input_file_type" : {
            "$ref" : "#/components/schemas/InputFileType"
          },
          "user_data" : {
            "type" : "object",
            "additionalProperties" : true
          }
        }
      },
      "ModelError" : {
        "type" : "object",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "UUID of this TreeErrorNode"
          },
          "node_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the Node this error belongs to"
          },
          "metadata" : {
            "type" : "object",
            "description" : "Additional untyped metadata for this error"
          },
          "node_name" : {
            "type" : "string",
            "description" : "Name of the Node this error belongs too, redundant but added for convenience"
          },
          "created_on" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "When this error was created"
          },
          "created_by" : {
            "type" : "string",
            "description" : "By whom this error was created"
          },
          "error_message" : {
            "type" : "string",
            "description" : "Human readable message"
          },
          "unique_model_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the Unique model (for internal use)"
          },
          "filename" : {
            "type" : "string",
            "description" : "The name of the model that was uploaded, for debugging purposes only"
          },
          "deleted_status" : {
            "$ref" : "#/components/schemas/RecordStatus"
          }
        }
      },
      "ModelVersion" : {
        "type" : "object",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of this Version"
          },
          "node_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the Node this Version belongs to"
          },
          "version" : {
            "type" : "integer",
            "description" : "The version (incremental)"
          },
          "discipline" : {
            "$ref" : "#/components/schemas/Discipline"
          },
          "disciplines" : {
            "type" : "array",
            "description" : "Multi-label disciplines ordered by classification share, primary first; the single discipline field stays the primary for backwards compatibility",
            "items" : {
              "$ref" : "#/components/schemas/Discipline"
            }
          },
          "discipline_source" : {
            "$ref" : "#/components/schemas/DisciplineSource"
          },
          "metadata" : {
            "type" : "object",
            "description" : "Untyped metadata for internal use"
          },
          "node_name" : {
            "type" : "string",
            "description" : "The name of the Node this version belongs to. Redundant but for convenience."
          },
          "created_on" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "When this Version was created"
          },
          "created_by" : {
            "type" : "string",
            "description" : "The username of the user that created this Version"
          },
          "status" : {
            "$ref" : "#/components/schemas/VersionStatus"
          },
          "deleted_status" : {
            "$ref" : "#/components/schemas/RecordStatus"
          },
          "demo_locked" : {
            "type" : "boolean",
            "description" : "Present and true on a Version of a demo model in a Demo folder that came with the demo models, which cannot be deleted (DEMO_FOLDER_READ_ONLY). A Version you committed on a demo model can be deleted"
          },
          "bim_context" : {
            "type" : "string",
            "description" : "Deprecated"
          },
          "input_file_type" : {
            "$ref" : "#/components/schemas/InputFileType"
          },
          "filename" : {
            "type" : "string",
            "description" : "The name of the uploaded file; absent for a Version made by a transaction"
          },
          "origin" : {
            "type" : "string",
            "enum" : [ "UPLOAD", "TRANSACTION", "BRANCH", "CONVERSION" ],
            "description" : "How the Version came into existence: `UPLOAD` an uploaded file, `TRANSACTION` a BUL transaction applied to another Version, `CONVERSION` a conversion to another IFC schema; `BRANCH` is reserved"
          },
          "transaction_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "For origin TRANSACTION, the transaction that made this Version"
          },
          "comment" : {
            "type" : "string",
            "description" : "For origin TRANSACTION, the comment of that transaction"
          },
          "model_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the model record behind this Version, for internal use"
          },
          "unique_model_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the Unique Model, for internal use"
          },
          "alignment" : {
            "type" : "array",
            "items" : {
              "type" : "number"
            },
            "minItems" : 16,
            "maxItems" : 16,
            "description" : "The Version's alignment, a 4x4 transformation as 16 numbers in column-major order (translation at 12, 13, 14, in millimetres); absent when it has none"
          },
          "geo_reference" : {
            "$ref" : "#/components/schemas/GeoReference"
          },
          "im_metadata" : {
            "$ref" : "#/components/schemas/ImMetadata"
          },
          "user_data" : {
            "type" : "object",
            "additionalProperties" : true
          }
        }
      },
      "VersionChange" : {
        "type" : "object",
        "properties" : {
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "version" : {
            "type" : "integer"
          },
          "previous_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "previous_version" : {
            "type" : "integer"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "none", "ready", "pending", "unknown", "failed", "forbidden" ],
            "description" : "`none`: a first Version; `pending`: being compared, ask again; `unknown`: only_stored and nothing stored; `forbidden`: no read rights on one of the two Versions"
          },
          "result_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "counts" : {
            "$ref" : "#/components/schemas/CompareCounts"
          },
          "error" : {
            "type" : "string"
          }
        }
      },
      "CompareCounts" : {
        "type" : "object",
        "properties" : {
          "added" : {
            "type" : "integer"
          },
          "removed" : {
            "type" : "integer"
          },
          "changed" : {
            "type" : "integer"
          },
          "unchanged" : {
            "type" : "integer"
          },
          "ignored" : {
            "type" : "integer"
          }
        }
      },
      "VersionChangesResult" : {
        "type" : "object",
        "properties" : {
          "versions" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/VersionChange"
            }
          },
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "version" : {
            "type" : "integer"
          },
          "previous_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "previous_version" : {
            "type" : "integer"
          },
          "status" : {
            "type" : "string"
          },
          "result_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "counts" : {
            "$ref" : "#/components/schemas/CompareCounts"
          },
          "error" : {
            "type" : "string"
          }
        }
      },
      "MapQidsResult" : {
        "type" : "object",
        "properties" : {
          "from_version" : {
            "type" : "string",
            "format" : "uuid"
          },
          "to_version" : {
            "type" : "string",
            "format" : "uuid"
          },
          "result_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The compare the correspondence comes from"
          },
          "pairs" : {
            "type" : "object",
            "properties" : {
              "from" : {
                "type" : "array",
                "items" : {
                  "type" : "integer"
                }
              },
              "to" : {
                "type" : "array",
                "items" : {
                  "type" : "integer"
                }
              },
              "matched_by" : {
                "type" : "array",
                "items" : {
                  "type" : "integer"
                },
                "description" : "Per pair the index of its matcher in matchers"
              }
            }
          },
          "matchers" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "unmatched" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "The asked objects of from_version without a counterpart"
          }
        }
      },
      "CompareObjectsResult" : {
        "type" : "object",
        "properties" : {
          "left" : {
            "type" : "string"
          },
          "right" : {
            "type" : "string"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "changed", "unchanged", "ignored" ]
          },
          "category" : {
            "type" : "string"
          },
          "label" : {
            "type" : "string"
          },
          "changed_features" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "changes" : {
            "type" : "object",
            "additionalProperties" : true,
            "description" : "Per changed feature at its record path its left and right value, and geometry's measures"
          },
          "watched" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "What the definition watches; a feature that differs but is not watched is not compared"
          },
          "definition" : {
            "$ref" : "#/components/schemas/CompareDefinitionRef"
          },
          "hiddenFeatures" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "CompareSide" : {
        "type" : "object",
        "description" : "One side of a compare. A side is one model, or a federation of models whose objects are matched with the other side's as one set (an object that went from one model to another is one pair)",
        "properties" : {
          "models" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ModelIdentifier"
            },
            "minItems" : 1,
            "maxItems" : 64,
            "description" : "The model of this side, or the models of a federation"
          },
          "where" : {
            "type" : "string",
            "description" : "A BQL condition every object of this side must meet besides the definition's scope, for example `type = IFCWALL`"
          }
        },
        "required" : [ "models" ]
      },
      "CompareOptions" : {
        "type" : "object",
        "properties" : {
          "details" : {
            "type" : "string",
            "enum" : [ "summary", "objects", "changes", "full" ],
            "default" : "full",
            "description" : "How much of the result to return: `summary` the counts per category, the statistics and the warnings; `objects` adds the object sets per category; `changes` adds the records of the added, removed and changed objects with what changed; `full` adds what every record reports, and the layers"
          },
          "layers" : {
            "type" : "boolean",
            "default" : true,
            "description" : "Whether `full` includes the layers"
          },
          "force" : {
            "type" : "boolean",
            "default" : false,
            "description" : "Compute again even when a stored result answers the request"
          },
          "wait_ms" : {
            "type" : "integer",
            "format" : "int64",
            "minimum" : 0,
            "description" : "Wait at most this long. A compare still running then answers 202 with `result_uuid` and `status` RUNNING and goes on in the background. Without it the call waits until the compare is done"
          },
          "category" : {
            "type" : "string",
            "description" : "Only the records of this category (an id from `summary.categories`)"
          },
          "offset" : {
            "type" : "integer",
            "minimum" : 0,
            "default" : 0,
            "description" : "The first record of the page"
          },
          "limit" : {
            "type" : "integer",
            "minimum" : 1,
            "maximum" : 10000,
            "default" : 1000,
            "description" : "The number of records in the page"
          },
          "align" : {
            "type" : "string",
            "enum" : [ "auto", "none" ],
            "description" : "Overrides the definition's `align` statement: `auto` judges the right side with the move most objects share undone (see `alignment` in the result), `none` counts that move"
          }
        }
      },
      "CompareResult" : {
        "type" : "object",
        "description" : "A compare result. Which fields are present depends on `status` and the detail level: while a compare runs only `result_uuid` and `status`",
        "properties" : {
          "result_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The stored result, for GetCompareResult"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "PENDING", "RUNNING", "READY", "FAILED" ]
          },
          "error" : {
            "type" : "string",
            "description" : "Why the compare failed (status FAILED)"
          },
          "cached" : {
            "type" : "boolean",
            "description" : "CompareModels only. Whether the result was answered from the store"
          },
          "format" : {
            "type" : "string",
            "description" : "The format of the result document, `bcol-result/1`"
          },
          "engine_version" : {
            "type" : "string",
            "description" : "The version of the compare algorithm the result was computed with"
          },
          "completed_on" : {
            "type" : "string",
            "format" : "date-time"
          },
          "left" : {
            "$ref" : "#/components/schemas/CompareResultSide"
          },
          "right" : {
            "$ref" : "#/components/schemas/CompareResultSide"
          },
          "vids" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            },
            "description" : "The left and the right Version. With a federation every model of both sides, the left side's models first; the `_v` indexes of objects, records, layers and moves point into this list"
          },
          "definition" : {
            "$ref" : "#/components/schemas/CompareDefinitionRef"
          },
          "parameters" : {
            "type" : "object",
            "description" : "What else the result was computed with besides the definition (the side conditions, the limits, a fingerprint of the caller's feature visibility)",
            "additionalProperties" : true
          },
          "stats" : {
            "$ref" : "#/components/schemas/CompareStats"
          },
          "warnings" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CompareWarning"
            }
          },
          "summary" : {
            "$ref" : "#/components/schemas/CompareSummary"
          },
          "objects" : {
            "type" : "object",
            "description" : "Details objects and up. Per category id, the object ids of each side: for pairs the two arrays are aligned, added objects have right ids only, removed objects left ids only",
            "additionalProperties" : {
              "$ref" : "#/components/schemas/CompareObjectSet"
            }
          },
          "clusters" : {
            "type" : "object",
            "description" : "Details objects and up. Per cluster id (see `summary.clusters`), the object ids of each side, aligned",
            "additionalProperties" : {
              "$ref" : "#/components/schemas/CompareObjectSet"
            }
          },
          "alignment" : {
            "$ref" : "#/components/schemas/CompareAlignment"
          },
          "moves" : {
            "$ref" : "#/components/schemas/CompareMoves"
          },
          "matchers" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "The matchers in order, `lineage` first when the Versions descend from one another; the object sets' `matched_by` index this list"
          },
          "records" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CompareRecord"
            },
            "description" : "Details changes and up. One page of the records of the added, removed and changed objects, in legend order"
          },
          "paging" : {
            "$ref" : "#/components/schemas/ComparePaging"
          },
          "layers" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CompareLayer"
            },
            "description" : "Details full. The styling of every category and side"
          },
          "hiddenFeatures" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "Features the definition reads that the caller's feature visibility hides; they were left out"
          },
          "truncated" : {
            "type" : "boolean",
            "description" : "Whether records were left out because there are more than the server keeps"
          }
        }
      },
      "CompareResultSide" : {
        "type" : "object",
        "properties" : {
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The Version; for a federation an id of its models, which names no Version"
          },
          "node_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "version" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "objects" : {
            "type" : "integer",
            "description" : "The objects of this side in the compare's scope"
          },
          "models" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CompareResultModel"
            },
            "description" : "A federation's models, in the request's order"
          }
        }
      },
      "CompareResultModel" : {
        "type" : "object",
        "description" : "One model of a federation's side",
        "properties" : {
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "node_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "version" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          }
        }
      },
      "CompareDefinitionRef" : {
        "type" : "object",
        "properties" : {
          "hash" : {
            "type" : "string",
            "description" : "The xxh64 of the definition text"
          },
          "action_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "action_version" : {
            "type" : "integer"
          }
        }
      },
      "CompareStats" : {
        "type" : "object",
        "properties" : {
          "left" : {
            "type" : "integer",
            "description" : "Objects in scope on the left"
          },
          "right" : {
            "type" : "integer",
            "description" : "Objects in scope on the right"
          },
          "matched" : {
            "type" : "integer",
            "description" : "Pairs"
          },
          "match_rate" : {
            "type" : "number",
            "description" : "Pairs per object of the smaller side"
          },
          "matched_by" : {
            "type" : "object",
            "description" : "Pairs per matcher",
            "additionalProperties" : {
              "type" : "integer"
            }
          },
          "duplicates" : {
            "type" : "object",
            "description" : "Objects not matched because their key occurs more than once on their side",
            "properties" : {
              "left" : {
                "type" : "integer"
              },
              "right" : {
                "type" : "integer"
              }
            }
          },
          "ignored" : {
            "type" : "integer",
            "description" : "Objects and pairs a rule ignored"
          },
          "lineage" : {
            "type" : "boolean",
            "description" : "Whether one Version descends from the other, so equal object ids are the same object"
          },
          "same_content" : {
            "type" : "boolean",
            "description" : "Whether both sides have identical content"
          },
          "fast_path" : {
            "type" : "object",
            "description" : "Between two Versions of one chain of edits: how many objects the edits touched, and how many pairs kept their geometry without it being measured",
            "properties" : {
              "touched" : {
                "type" : "integer"
              },
              "geometry_skipped" : {
                "type" : "integer"
              }
            }
          },
          "elapsed_ms" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "CompareWarning" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string",
            "description" : "`duplicate_key`, `low_match_rate`, `definition`, `not_available`"
          },
          "message" : {
            "type" : "string"
          },
          "details" : {
            "type" : "object",
            "additionalProperties" : true
          }
        }
      },
      "CompareSummary" : {
        "type" : "object",
        "properties" : {
          "categories" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CompareCategory"
            },
            "description" : "In legend order"
          },
          "groups" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CompareGroup"
            },
            "description" : "Counts per value of the definition's group by, the largest first"
          },
          "clusters" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/CompareCluster"
            },
            "description" : "Units that changed in the same way, the largest first; their objects are in the result's `clusters`"
          }
        }
      },
      "CompareCategory" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "Stable within a result, for example `top.changed.0`"
          },
          "kind" : {
            "type" : "string",
            "enum" : [ "added", "removed", "changed", "unchanged", "ignored" ]
          },
          "label" : {
            "type" : "string"
          },
          "rule" : {
            "type" : "string",
            "description" : "The name of the rule whose outcome block made the category"
          },
          "count" : {
            "type" : "integer"
          }
        }
      },
      "ComparePairOverride" : {
        "type" : "object",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "left_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "right_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "kind" : {
            "type" : "string",
            "enum" : [ "pair", "removed", "added" ]
          },
          "left_oid" : {
            "type" : "integer"
          },
          "right_oid" : {
            "type" : "integer"
          },
          "note" : {
            "type" : "string"
          },
          "created_by" : {
            "type" : "string"
          },
          "created_on" : {
            "type" : "string"
          }
        }
      },
      "ComparePairOverrides" : {
        "type" : "object",
        "properties" : {
          "deleted" : {
            "type" : "boolean"
          },
          "overrides" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ComparePairOverride"
            }
          }
        }
      },
      "ComparePairOverrideSet" : {
        "type" : "object",
        "properties" : {
          "override" : {
            "$ref" : "#/components/schemas/ComparePairOverride"
          },
          "overrides" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ComparePairOverride"
            }
          }
        }
      },
      "MatchCandidateObject" : {
        "type" : "object",
        "properties" : {
          "oid" : {
            "type" : "integer"
          },
          "vid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The object's Version (a federation's side has several)"
          },
          "type" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "score" : {
            "type" : "number",
            "description" : "Candidates only: 1 for the same place, size, type and name"
          },
          "distance_mm" : {
            "type" : "number",
            "description" : "Candidates only"
          }
        }
      },
      "MatchCandidatesRemoved" : {
        "type" : "object",
        "properties" : {
          "oid" : {
            "type" : "integer"
          },
          "vid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "type" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "candidates" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/MatchCandidateObject"
            }
          }
        }
      },
      "CompareBul" : {
        "type" : "object",
        "description" : "The changes of a compare of two Versions as BUL (GetCompareBul)",
        "properties" : {
          "result_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The stored compare result the BUL is made from"
          },
          "left_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "right_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "bul" : {
            "type" : "string",
            "description" : "The statements the dry run accepts, one per line"
          },
          "statements" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "bul" : {
                  "type" : "string"
                },
                "kind" : {
                  "type" : "string",
                  "description" : "attribute, property, quantity, classification, transform or delete"
                },
                "objects" : {
                  "type" : "integer",
                  "description" : "How many objects of the left Version the statement addresses"
                },
                "changes" : {
                  "type" : "integer",
                  "description" : "How many changes it writes"
                }
              }
            }
          },
          "residual" : {
            "type" : "array",
            "description" : "The changes the BUL does not write",
            "items" : {
              "type" : "object",
              "properties" : {
                "l" : {
                  "type" : "integer",
                  "description" : "The object in the left Version"
                },
                "r" : {
                  "type" : "integer",
                  "description" : "The object in the right Version"
                },
                "key" : {
                  "type" : "string",
                  "description" : "The object's GlobalId"
                },
                "name" : {
                  "type" : "string",
                  "description" : "The object's Name"
                },
                "type" : {
                  "type" : "string",
                  "description" : "The object's entity type"
                },
                "kind" : {
                  "type" : "string",
                  "description" : "added, removed, attribute, property, quantity, classification, material, relation, type or geometry"
                },
                "path" : {
                  "type" : "string",
                  "description" : "The feature that changed"
                },
                "reason" : {
                  "type" : "string"
                }
              }
            }
          },
          "coverage" : {
            "type" : "object",
            "properties" : {
              "changes" : {
                "type" : "integer",
                "description" : "A change is one feature of one object, the geometry of one object, or an added or removed object"
              },
              "in_bul" : {
                "type" : "integer"
              },
              "ratio" : {
                "type" : "number"
              }
            }
          },
          "verified" : {
            "type" : "boolean",
            "description" : "Whether every statement ran in a dry run of the left Version"
          },
          "blocker" : {
            "type" : "string",
            "description" : "Why the BUL cannot replace the right Version even with every change in it, when something does"
          },
          "record" : {
            "type" : "object",
            "description" : "Whether RecordUploadAsTransaction can replace the right Version",
            "properties" : {
              "possible" : {
                "type" : "boolean"
              },
              "reason" : {
                "type" : "string"
              }
            }
          }
        }
      },
      "RecordUploadAsTransactionResult" : {
        "type" : "object",
        "properties" : {
          "transaction" : {
            "$ref" : "#/components/schemas/CommittedTransaction"
          },
          "node" : {
            "$ref" : "#/components/schemas/Node"
          },
          "replaced_version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The upload, deleted the way deleting the last Version does (its data stays)"
          }
        }
      },
      "MatchCandidates" : {
        "type" : "object",
        "properties" : {
          "removed" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/MatchCandidatesRemoved"
            }
          },
          "added" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/MatchCandidateObject"
            }
          },
          "confirmed" : {
            "type" : "object",
            "properties" : {
              "removed" : {
                "type" : "array",
                "items" : {
                  "type" : "integer"
                }
              },
              "removed_vids" : {
                "type" : "array",
                "items" : {
                  "type" : "string",
                  "format" : "uuid"
                },
                "description" : "Aligned with `removed`, each object's Version"
              },
              "added" : {
                "type" : "array",
                "items" : {
                  "type" : "integer"
                }
              },
              "added_vids" : {
                "type" : "array",
                "items" : {
                  "type" : "string",
                  "format" : "uuid"
                },
                "description" : "Aligned with `added`, each object's Version"
              }
            }
          },
          "truncated" : {
            "type" : "boolean"
          }
        }
      },
      "CompareGroup" : {
        "type" : "object",
        "properties" : {
          "key" : {
            "type" : "object",
            "description" : "Per group-by feature its value, null when an object has none",
            "additionalProperties" : true
          },
          "counts" : {
            "type" : "object",
            "description" : "Per category id the units with this key",
            "additionalProperties" : {
              "type" : "integer"
            }
          },
          "total" : {
            "type" : "integer"
          }
        }
      },
      "CompareCluster" : {
        "type" : "object",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "Stable within a result, for example `c0`"
          },
          "category" : {
            "type" : "string"
          },
          "label" : {
            "type" : "string",
            "description" : "The change in words, for example `36 objects moved 500 mm along X`"
          },
          "count" : {
            "type" : "integer"
          },
          "signature" : {
            "type" : "object",
            "description" : "What the units share",
            "additionalProperties" : true
          }
        }
      },
      "CompareAlignment" : {
        "type" : "object",
        "description" : "The rigid move most matched objects with geometry share, when at least half of them do",
        "properties" : {
          "applied" : {
            "type" : "boolean",
            "description" : "Whether the right side was judged with the move undone (align auto)"
          },
          "translation" : {
            "type" : "array",
            "items" : {
              "type" : "number"
            },
            "description" : "x, y, z"
          },
          "unit" : {
            "type" : "string",
            "description" : "mm"
          },
          "rotation" : {
            "type" : "object",
            "properties" : {
              "angle" : {
                "type" : "number"
              },
              "axis" : {
                "type" : "array",
                "items" : {
                  "type" : "number"
                }
              },
              "unit" : {
                "type" : "string",
                "description" : "deg"
              }
            }
          },
          "matrix" : {
            "type" : "array",
            "items" : {
              "type" : "number"
            },
            "description" : "The move as a column-major 4x4 matrix in mm"
          },
          "count" : {
            "type" : "integer",
            "description" : "The pairs that share it"
          },
          "measured" : {
            "type" : "integer",
            "description" : "The pairs with geometry it was found among"
          },
          "share" : {
            "type" : "number"
          }
        }
      },
      "CompareMoves" : {
        "type" : "object",
        "description" : "Details full with layers. The pairs that moved, for drawing arrows",
        "properties" : {
          "count" : {
            "type" : "integer"
          },
          "truncated" : {
            "type" : "boolean",
            "description" : "Whether more pairs moved than `items` has (it keeps 2,000)"
          },
          "items" : {
            "type" : "array",
            "items" : {
              "type" : "array",
              "items" : {
                "type" : "number"
              }
            },
            "description" : "Per pair the left object id, the right object id, the left centre x, y, z and the right centre x, y, z in mm"
          },
          "left_v" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "A federation's left side only. Per item the index of the left object's Version in `vids`"
          },
          "right_v" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "A federation's right side only. Per item the index of the right object's Version in `vids`"
          }
        }
      },
      "CompareObjectSet" : {
        "type" : "object",
        "properties" : {
          "left" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            }
          },
          "right" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            }
          },
          "left_v" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "A federation's left side only. Aligned with `left`, the index of each object's Version in `vids` (-1 where `left` is -1)"
          },
          "right_v" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "A federation's right side only. Aligned with `right`, the index of each object's Version in `vids`"
          },
          "matched_by" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "Per pair, the index of its matcher in `matchers`"
          }
        }
      },
      "CompareRecord" : {
        "type" : "object",
        "properties" : {
          "category" : {
            "type" : "string"
          },
          "rule" : {
            "type" : "string"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "added", "removed", "changed" ]
          },
          "l" : {
            "type" : "integer",
            "description" : "The left object id"
          },
          "r" : {
            "type" : "integer",
            "description" : "The right object id"
          },
          "l_v" : {
            "type" : "integer",
            "description" : "A federation's left side only. The index of the left object's Version in `vids`"
          },
          "r_v" : {
            "type" : "integer",
            "description" : "A federation's right side only. The index of the right object's Version in `vids`"
          },
          "matched_by" : {
            "type" : "string",
            "description" : "The matcher that paired the objects"
          },
          "key" : {
            "type" : "string",
            "description" : "The GlobalId"
          },
          "changed_features" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "The watched features that changed, for example `attribute.Name`, `geometry.translation`"
          },
          "changes" : {
            "type" : "object",
            "description" : "Per changed feature, at its record path: `left`, `right`, and for numbers `delta` and `unit`, for sets `added` and `removed`; `geometry` holds the measured facets",
            "additionalProperties" : true
          },
          "report" : {
            "type" : "object",
            "description" : "Details full. What the definition reports of each object, as BQL records",
            "properties" : {
              "left" : {
                "type" : "object",
                "additionalProperties" : true
              },
              "right" : {
                "type" : "object",
                "additionalProperties" : true
              }
            }
          }
        }
      },
      "ComparePaging" : {
        "type" : "object",
        "properties" : {
          "category" : {
            "type" : "string"
          },
          "offset" : {
            "type" : "integer"
          },
          "limit" : {
            "type" : "integer"
          },
          "total" : {
            "type" : "integer",
            "description" : "The records available (of the category, or of all categories)"
          },
          "returned" : {
            "type" : "integer"
          }
        }
      },
      "CompareLayer" : {
        "type" : "object",
        "properties" : {
          "category" : {
            "type" : "string"
          },
          "kind" : {
            "type" : "string",
            "enum" : [ "added", "removed", "changed", "unchanged", "ignored", "others" ]
          },
          "side" : {
            "type" : "string",
            "enum" : [ "left", "right", "others" ]
          },
          "default_left" : {
            "type" : "boolean",
            "description" : "The left objects of pairs without a left block of their own: hidden when both sides share one viewer, styled like their right objects side by side"
          },
          "oids" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "The object ids of the layer, on its side's Version"
          },
          "oids_v" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "A federation's side only. Aligned with `oids`, the index of each object's Version in `vids`"
          },
          "actions" : {
            "type" : "object",
            "description" : "The resolved BVL actions of the layer's objects, in the shape ExecuteBvl returns",
            "additionalProperties" : true
          },
          "style" : {
            "type" : "object",
            "description" : "The others layer only. The style of loaded objects outside the compare",
            "properties" : {
              "color" : {
                "type" : "string"
              },
              "transparency" : {
                "type" : "number"
              },
              "reset" : {
                "type" : "boolean"
              },
              "visible" : {
                "type" : "boolean"
              }
            }
          }
        }
      },
      "CommitTransactionResult" : {
        "type" : "object",
        "description" : "The result of CommitTransaction. Which fields are present depends on the mode: a commit returns `transaction` and `node`; a dry run returns `updates`, `is_head` and (only when the Version is not the head) `head_version`",
        "properties" : {
          "transaction" : {
            "$ref" : "#/components/schemas/CommittedTransaction",
            "description" : "Commit only. The committed transaction and the new Version it produced"
          },
          "node" : {
            "$ref" : "#/components/schemas/Node",
            "description" : "Commit only. The full Node, including the new Version"
          },
          "updates" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/TransactionUpdate"
            },
            "description" : "Dry run only. Per update the matched and changed counts, exactly what a commit would do"
          },
          "is_head" : {
            "type" : "boolean",
            "description" : "Dry run only. Whether the given Version is the head of its Node — a commit is only accepted against the head"
          },
          "head_version" : {
            "type" : "integer",
            "description" : "Dry run only, and only when the given Version is not the head. The version number of the current head"
          },
          "next_version" : {
            "type" : "integer",
            "description" : "Dry run only, and only when the given Version is the head. The version number a commit would create (the head's number plus one)"
          },
          "oids_truncated" : {
            "type" : "boolean",
            "description" : "Dry run with include_oids only, and only when true. The updates name more objects than the server-side cap, so matched_oids and changed_oids are left out (the counts are still there)"
          }
        }
      },
      "CommittedTransaction" : {
        "type" : "object",
        "properties" : {
          "transaction_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the transaction"
          },
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the new Version the transaction produced"
          },
          "version" : {
            "type" : "integer",
            "description" : "The version number (incremental) of the new Version"
          },
          "summary" : {
            "type" : "object",
            "description" : "A summary of what the transaction did",
            "properties" : {
              "updates" : {
                "type" : "array",
                "items" : {
                  "$ref" : "#/components/schemas/TransactionUpdate"
                }
              }
            }
          },
          "deleted_oids" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "All object ids this transaction deleted (roots plus cascade), sorted ascending. Omitted when nothing was deleted and above a server-side cap (the deletion counts are always in the summary)"
          },
          "geometry_changed" : {
            "type" : "boolean",
            "description" : "The transaction added, reshaped or moved geometry (or converted the schema), so a viewer loads the new Version in full rather than hiding the deleted objects"
          },
          "links_orphaned" : {
            "type" : "integer",
            "description" : "The links whose object the transaction deleted (only when the model has linked data)"
          },
          "links_check" : {
            "type" : "integer",
            "description" : "The links on the new Version that are to check (only when the model has linked data)"
          }
        }
      },
      "TransactionUpdate" : {
        "type" : "object",
        "description" : "The effect of a single update (one SET assignment, one DEL feature, one DELETE OBJECT, or one TRANSFORM) of a transaction",
        "properties" : {
          "update_index" : {
            "type" : "integer",
            "description" : "The index of this update within the transaction, in source order"
          },
          "operation" : {
            "type" : "string",
            "enum" : [ "SET", "DEL", "DELETE_OBJECT", "TRANSFORM_OBJECT", "SET_GEOREFERENCE", "REMOVE_GEOREFERENCE" ]
          },
          "feature" : {
            "type" : "string",
            "description" : "The feature the update applies to (for example attribute.Name or property.Pset_WallCommon.IsExternal). For DELETE_OBJECT this is \"object\", for TRANSFORM_OBJECT \"placement\", for SET_GEOREFERENCE and REMOVE_GEOREFERENCE \"georeference\""
          },
          "georeference" : {
            "type" : "object",
            "description" : "Dry run of SET_GEOREFERENCE / REMOVE_GEOREFERENCE only. The raw map conversion before and after (crs, eastings, northings, orthogonal_height in the map unit, x_axis_abscissa, x_axis_ordinate, scale), the Version's stored geo reference before (stored_before) and what the new Version will store (stored_after, WGS 84), and the anchor_point",
            "additionalProperties" : true
          },
          "warnings" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "Dry run only. Advice that does not stop the commit. For SET_GEOREFERENCE / REMOVE_GEOREFERENCE, such as a TrueNorth that disagrees with the conversion or an origin outside the area of use of the CRS; for a SET whose value is a feature, how many matched objects have no value and are left alone"
          },
          "value" : {
            "type" : "string",
            "description" : "Dry run only. The new value in BUL literal syntax (strings quoted, numbers with their unit), or the feature path when every object gets its own value (SET ... = calculated.quantity.netVolume)"
          },
          "matched_count" : {
            "type" : "integer",
            "description" : "How many objects the WHERE clause matched"
          },
          "changed_count" : {
            "type" : "integer",
            "description" : "How many of the matched objects actually change(d). A SET to a value an object already has, or a DEL of a feature an object does not have, is matched but not changed"
          },
          "created_count" : {
            "type" : "integer",
            "description" : "Commit summary only. How many objects the update created"
          },
          "deleted_count" : {
            "type" : "integer",
            "description" : "How many objects the update deleted (roots plus emptied relationships and sole-reference cascade, such as property sets and representations)"
          },
          "statement_index" : {
            "type" : "integer",
            "description" : "Dry run with include_oids only. The statement the update comes from, numbering the statements (SET, DEL, DELETE OBJECT, TRANSFORM, GEOREFERENCE) of the transaction from 0, so the updates of one SET with several assignments share it. Absent for drawn objects"
          },
          "statement_lines" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "minItems" : 2,
            "maxItems" : 2,
            "description" : "Dry run with include_oids only. The first and last line (from 1) of that statement within its BUL string"
          },
          "matched_oids" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "Dry run with include_oids only. The objects the WHERE clause matched, sorted ascending. Left out when the result has oids_truncated"
          },
          "changed_oids" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            },
            "description" : "Dry run with include_oids only. The objects the update changes, sorted ascending - the matched objects that end up different, plus for TRANSFORM_OBJECT the objects that move with a matched one, and for DELETE_OBJECT the deleted roots. Left out when the result has oids_truncated"
          }
        }
      },
      "ImMetadata" : {
        "type" : "object",
        "description" : "Metadata of the indexed model (derivative set) belonging to a Version. This is the\nviewer contract: a Version can be passed to the Viewer3D/Viewer2D ModelManager once\nim_metadata is present. It is null while the model is still being processed (or when\nprocessing failed) — poll getVersion until it appears. All fields the viewers read\nare listed explicitly; additional fields may be present.\n",
        "additionalProperties" : true,
        "properties" : {
          "mid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the indexed model, used by the viewer to fetch geometry"
          },
          "ifcSchema" : {
            "type" : "string",
            "description" : "The IFC schema of the source model (e.g. IFC2X3, IFC4)"
          },
          "filename" : {
            "type" : "string",
            "description" : "The filename of the uploaded source model"
          },
          "filesize" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "The size of the source model in bytes"
          },
          "filesize_estimated" : {
            "type" : "boolean",
            "description" : "Whether filesize is an estimate (e.g. for TRANSACTION versions)"
          },
          "geometryType" : {
            "type" : "string",
            "description" : "The type of the generated geometry (e.g. BASIC, OCTREE_CHUNKED)"
          },
          "nrOfPrimitives" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "The number of geometric primitives (triangles) in the model"
          },
          "multiplierToMm" : {
            "type" : "number",
            "description" : "Multiplier to convert the model's length unit to millimeters"
          },
          "transformedBoundsMm" : {
            "$ref" : "#/components/schemas/BoundingBox"
          },
          "transformedMainBoundsMm" : {
            "$ref" : "#/components/schemas/BoundingBox"
          },
          "untransformedBoundsMm" : {
            "$ref" : "#/components/schemas/BoundingBox"
          },
          "totalBounds" : {
            "$ref" : "#/components/schemas/BoundingBox"
          },
          "obbMm" : {
            "$ref" : "#/components/schemas/OrientedBoundingBox"
          },
          "baseTranslation" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "globalTranslationVector" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "anchorPoint" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "vertexUnquantizationMatrix" : {
            "type" : "array",
            "description" : "Column-major 4x4 matrix (16 numbers) to unquantize vertex coordinates",
            "items" : {
              "type" : "number"
            },
            "minItems" : 16,
            "maxItems" : 16
          },
          "geoReference" : {
            "$ref" : "#/components/schemas/GeoReference"
          },
          "pointCloud" : {
            "$ref" : "#/components/schemas/PointCloudMetadata"
          }
        }
      },
      "BoundingBox" : {
        "type" : "object",
        "description" : "An axis-aligned bounding box",
        "properties" : {
          "min" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "max" : {
            "$ref" : "#/components/schemas/Vector3"
          }
        }
      },
      "OrientedBoundingBox" : {
        "type" : "object",
        "description" : "An oriented bounding box, defined by a center, extent and three axes",
        "additionalProperties" : true,
        "properties" : {
          "center" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "extent" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "axis1" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "axis2" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "axis3" : {
            "$ref" : "#/components/schemas/Vector3"
          }
        }
      },
      "VersionStatus" : {
        "type" : "string",
        "enum" : [ "OK", "ERROR" ]
      },
      "Discipline" : {
        "type" : "string",
        "enum" : [ "ARCHITECTURAL", "AIR_CONDITIONING", "BUILDING_SERVICES", "ELECTRICAL", "HEATING", "STRUCTURAL", "VENTILATION", "PLUMBING", "SPRINKLER", "INVENTORY", "FACILITY_MANAGEMENT", "LANDSCAPE", "PREFAB_CONCRETE", "STEEL_STRUCTURE", "SITE_OPERATIONS", "COOLING", "SPECIAL_PIPING", "PROCESS", "HVAC", "SPATIAL", "GEOTECHNICAL", "BRIDGE", "ROAD", "RAILWAY", "PORTS_AND_WATERWAYS", "TIMBER_STRUCTURE", "VERTICAL_TRANSPORT", "TUNNEL", "SURVEY", "UNKNOWN" ]
      },
      "DisciplineSource" : {
        "type" : "string",
        "description" : "Where a version's discipline value came from - USER values are never overwritten automatically, AUTO was applied by the content classifier, INHERITED was copied from the node's previous version at checkin",
        "enum" : [ "USER", "AUTO", "INHERITED" ]
      },
      "NodeStatus" : {
        "type" : "string",
        "enum" : [ "NEW", "UPLOADING", "NONE", "UNKNOWN", "DONE", "CHECKING_IN", "INDEXING", "PROCESSING", "ERROR", "RE_PROCESSING", "PENDING" ]
      },
      "NodeType" : {
        "type" : "string",
        "enum" : [ "ORGANIZATION", "SHARED", "ACCOUNT", "FOLDER", "MODEL", "VOLATILE", "ROOT", "DEMO", "WORKSPACE_ROOT" ]
      },
      "InputFileType" : {
        "type" : "string",
        "enum" : [ "IFC", "E57", "PDF", "PLY_ASCII", "LAZ", "LAS", "TEST", "ZIP", "BCF", "UNKNOWN", "FOLDER", "GLB", "GLTF", "IFCX", "DWG" ]
      },
      "PointCloudFormatSettings" : {
        "type" : "object",
        "description" : "Per-upload options for point cloud formats, applied when the uploaded model is a point\ncloud (LAS and LAZ share one option table; E57 takes only `include_classifications`). Every option has a sensible default that\ndetection fills in - pass only what detection got wrong. Unknown keys are rejected. The\nresolved effective settings (defaults + detection + these overrides, plus detection\nwarnings) are persisted in the model's im_metadata under `pointCloud`.\n\nLAS / LAZ options (LAZ is LASzip-compressed LAS: same header, same records, decoded\nchunk by chunk; the effective settings additionally record `laszip_compressor`,\n`laszip_version`, `laszip_chunk_size`, `laszip_chunks`, `laszip_items` and, for COPC\nfiles, the `copc` octree parameters):\n- `unit`: linear unit of the coordinates after scale/offset - `\"mm\"`, `\"cm\"`, `\"m\"`,\n  `\"ft\"`, `\"usft\"`. Default: from the CRS VLR, else metres.\n- `rgb_source`: `\"auto\"` (RGB if present and non-zero, else intensity, else\n  default_color), `\"rgb\"`, `\"intensity\"` or `\"none\"`. Default `\"auto\"`.\n- `color_bit_depth`: `\"auto\"` (sample-based), `8` or `16`. The LAS spec says RGB is\n  0-65535 but many writers store 0-255. Default `\"auto\"`.\n- `intensity_range`: `\"auto\"` (sampled min/max maps to 0-255 grayscale) or `[min, max]`.\n- `exclude_withheld`: drop points flagged Withheld. Default `true`.\n- `include_classifications`: array of ASPRS class codes to keep, e.g. `[2, 6]`\n  (ground, building). Default: all.\n- `default_color`: `\"#rrggbb\"` used when no RGB and no intensity. Default `\"#ffffff\"`.\n\nE57 option:\n- `include_classifications`: as for LAS, for an E57 whose points carry a `classification`\n  field (as PDAL's LAS-to-E57 export writes); rejected when no scan has one. The effective\n  settings list the per-point `fields` and the `skipped_fields` BIM.works does not use.\n",
        "additionalProperties" : true
      },
      "PointCloudMetadata" : {
        "type" : "object",
        "description" : "Present when the version is a point cloud: the effective format settings\n(PointCloudFormatSettings: defaults + detection + the upload's overrides, plus detection\nwarnings), the format, and what the 3D viewer navigates and measures by. Lengths are mm,\npositions in the model frame of the other bounds. Check-ins before recordVersion 2 have\nonly the settings and the format; the viewer then estimates what it needs, and a reindex\nfills the rest in.\n",
        "additionalProperties" : true,
        "properties" : {
          "format" : {
            "$ref" : "#/components/schemas/InputFileType"
          },
          "recordVersion" : {
            "type" : "integer",
            "description" : "2 when each point's 16-byte record carries the number of its scan (1-255, the\nposition in `scans`; 0 for none or beyond 255) in its last byte, and the octree's\nnodes their `spacing`. Absent in older check-ins, whose last byte means nothing.\n"
          },
          "robustBounds" : {
            "$ref" : "#/components/schemas/BoundingBox",
            "description" : "The box that holds the cloud but for its far stray points (reflections, sky noise):\nper axis, 0.1% of the points at each end may fall outside it, to the octree's finest\ncounting cell. The viewer fits its views to this box; culling and sectioning keep the\nexact bounds (transformedBoundsMm).\n"
          },
          "outlierShare" : {
            "type" : "number",
            "format" : "double",
            "description" : "The share of the points outside robustBounds, from 0 to 1"
          },
          "scans" : {
            "type" : "array",
            "description" : "The file's scans, in file order, with where each scanner stood. Empty for a format\nwithout scans (LAS, LAZ, PLY, XYZ).\n",
            "items" : {
              "$ref" : "#/components/schemas/PointCloudScan"
            }
          }
        }
      },
      "PointCloudScan" : {
        "type" : "object",
        "description" : "One scan of a point cloud file (an E57 data3D) as the file declares it",
        "additionalProperties" : true,
        "properties" : {
          "name" : {
            "type" : "string",
            "description" : "The scan's name, when the file gives one"
          },
          "guid" : {
            "type" : "string",
            "description" : "The scan's GUID, when the file gives one"
          },
          "position" : {
            "type" : "array",
            "description" : "The scanner's position (x, y, z) in mm; the origin when the scan has no pose",
            "items" : {
              "type" : "number",
              "format" : "double"
            },
            "minItems" : 3,
            "maxItems" : 3
          },
          "rotation" : {
            "type" : "array",
            "description" : "The scanner's rotation as a unit quaternion (x, y, z, w); the identity when the scan has no pose",
            "items" : {
              "type" : "number",
              "format" : "double"
            },
            "minItems" : 4,
            "maxItems" : 4
          },
          "points" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "The number of points the scan declares, or -1 when unknown"
          }
        }
      },
      "DatabaseStatus" : {
        "type" : "string",
        "enum" : [ "UP", "DOWN", "UNKNOWN" ]
      },
      "RecordStatus" : {
        "type" : "string",
        "enum" : [ "ACTIVE", "DELETED" ]
      },
      "VersionModelIdentifier" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ModelIdentifier"
        }, {
          "type" : "object",
          "required" : [ "uuid" ],
          "properties" : {
            "uuid" : {
              "type" : "string",
              "format" : "uuid"
            }
          }
        } ]
      },
      "GeoReference" : {
        "type" : "object",
        "properties" : {
          "latitude" : {
            "type" : "number",
            "format" : "double"
          },
          "longitude" : {
            "type" : "number",
            "format" : "double"
          },
          "elevation" : {
            "type" : "number",
            "format" : "double"
          },
          "rotation" : {
            "type" : "number",
            "format" : "double"
          },
          "epsg" : {
            "type" : "string"
          }
        }
      },
      "NodeModelIdentifier" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ModelIdentifier"
        }, {
          "type" : "object",
          "required" : [ "uuid" ],
          "properties" : {
            "uuid" : {
              "type" : "string",
              "format" : "uuid"
            },
            "recursive" : {
              "type" : "boolean",
              "description" : "Whether the Node should be traversed (completely). Use caution as this method can potentially select a very large set of models"
            }
          }
        } ]
      },
      "UrlModelIdentifier" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ModelIdentifier"
        }, {
          "type" : "object",
          "required" : [ "url" ],
          "properties" : {
            "url" : {
              "type" : "string",
              "format" : "uri"
            }
          }
        } ]
      },
      "ModelIdentifier" : {
        "type" : "object",
        "required" : [ "type" ],
        "properties" : {
          "type" : {
            "type" : "string",
            "enum" : [ "UrlModelIdentifier", "NodeModelIdentifier", "VersionModelIdentifier" ]
          },
          "name" : {
            "type" : "string",
            "description" : "Name of the model, this is sometimes communicated back to the user, for example when there are errors. When no name is provided, a best-effort is done to determine it based on the available data."
          }
        },
        "discriminator" : {
          "propertyName" : "type",
          "mapping" : {
            "VersionModelIdentifier" : "#/components/schemas/VersionModelIdentifier",
            "NodeModelIdentifier" : "#/components/schemas/NodeModelIdentifier",
            "UrlModelIdentifier" : "#/components/schemas/UrlModelIdentifier"
          }
        }
      },
      "ModelSet" : {
        "type" : "array",
        "items" : {
          "$ref" : "#/components/schemas/ModelIdentifier"
        }
      },
      "DownloadRequest" : {
        "type" : "object",
        "description" : "A model identifier, with the options of a download next to its fields. A request that holds a model identifier and nothing else is a valid download request. Instead of a model identifier, `error_uuid` names the file of an upload that failed.",
        "properties" : {
          "format" : {
            "type" : "string",
            "enum" : [ "original", "ifc", "ifcxml" ],
            "default" : "original",
            "description" : "`original`: the file as it was uploaded, byte for byte (a Version made by a transaction has no upload: it is served as `ifc`); `ifc`: the model serialized as IFC STEP (`application/ifc`), whatever the encoding it was uploaded in; `ifcxml`: the model serialized as ifcXML (`application/xml`), ISO 10303-28 for IFC2X3 and ifcXML4 for IFC4/IFC4X3. `target_schema` applies to `original` and `ifc`"
          },
          "error_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "Instead of a model identifier, the error of an upload that failed (from ListNodeErrors), whose uploaded file comes back. Needs read rights on its Node"
          },
          "type" : {
            "type" : "string",
            "description" : "The kind of model identifier, required unless error_uuid is given",
            "enum" : [ "UrlModelIdentifier", "NodeModelIdentifier", "VersionModelIdentifier" ]
          },
          "name" : {
            "type" : "string",
            "description" : "Name of the model, see ModelIdentifier"
          },
          "uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the Version (VersionModelIdentifier) or of the Node (NodeModelIdentifier)"
          },
          "url" : {
            "type" : "string",
            "format" : "uri",
            "description" : "The URL of the model (UrlModelIdentifier)"
          },
          "target_schema" : {
            "type" : "string",
            "description" : "The IFC schema to convert the model to, for example IFC4. Absent means the model as it was uploaded",
            "example" : "IFC4"
          },
          "validate" : {
            "type" : "boolean",
            "description" : "Only with target_schema. Whether to run the schema check on the converted file before it is returned, and on the model to compare with. This about doubles the time of a conversion (default: false)"
          }
        }
      },
      "SchemaConversionReportRequest" : {
        "type" : "object",
        "description" : "A model identifier, with the options of the report next to its fields.",
        "required" : [ "type" ],
        "properties" : {
          "type" : {
            "type" : "string",
            "description" : "The kind of model identifier",
            "enum" : [ "UrlModelIdentifier", "NodeModelIdentifier", "VersionModelIdentifier" ]
          },
          "name" : {
            "type" : "string",
            "description" : "Name of the model, see ModelIdentifier"
          },
          "uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The UUID of the Version (VersionModelIdentifier) or of the Node (NodeModelIdentifier)"
          },
          "url" : {
            "type" : "string",
            "format" : "uri",
            "description" : "The URL of the model (UrlModelIdentifier)"
          },
          "target_schema" : {
            "type" : "string",
            "description" : "Only for a converted download, the schema it was converted to",
            "example" : "IFC4"
          },
          "format" : {
            "type" : "string",
            "description" : "json for the summary and the report, markdown for the report as text, detail for the complete detail log (default: json)",
            "enum" : [ "json", "markdown", "detail" ]
          }
        }
      },
      "SchemaConversionSummary" : {
        "type" : "object",
        "description" : "The numbers of one schema conversion",
        "properties" : {
          "from" : {
            "type" : "string",
            "description" : "The schema of the model"
          },
          "to" : {
            "type" : "string",
            "description" : "The schema it was converted to"
          },
          "rule_set_version" : {
            "type" : "integer",
            "description" : "The version of the conversion rules"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "COMPLETED", "COMPLETED_WITH_LOSS", "FAILED" ]
          },
          "losses" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "The number of findings about information that was lost"
          },
          "additions" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "The number of findings about information that was added"
          },
          "by_severity" : {
            "type" : "object",
            "description" : "The number of findings per severity",
            "additionalProperties" : {
              "type" : "integer",
              "format" : "int64"
            }
          },
          "by_rule_type" : {
            "type" : "object",
            "description" : "The number of findings per category, for example schemaconv.loss",
            "additionalProperties" : {
              "type" : "integer",
              "format" : "int64"
            }
          },
          "objects" : {
            "type" : "object",
            "description" : "What became of the objects of the model",
            "properties" : {
              "source" : {
                "type" : "integer",
                "format" : "int64",
                "description" : "The number of objects of the model"
              },
              "kept_same_oid_same_type" : {
                "type" : "integer",
                "format" : "int64"
              },
              "kept_same_oid_retyped" : {
                "type" : "integer",
                "format" : "int64",
                "description" : "Objects that are instances of another entity in the target schema"
              },
              "inlined" : {
                "type" : "integer",
                "format" : "int64",
                "description" : "Objects that were replaced by a value or by other objects where they were referred to"
              },
              "dropped" : {
                "type" : "integer",
                "format" : "int64",
                "description" : "Objects that the target schema has no counterpart for"
              },
              "created" : {
                "type" : "integer",
                "format" : "int64",
                "description" : "Objects that the conversion created"
              },
              "target" : {
                "type" : "integer",
                "format" : "int64",
                "description" : "The number of objects of the converted model"
              }
            }
          },
          "detail_log_complete" : {
            "type" : "boolean",
            "description" : "Whether the detail log holds every finding"
          }
        }
      },
      "SchemaConversionReportResponse" : {
        "type" : "object",
        "properties" : {
          "conversion" : {
            "$ref" : "#/components/schemas/SchemaConversionSummary"
          },
          "report" : {
            "type" : "object",
            "additionalProperties" : true,
            "description" : "The conversion report, in the format of a check report. It holds the catalogue of rules, the counters per rule and entity, and a capped number of findings per rule"
          },
          "detail_log" : {
            "type" : "boolean",
            "description" : "Whether this conversion has a detail log"
          }
        }
      },
      "CheckResultsResponse" : {
        "type" : "object",
        "additionalProperties" : false,
        "description" : "The answer of Check; `results` for format json, `summary` for format summary",
        "required" : [ "modelMapping" ],
        "properties" : {
          "modelMapping" : {
            "type" : "object",
            "description" : "Mapping of model UUIDs to model UUIDs (string-to-string).",
            "additionalProperties" : {
              "type" : "string",
              "format" : "uuid"
            },
            "propertyNames" : {
              "type" : "string",
              "format" : "uuid"
            },
            "examples" : [ {
              "3b21c6c3-13bc-41ab-889e-98c509e2f6d8" : "b0beff7e-cf4b-4f63-b07b-f904e8618832"
            } ]
          },
          "results" : {
            "$ref" : "#/components/schemas/TopLevelResults"
          },
          "summary" : {
            "$ref" : "#/components/schemas/CheckSummary"
          }
        }
      },
      "TopLevelResults" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "checkJavaClass", "checkResults" ],
        "properties" : {
          "checkJavaClass" : {
            "type" : "string",
            "examples" : [ "Check3" ]
          },
          "checkResults" : {
            "$ref" : "#/components/schemas/CheckResults"
          },
          "overallResult" : {
            "$ref" : "#/components/schemas/CheckResultStatus"
          }
        }
      },
      "CheckResults" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "type", "id", "uuid", "descriptionEn", "checkResult", "titleEn", "checkLogic", "key", "resolvedActions", "summary", "results" ],
        "properties" : {
          "type" : {
            "type" : "string",
            "const" : "CheckResults"
          },
          "id" : {
            "type" : "integer",
            "examples" : [ 0 ]
          },
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "descriptionEn" : {
            "type" : "string"
          },
          "checkResult" : {
            "$ref" : "#/components/schemas/CheckResultStatus"
          },
          "titleEn" : {
            "type" : "string"
          },
          "checkLogic" : {
            "type" : "array",
            "description" : "Array of check logic entries (not detailed in the sample).",
            "items" : { }
          },
          "key" : {
            "type" : "string"
          },
          "resolvedActions" : {
            "$ref" : "#/components/schemas/ResolvedActions"
          },
          "summary" : {
            "$ref" : "#/components/schemas/CheckSummary"
          },
          "results" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ObjectCheckResult"
            }
          },
          "interaction" : {
            "$ref" : "#/components/schemas/CheckInteraction"
          }
        }
      },
      "CheckInteraction" : {
        "type" : "object",
        "additionalProperties" : false,
        "description" : "How the result objects react to a click (docs/check-result-interaction-design.md 4.1); absent when they do not.",
        "required" : [ "pick" ],
        "properties" : {
          "pick" : {
            "type" : "string",
            "enum" : [ "inline" ],
            "description" : "inline - every result object carries its pick presentation."
          },
          "hint" : {
            "type" : "string",
            "description" : "What hovering an object with a pick presentation says, e.g. \"Click a space to show its escape route\"."
          }
        }
      },
      "PickPresentation" : {
        "type" : "object",
        "additionalProperties" : false,
        "description" : "What a click on a result object shows while it is picked (docs/check-result-interaction-design.md 4).",
        "properties" : {
          "resolvedActions" : {
            "$ref" : "#/components/schemas/ResolvedActions"
          },
          "overlays" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Overlay"
            }
          }
        }
      },
      "CheckResultStatus" : {
        "type" : "string",
        "description" : "Overall result status.",
        "enum" : [ "SUCCESS", "WARNING", "ERROR", "INFO", "SKIPPED" ]
      },
      "ResolvedActions" : {
        "type" : "object",
        "description" : "What a BVL script (or the BVL of a check) does to the objects of the models, ready for a viewer. Every key but `force` is optional and present only when the script uses it; the keys not listed here (pickability, section and end-cap behaviour, wireframes, colour alterations, geometries, overlays) follow the BVL actions of the same name.",
        "additionalProperties" : true,
        "properties" : {
          "force" : {
            "type" : "boolean",
            "description" : "Visibility, pickability and section changes override what the viewer's user set by hand"
          },
          "show" : {
            "$ref" : "#/components/schemas/QidSet"
          },
          "hide" : {
            "$ref" : "#/components/schemas/QidSet"
          },
          "select" : {
            "$ref" : "#/components/schemas/QidSet"
          },
          "unselect" : {
            "$ref" : "#/components/schemas/QidSet"
          },
          "viewFit" : {
            "$ref" : "#/components/schemas/QidSet"
          },
          "viewFitOptions" : {
            "type" : "object",
            "description" : "The options of the last VIEWFIT that gives any: `VIEWFIT 1500ms FROM \"front\" MARGIN 20%`. Left out when no VIEWFIT gives one; a viewer then flies its own default.",
            "properties" : {
              "duration" : {
                "type" : "integer",
                "description" : "The flight's length in milliseconds"
              },
              "from" : {
                "type" : "string",
                "enum" : [ "top", "bottom", "front", "back", "left", "right" ],
                "description" : "The side the camera looks from"
              },
              "margin" : {
                "type" : "integer",
                "description" : "The margin around the fitted objects, in percent of the view"
              }
            }
          },
          "transition" : {
            "type" : "object",
            "description" : "The script's TRANSITION header (`TRANSITION 600ms \"ease-out\";`): show the result animated from the current state, as one ObjectStateManager.transition step (visibility, selection, colours, the fit). Left out without a header.",
            "required" : [ "duration" ],
            "properties" : {
              "duration" : {
                "type" : "integer",
                "description" : "Milliseconds"
              },
              "easing" : {
                "type" : "string",
                "enum" : [ "linear", "ease-in", "ease-out", "ease-in-out" ],
                "description" : "Left out for the client's default, ease-in-out"
              }
            }
          },
          "color" : {
            "type" : "object",
            "description" : "The new colour of objects: hex colour `#rrggbbaa` (the alpha byte is the opacity) to the objects that get it",
            "additionalProperties" : {
              "$ref" : "#/components/schemas/QidSet"
            }
          },
          "colorReset" : {
            "$ref" : "#/components/schemas/QidSet"
          },
          "labels" : {
            "type" : "array",
            "description" : "Texts shown next to objects (BVL `label`), one entry per object with its qid and its labels",
            "items" : {
              "type" : "object",
              "additionalProperties" : true
            }
          },
          "annotations" : {
            "type" : "array",
            "description" : "Annotations placed at objects (BVL `annotate`), one entry per object with its qid and its annotations",
            "items" : {
              "type" : "object",
              "additionalProperties" : true
            }
          }
        },
        "required" : [ "force" ],
        "examples" : [ {
          "force" : true,
          "color" : {
            "#ff0000ff" : {
              "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb" : [ 1316, 1402 ]
            }
          },
          "viewFit" : {
            "7a6f8454-4f1c-4a99-bb85-d2d3952ec2eb" : [ 1316, 1402 ]
          }
        } ]
      },
      "TextToActionResult" : {
        "type" : "object",
        "description" : "An action written by the language model, parsed and formatted by the server",
        "properties" : {
          "language" : {
            "type" : "string",
            "enum" : [ "BQL", "BVL", "BCL" ],
            "description" : "The language of `query`, and so the call that runs it: BQL with Query, BVL with ResolveBvl, BCL with Check"
          },
          "query" : {
            "type" : "string",
            "description" : "The action's code, formatted"
          },
          "main_type" : {
            "type" : "string",
            "description" : "The action type as the actions tree stores it (QUERY3, BVL, CHECK3), to save the answer as an action"
          },
          "description" : {
            "type" : "string",
            "description" : "The input text, as the description of the action"
          },
          "output_shape" : {
            "type" : "string",
            "description" : "For a query, the shape of its result: SCALAR, COMPLEX, LIST_OF_SCALAR or LIST_OF_COMPLEX (one record per object or group, the usual one)"
          },
          "input_arche_type" : {
            "type" : "string",
            "description" : "For a query, the kind of input it runs on (ONE_SET_OF_QIDS)"
          }
        },
        "required" : [ "language", "query", "main_type" ],
        "examples" : [ {
          "language" : "BVL",
          "query" : "if (type = IFCWALL AND property.*.IsExternal = true) {\n    COLOR \"red\";\n}\n",
          "main_type" : "BVL",
          "description" : "Show the external walls in red"
        } ]
      },
      "CheckSummary" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "hasAuxiliary2D", "errors", "successes", "warnings", "infos", "skipped", "overallResult", "hasVisualization" ],
        "properties" : {
          "hasAuxiliary2D" : {
            "type" : "boolean"
          },
          "errors" : {
            "type" : "integer",
            "minimum" : 0
          },
          "successes" : {
            "type" : "integer",
            "minimum" : 0
          },
          "warnings" : {
            "type" : "integer",
            "minimum" : 0
          },
          "infos" : {
            "type" : "integer",
            "minimum" : 0
          },
          "skipped" : {
            "type" : "integer",
            "minimum" : 0
          },
          "overallResult" : {
            "$ref" : "#/components/schemas/CheckResultStatus"
          },
          "hasVisualization" : {
            "type" : "boolean"
          }
        }
      },
      "ObjectCheckResult" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "type", "id", "uuid", "checkResult", "resolvedActions", "objectInfos", "modelInfo", "camera", "multiplierToMm", "centerMm", "isolate", "hasGeometry" ],
        "properties" : {
          "type" : {
            "type" : "string",
            "const" : "ObjectCheckResult"
          },
          "id" : {
            "type" : "integer",
            "examples" : [ 1 ]
          },
          "uuid" : {
            "type" : "string",
            "format" : "uuid",
            "examples" : [ "15b79009-5d6b-4c03-85f4-3e303c2eb829" ]
          },
          "checkResult" : {
            "$ref" : "#/components/schemas/CheckResultStatus"
          },
          "resolvedActions" : {
            "$ref" : "#/components/schemas/ResolvedActions"
          },
          "objectInfos" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/ObjectInfo"
            }
          },
          "modelInfo" : {
            "$ref" : "#/components/schemas/ModelInfo"
          },
          "camera" : {
            "$ref" : "#/components/schemas/Camera"
          },
          "multiplierToMm" : {
            "type" : "number",
            "description" : "Unit multiplier to millimeters.",
            "examples" : [ 1000 ]
          },
          "centerMm" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "isolate" : {
            "type" : "boolean"
          },
          "hasGeometry" : {
            "type" : "boolean"
          },
          "overlays" : {
            "type" : "array",
            "description" : "Semantic geometry for the viewers, one overlay per model version (docs/check-overlays-design.md).",
            "items" : {
              "$ref" : "#/components/schemas/Overlay"
            }
          },
          "pick" : {
            "$ref" : "#/components/schemas/PickPresentation"
          }
        }
      },
      "Overlay" : {
        "type" : "object",
        "additionalProperties" : false,
        "description" : "Semantic geometry a check attaches to a result. All lengths and coordinates are millimetres in the raw world frame of the bound model version. The viewer skips item types it does not know.",
        "required" : [ "version", "bind", "layers" ],
        "properties" : {
          "version" : {
            "type" : "integer",
            "const" : 1
          },
          "bind" : {
            "$ref" : "#/components/schemas/OverlayBinding"
          },
          "layers" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/OverlayLayer"
            }
          }
        }
      },
      "OverlayBinding" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "versionUuid" ],
        "properties" : {
          "modelUuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The model (node) of the version; used to fall back to another loaded version of the same model."
          },
          "versionUuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The model version whose raw world frame the coordinates are in."
          },
          "onOtherVersion" : {
            "type" : "string",
            "enum" : [ "stale", "hide" ],
            "description" : "What to do when only another version of the model is loaded. Default stale."
          }
        }
      },
      "OverlayLayer" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "id", "items" ],
        "properties" : {
          "id" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "visible" : {
            "type" : "boolean"
          },
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/OverlayItem"
            }
          }
        }
      },
      "OverlayItem" : {
        "oneOf" : [ {
          "$ref" : "#/components/schemas/OverlayArrowItem"
        }, {
          "$ref" : "#/components/schemas/OverlayAreaItem"
        }, {
          "$ref" : "#/components/schemas/OverlayLabelItem"
        }, {
          "$ref" : "#/components/schemas/OverlayPathItem"
        } ],
        "discriminator" : {
          "propertyName" : "type",
          "mapping" : {
            "arrow" : "#/components/schemas/OverlayArrowItem",
            "area" : "#/components/schemas/OverlayAreaItem",
            "label" : "#/components/schemas/OverlayLabelItem",
            "path" : "#/components/schemas/OverlayPathItem"
          }
        }
      },
      "OverlayItemCommon" : {
        "type" : "object",
        "required" : [ "type", "id" ],
        "properties" : {
          "type" : {
            "type" : "string"
          },
          "id" : {
            "type" : "string",
            "description" : "Unique within the overlay."
          },
          "role" : {
            "type" : "string",
            "enum" : [ "route", "hazard", "warning", "ok", "info", "area", "neutral" ],
            "description" : "Semantic role, mapped to the design-system palette by the viewer."
          },
          "color" : {
            "type" : "string",
            "pattern" : "^#[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$",
            "description" : "Overrides the role colour."
          },
          "depth" : {
            "type" : "string",
            "enum" : [ "test", "ghost", "always" ]
          },
          "qids" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "Related model objects."
          },
          "label" : {
            "type" : "string"
          },
          "labelShow" : {
            "type" : "string",
            "enum" : [ "always", "hover" ],
            "description" : "When the label is on screen; hover shows it only while the item or one of its objects is under the cursor. Default always."
          },
          "tooltip" : {
            "type" : "string"
          },
          "views" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "enum" : [ "3d", "2d" ]
            }
          },
          "storey" : {
            "type" : "string",
            "description" : "Storey qid hint for the 2D viewer."
          }
        }
      },
      "OverlayArrowItem" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/OverlayItemCommon"
        }, {
          "type" : "object",
          "required" : [ "origin", "direction" ],
          "properties" : {
            "origin" : {
              "type" : "array",
              "items" : {
                "type" : "number"
              },
              "minItems" : 3,
              "maxItems" : 3
            },
            "direction" : {
              "type" : "array",
              "items" : {
                "type" : "number"
              },
              "minItems" : 3,
              "maxItems" : 3
            },
            "length" : {
              "type" : "number",
              "description" : "Millimetres, required for world-size arrows."
            },
            "size" : {
              "type" : "string",
              "enum" : [ "world", "screen" ]
            },
            "headLength" : {
              "type" : "number"
            }
          }
        } ]
      },
      "OverlayAreaItem" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/OverlayItemCommon"
        }, {
          "type" : "object",
          "description" : "Planar polygons and circles; 2D coordinates on the horizontal plane z, or in plane when z is absent.",
          "properties" : {
            "polygons" : {
              "type" : "array",
              "items" : {
                "type" : "object",
                "required" : [ "outer" ],
                "properties" : {
                  "outer" : {
                    "type" : "array",
                    "description" : "Flat x,y ring, not closed.",
                    "items" : {
                      "type" : "number"
                    }
                  },
                  "holes" : {
                    "type" : "array",
                    "items" : {
                      "type" : "array",
                      "items" : {
                        "type" : "number"
                      }
                    }
                  }
                }
              }
            },
            "circles" : {
              "type" : "array",
              "items" : {
                "type" : "object",
                "required" : [ "center", "radius" ],
                "properties" : {
                  "center" : {
                    "type" : "array",
                    "items" : {
                      "type" : "number"
                    },
                    "minItems" : 2,
                    "maxItems" : 2
                  },
                  "radius" : {
                    "type" : "number"
                  }
                }
              }
            },
            "z" : {
              "type" : "number"
            },
            "plane" : {
              "type" : "object",
              "required" : [ "origin", "xAxis", "normal" ],
              "properties" : {
                "origin" : {
                  "type" : "array",
                  "items" : {
                    "type" : "number"
                  }
                },
                "xAxis" : {
                  "type" : "array",
                  "items" : {
                    "type" : "number"
                  }
                },
                "normal" : {
                  "type" : "array",
                  "items" : {
                    "type" : "number"
                  }
                }
              }
            },
            "lift" : {
              "type" : "number"
            },
            "style" : {
              "type" : "object",
              "properties" : {
                "fill" : {
                  "type" : "number",
                  "minimum" : 0,
                  "maximum" : 1
                },
                "outline" : {
                  "type" : "boolean"
                },
                "hatch" : {
                  "type" : "string"
                }
              }
            }
          }
        } ]
      },
      "OverlayLabelItem" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/OverlayItemCommon"
        }, {
          "type" : "object",
          "required" : [ "at", "text" ],
          "properties" : {
            "at" : {
              "type" : "array",
              "items" : {
                "type" : "number"
              },
              "minItems" : 3,
              "maxItems" : 3
            },
            "text" : {
              "type" : "string"
            }
          }
        } ]
      },
      "OverlayPathItem" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/OverlayItemCommon"
        }, {
          "type" : "object",
          "description" : "A 3D polyline on the walking surface, such as an escape route; the viewer draws it as a tube (snake) raised by lift.",
          "required" : [ "points" ],
          "properties" : {
            "points" : {
              "type" : "array",
              "description" : "Flat x,y,z triples on the walking surface, millimetres, at most 20000 points.",
              "items" : {
                "type" : "number"
              },
              "minItems" : 6
            },
            "lift" : {
              "type" : "number",
              "description" : "Height of the drawing above the points in millimetres; default the tube radius + 10."
            },
            "directed" : {
              "type" : "boolean",
              "description" : "The path runs from its first point to its last."
            },
            "style" : {
              "type" : "object",
              "properties" : {
                "kind" : {
                  "type" : "string",
                  "enum" : [ "snake", "line", "ribbon" ]
                },
                "radius" : {
                  "type" : "number",
                  "description" : "Tube radius in millimetres, default 60."
                },
                "smooth" : {
                  "type" : "string",
                  "enum" : [ "none", "corners", "spline" ]
                }
              }
            },
            "arrows" : {
              "type" : "object",
              "required" : [ "spacing" ],
              "properties" : {
                "spacing" : {
                  "type" : "number",
                  "description" : "Arc length between direction cones, millimetres."
                }
              }
            },
            "stations" : {
              "type" : "object",
              "required" : [ "interval" ],
              "properties" : {
                "interval" : {
                  "type" : "number"
                },
                "labels" : {
                  "type" : "boolean"
                }
              }
            },
            "marks" : {
              "type" : "array",
              "items" : {
                "type" : "object",
                "required" : [ "at" ],
                "properties" : {
                  "at" : {
                    "type" : "number",
                    "description" : "Arc length from the first point, millimetres."
                  },
                  "kind" : {
                    "type" : "string",
                    "description" : "door, stair, storey, exit, limit or info."
                  },
                  "label" : {
                    "type" : "string"
                  }
                }
              }
            },
            "segmentRoles" : {
              "type" : "array",
              "description" : "Runs [from, to, role] of segments between point indices drawn in another role.",
              "items" : {
                "type" : "array",
                "minItems" : 3,
                "maxItems" : 3,
                "items" : { }
              }
            }
          }
        } ]
      },
      "ObjectInfo" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "qid", "name", "longName", "globalId", "niceType" ],
        "properties" : {
          "qid" : {
            "type" : "string",
            "description" : "Qualified object identifier.",
            "examples" : [ "b0beff7e-cf4b-4f63-b07b-f904e8618832-813" ]
          },
          "name" : {
            "type" : "string",
            "examples" : [ "Wand-002" ]
          },
          "longName" : {
            "type" : [ "string", "null" ],
            "examples" : [ null ]
          },
          "globalId" : {
            "type" : "string",
            "examples" : [ "2UZhzWc8v0fA0sfv__WgLn" ]
          },
          "niceType" : {
            "type" : [ "string", "null" ],
            "examples" : [ null ]
          }
        }
      },
      "ModelInfo" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "ifcProjectGuid", "filename", "uploadDateTimeUtc" ],
        "properties" : {
          "ifcProjectGuid" : {
            "type" : "string",
            "examples" : [ "1dzyWEOh99jRUBVYP$exmF" ]
          },
          "filename" : {
            "type" : "string",
            "examples" : [ "institute.ifc" ]
          },
          "uploadDateTimeUtc" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "UTC timestamp.",
            "examples" : [ "2026-01-28T12:54:41.839542Z" ]
          }
        }
      },
      "Camera" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "position", "lookat", "up" ],
        "properties" : {
          "position" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "lookat" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "up" : {
            "$ref" : "#/components/schemas/Vector3"
          }
        }
      },
      "Vector3" : {
        "type" : "object",
        "additionalProperties" : false,
        "required" : [ "x", "y", "z" ],
        "properties" : {
          "x" : {
            "type" : "number"
          },
          "y" : {
            "type" : "number"
          },
          "z" : {
            "type" : "number"
          }
        }
      },
      "CityGML3ExportSettings" : {
        "type" : "object",
        "properties" : {
          "crs" : {
            "type" : "string",
            "description" : "The CRS, this can be:\n\"AUTO\", in that case BIM.works will determine a CRS based on the GeoReference, if you already know the CRS you want, don't use this.\n\"EPSG:[code]\" to specify a particular EPSG system based on it's code.\n"
          },
          "lod0" : {
            "$ref" : "#/components/schemas/CityGML3ExportLod"
          },
          "lod1" : {
            "$ref" : "#/components/schemas/CityGML3ExportLod"
          },
          "lod2" : {
            "$ref" : "#/components/schemas/CityGML3ExportLod"
          },
          "lod3" : {
            "$ref" : "#/components/schemas/CityGML3ExportLod"
          }
        }
      },
      "CityGML3ExportLod" : {
        "type" : "object",
        "properties" : {
          "landUse" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "building" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "storey" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "buildingRoom" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "buildingUnit" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "buildingConstructiveElement" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "door" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "window" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "buildingInstallation" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "wallSurface" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "floorSurface" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "roofSurface" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          },
          "wall" : {
            "$ref" : "#/components/schemas/CityGML3ExportType"
          }
        }
      },
      "CityGML3ExportType" : {
        "type" : "object",
        "properties" : {
          "selection" : {
            "type" : "string",
            "description" : "BQL that selects which objects should (per object) be converted to the parent citygml type"
          },
          "filter" : {
            "type" : "string",
            "description" : "BQL that filters the included objects that will contribute to the geometry, by default this only includes the subject (the result of \"select\")"
          },
          "geometry" : {
            "$ref" : "#/components/schemas/CityGML3ExportGeometry"
          },
          "slice_height_mm" : {
            "type" : "number",
            "format" : "double",
            "default" : 0,
            "description" : "For SLICE_2D on a building, the height of the cut above the IfcSite placement in millimetres"
          }
        }
      },
      "CityGML3ExportGeometry" : {
        "type" : "string",
        "description" : "What type of geometry to export",
        "enum" : [ "PROJECTION_2D", "SLICE_2D", "FULL_3D", "EXTERIOR_3D", "AABB_3D", "OBB_3D", "SIMPLIFIED_3D" ]
      },
      "QidSet" : {
        "type" : "object",
        "description" : "Object ids per model version - the JSON form of a BIM.works qid set - keyed by version uuid, each value the object ids (oids) in that version.",
        "additionalProperties" : {
          "type" : "array",
          "items" : {
            "type" : "integer",
            "format" : "int32"
          }
        },
        "example" : {
          "0d1b2c3e-1111-4222-8333-444455556666" : [ 12, 44, 91 ]
        }
      },
      "ObjectStyling" : {
        "type" : "object",
        "description" : "Which objects a call works on and how they are styled, as BQL and BVL - the same fields the 3D Tiles settings, the vector export and the interactive viewer take. All optional; without any of them the call uses its default scope and the objects' own colours.",
        "properties" : {
          "bql" : {
            "type" : "string",
            "description" : "A BQL query (or a bare boolean expression) whose result objects are the visible set. Objects outside it are absent from the output."
          },
          "bql_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "A stored BQL query used instead of bql."
          },
          "bvl" : {
            "type" : "string",
            "description" : "A BVL script - SHOW/HIDE, COLOR, label(), annotate(text()), VIEWFIT. Actions that only mean something in the interactive viewer are ignored."
          },
          "bvl_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "A stored BVL script used instead of bvl."
          },
          "parameters" : {
            "type" : "object",
            "additionalProperties" : true,
            "description" : "Values for the $name parameters of bql and bvl."
          },
          "highlight" : {
            "$ref" : "#/components/schemas/QidSet"
          }
        }
      },
      "VectorView" : {
        "type" : "object",
        "description" : "The orthographic view of a vector drawing.",
        "properties" : {
          "view" : {
            "type" : "string",
            "enum" : [ "top", "bottom", "front", "back", "left", "right" ],
            "default" : "top"
          },
          "direction" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "cut" : {
            "type" : "number",
            "format" : "double",
            "description" : "Cut plane in world millimetres along the view direction; geometry on the camera side is removed. A storey elevation plus 1100 is that storey's floor plan."
          },
          "cut_fraction" : {
            "type" : "number",
            "format" : "double",
            "minimum" : 0,
            "maximum" : 1,
            "description" : "Cut as a fraction through the bulk of the visible geometry (0.5 = mid height); resolved to millimetres server-side."
          },
          "size" : {
            "type" : "integer",
            "minimum" : 256,
            "maximum" : 8192,
            "default" : 2048,
            "description" : "Resolution of the visibility raster."
          },
          "jitter" : {
            "type" : "integer",
            "minimum" : 1,
            "maximum" : 8,
            "default" : 4,
            "description" : "Jittered passes of the visibility raster."
          },
          "hairline" : {
            "type" : "boolean",
            "default" : false,
            "description" : "Every line one screen pixel wide at any zoom (vector-effect non-scaling-stroke) instead of a width relative to the drawing."
          }
        }
      },
      "LabelSettings" : {
        "type" : "object",
        "description" : "How BVL labels are drawn.",
        "properties" : {
          "size" : {
            "type" : "number",
            "format" : "double",
            "default" : 250,
            "description" : "Font size in drawing millimetres (2.5 mm on paper at 1:100)."
          },
          "fit" : {
            "type" : "string",
            "enum" : [ "overflow", "shrink", "omit" ],
            "default" : "overflow",
            "description" : "What happens when a label is wider than the object it sits in."
          }
        }
      },
      "ExportVectorSvgRequest" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/VectorView"
        }, {
          "type" : "object",
          "properties" : {
            "model" : {
              "$ref" : "#/components/schemas/ModelIdentifier"
            },
            "styling" : {
              "$ref" : "#/components/schemas/ObjectStyling"
            },
            "labels" : {
              "$ref" : "#/components/schemas/LabelSettings"
            },
            "cache" : {
              "type" : "string",
              "enum" : [ "use", "bypass", "refresh" ],
              "default" : "use",
              "description" : "Consult the drawing cache (use), skip it (bypass) or replace its entry (refresh)."
            }
          },
          "required" : [ "model" ]
        } ]
      },
      "TilesSettings" : {
        "allOf" : [ {
          "$ref" : "#/components/schemas/ObjectStyling"
        }, {
          "type" : "object",
          "properties" : {
            "undulate" : {
              "type" : "boolean",
              "description" : "Add the geoid height to the tileset's root bounds."
            },
            "full" : {
              "type" : "boolean",
              "description" : "Skip the LOD2 extrusion and serve per-object geometry directly."
            },
            "visibility" : {
              "type" : "array",
              "deprecated" : true,
              "description" : "The viewer-state form of the selection; use bql.",
              "items" : {
                "type" : "object",
                "properties" : {
                  "action" : {
                    "type" : "string",
                    "enum" : [ "set", "add" ]
                  },
                  "query" : {
                    "type" : "string"
                  }
                }
              }
            }
          }
        } ]
      },
      "Session" : {
        "type" : "object",
        "properties" : {
          "kind" : {
            "type" : "string",
            "enum" : [ "account", "api_token", "delegated", "workspace", "anonymous_token", "anonymous", "system", "oauth", "ops" ],
            "description" : "What the credential is"
          },
          "username" : {
            "type" : "string",
            "description" : "The account (or, for an API token, the account that created it)"
          },
          "expires" : {
            "type" : "string",
            "format" : "date-time",
            "description" : "When the credential expires (UTC)"
          },
          "scopes" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "The scopes it grants; absent when it is unscoped"
          },
          "root_node_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The Node it is rooted at; absent for a nodes or versions token, which has none"
          },
          "node_uuids" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            },
            "description" : "For a nodes token (CreateNodesToken), the Nodes it names"
          },
          "version_uuids" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            },
            "description" : "For a versions token (CreateVersionsToken), the Versions it names"
          },
          "account" : {
            "$ref" : "#/components/schemas/SessionAccount"
          }
        }
      },
      "SessionAccount" : {
        "type" : "object",
        "description" : "The account behind the credential, when it grants account:read",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "username" : {
            "type" : "string"
          },
          "organization_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "type" : {
            "type" : "string",
            "enum" : [ "USER", "SUPER_ADMIN" ]
          }
        }
      },
      "ApiToken" : {
        "type" : "object",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "name" : {
            "type" : "string"
          },
          "organization_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "created_by" : {
            "type" : "string"
          },
          "created_on" : {
            "type" : "string",
            "description" : "ISO date-time, UTC"
          },
          "root_node_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "ACTIVE", "DELETED" ]
          },
          "last_login" : {
            "type" : [ "string", "null" ]
          },
          "scopes" : {
            "type" : [ "array", "null" ],
            "items" : {
              "type" : "string"
            },
            "description" : "null for a token from before scopes (see credentials)"
          },
          "credentials" : {
            "type" : [ "array", "null" ],
            "items" : {
              "type" : "string",
              "enum" : [ "READ", "WRITE" ]
            },
            "description" : "The legacy rights, derived from the scopes"
          },
          "bim_context" : {
            "type" : "string"
          },
          "last_four" : {
            "type" : [ "string", "null" ],
            "description" : "The end of the secret"
          },
          "expires_on" : {
            "type" : [ "string", "null" ],
            "description" : "ISO date-time, UTC; null for a token that never expires"
          },
          "only_cors_enabled_addresses" : {
            "type" : "boolean"
          },
          "cors_enabled_addresses" : {
            "type" : [ "array", "null" ],
            "items" : {
              "type" : "string"
            }
          },
          "only_white_listed_ip_addresses" : {
            "type" : "boolean"
          },
          "white_listed_ip_addresses" : {
            "type" : [ "array", "null" ],
            "items" : {
              "type" : "string"
            }
          },
          "token" : {
            "type" : "string",
            "format" : "password",
            "description" : "UpdateApiToken with rotate_secret only: the new secret, shown once"
          }
        }
      },
      "ApiTokenSecret" : {
        "type" : "object",
        "properties" : {
          "token" : {
            "type" : "string",
            "format" : "password",
            "description" : "The secret, shown once (BAT-...)"
          },
          "expires_on" : {
            "type" : "string",
            "description" : "ISO date-time, UTC"
          }
        }
      },
      "AccountSettings" : {
        "type" : "object",
        "properties" : {
          "full_name" : {
            "type" : "string"
          },
          "country_code" : {
            "type" : "string",
            "description" : "ISO 3166 (ListReferenceValues countries)"
          },
          "preferred_language" : {
            "type" : "string",
            "description" : "ISO 639-1 (ListReferenceValues languages)"
          },
          "time_zone_id" : {
            "type" : "string",
            "description" : "A tz identifier (ListReferenceValues time_zones)"
          },
          "bim_context" : {
            "type" : "string"
          },
          "show_deleted_nodes" : {
            "type" : "boolean"
          },
          "email_about_vulnerabilities" : {
            "type" : "boolean"
          },
          "ui_mode" : {
            "type" : "string",
            "enum" : [ "END_USER", "DEVELOPER" ]
          }
        }
      },
      "ReferenceValue" : {
        "type" : "object",
        "properties" : {
          "code" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          }
        }
      },
      "AccountEntry" : {
        "type" : "object",
        "description" : "An account (account, user, sign_in) or an open invite (invite)",
        "properties" : {
          "account" : {
            "type" : "object",
            "additionalProperties" : true,
            "description" : "uuid, username, type, status, created_at, organization_uuid, root_node_uuid, ..."
          },
          "user" : {
            "type" : "object",
            "additionalProperties" : true,
            "description" : "uuid, username, account_uuid, level, created_at, last_login, last_active and email_validation_status; never the settings or the registration's geo lookup"
          },
          "sign_in" : {
            "type" : "object",
            "properties" : {
              "password" : {
                "type" : "boolean"
              },
              "two_factor" : {
                "type" : "boolean"
              },
              "providers" : {
                "type" : "array",
                "items" : {
                  "type" : "string"
                }
              }
            }
          },
          "invite" : {
            "type" : "object",
            "additionalProperties" : true,
            "description" : "uuid, email_address, created_by, created_on, valid_until, first_opened, last_opened, status"
          }
        }
      },
      "Organization" : {
        "type" : "object",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "name" : {
            "type" : "string"
          },
          "created_at" : {
            "type" : "string"
          },
          "created_by" : {
            "type" : "string"
          },
          "primary_domain_name" : {
            "type" : [ "string", "null" ]
          },
          "root_node_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "ACTIVE", "DELETED" ]
          },
          "self_registration_enabled" : {
            "type" : "boolean"
          }
        }
      },
      "UserFeatureState" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string"
          },
          "title" : {
            "type" : "string"
          },
          "description" : {
            "type" : "string"
          },
          "url" : {
            "type" : "string"
          },
          "developer_only" : {
            "type" : "boolean"
          },
          "enabled" : {
            "type" : "boolean"
          }
        }
      },
      "GeoReferenceResult" : {
        "type" : "object",
        "properties" : {
          "geo_reference" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/GeoReference"
            }, {
              "type" : "null"
            } ]
          },
          "anchor_point" : {
            "oneOf" : [ {
              "$ref" : "#/components/schemas/Vector3"
            }, {
              "type" : "null"
            } ],
            "description" : "With model: the point in model coordinates the georeference places"
          },
          "grid_convergence" : {
            "type" : "number",
            "description" : "Degrees between grid north and true north at the point; absent when 0"
          },
          "rotation_north" : {
            "type" : "string",
            "enum" : [ "GRID", "TRUE" ]
          },
          "map_conversion" : {
            "type" : "object",
            "additionalProperties" : true,
            "description" : "With include_map_conversion: what the model's IfcMapConversion says"
          },
          "original_epsg" : {
            "type" : "string",
            "description" : "With include_source: the coordinate system the georeference was found in"
          },
          "geo_reference_source" : {
            "$ref" : "#/components/schemas/GeoReferenceSource"
          }
        }
      },
      "GeoReferenceSource" : {
        "type" : "object",
        "description" : "Where a copied georeference came from (CopyGeoReference); absent for one of the Version's own",
        "properties" : {
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The Version it was copied from"
          },
          "alignment" : {
            "oneOf" : [ {
              "type" : "array",
              "items" : {
                "type" : "number"
              },
              "minItems" : 16,
              "maxItems" : 16
            }, {
              "type" : "null"
            } ],
            "description" : "The alignment the Version had when it was copied (mm, column-major), null for none"
          },
          "node_name" : {
            "type" : "string",
            "description" : "The name of the Node it was copied from, while that Version exists"
          },
          "version" : {
            "type" : "integer",
            "description" : "The number of the Version it was copied from, while it exists"
          }
        }
      },
      "CopiedGeoReference" : {
        "type" : "object",
        "properties" : {
          "geo_reference" : {
            "$ref" : "#/components/schemas/GeoReference"
          },
          "anchor_point" : {
            "$ref" : "#/components/schemas/Vector3",
            "description" : "The point in the target's model coordinates the georeference places"
          },
          "rotation_north" : {
            "type" : "string",
            "enum" : [ "GRID", "TRUE" ]
          },
          "original_epsg" : {
            "type" : "string",
            "description" : "The coordinate system the source's georeference was found in"
          },
          "grid_convergence" : {
            "type" : "number",
            "description" : "Degrees between grid north and true north at the point; absent when 0"
          },
          "geo_reference_source" : {
            "$ref" : "#/components/schemas/GeoReferenceSource"
          },
          "warnings" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "What may make the copy wrong, e.g. a target without an alignment"
          }
        }
      },
      "ExtractedGeoReference" : {
        "type" : "object",
        "properties" : {
          "geo_reference" : {
            "$ref" : "#/components/schemas/GeoReference"
          },
          "anchor_point" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "original_epsg" : {
            "type" : "string",
            "description" : "The coordinate system it was found in"
          },
          "method" : {
            "type" : "string",
            "description" : "The method that found it (for auto: which one)"
          }
        }
      },
      "BuildingStoreys" : {
        "type" : "object",
        "properties" : {
          "building_storeys" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/BuildingStorey"
            }
          }
        }
      },
      "BuildingStorey" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string"
          },
          "elevation" : {
            "type" : [ "number", "null" ],
            "description" : "The IFC elevation, in the model's length unit"
          },
          "floor" : {
            "type" : [ "integer", "null" ]
          },
          "description" : {
            "type" : [ "string", "null" ]
          },
          "long_name" : {
            "type" : [ "string", "null" ]
          },
          "storeys" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "oid" : {
                  "type" : "integer",
                  "format" : "int64"
                },
                "qid" : {
                  "type" : "string"
                }
              }
            },
            "description" : "The IfcBuildingStorey of each model merged here"
          },
          "objects" : {
            "type" : "array",
            "items" : {
              "type" : "integer",
              "format" : "int64"
            },
            "description" : "The oids of the objects on the storey"
          }
        }
      },
      "TextSearchResult" : {
        "type" : "object",
        "properties" : {
          "query" : {
            "type" : "string"
          },
          "groups" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/TextSearchGroup"
            }
          }
        }
      },
      "TextSearchGroup" : {
        "type" : "object",
        "properties" : {
          "matched_in" : {
            "type" : "string",
            "enum" : [ "VALUE", "NAME" ]
          },
          "kind" : {
            "type" : "string"
          },
          "set" : {
            "type" : "string"
          },
          "name" : {
            "type" : "string"
          },
          "type" : {
            "type" : "string"
          },
          "indirect" : {
            "type" : "boolean"
          },
          "count" : {
            "type" : "integer"
          },
          "qids" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "qids_complete" : {
            "type" : "boolean"
          }
        }
      },
      "ValidationReportResult" : {
        "type" : "object",
        "properties" : {
          "summary" : {
            "type" : [ "object", "null" ],
            "additionalProperties" : true,
            "description" : "overall, aborted, bySeverity, byRuleType, stages, truncated"
          },
          "report" : {
            "type" : [ "object", "null" ],
            "additionalProperties" : true,
            "description" : "Per stage: status, timing and the findings"
          },
          "pending" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "Present while the schema check runs on request (VALIDATION), with schema_check on_demand. The schemaCheck stage is then as stored; ask again shortly"
          }
        }
      },
      "Action" : {
        "type" : "object",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "parent_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "name" : {
            "type" : "string"
          },
          "main_type" : {
            "type" : "string"
          },
          "sub_type" : {
            "type" : "string"
          },
          "query" : {
            "type" : [ "string", "null" ],
            "description" : "The text"
          },
          "description" : {
            "type" : [ "string", "null" ]
          },
          "output_hint" : {
            "type" : [ "string", "null" ]
          },
          "favourite" : {
            "type" : "boolean"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "ACTIVE", "DELETED" ]
          },
          "version" : {
            "type" : [ "integer", "null" ]
          },
          "created_by" : {
            "type" : "string"
          },
          "created_at" : {
            "type" : "string"
          },
          "updated_by" : {
            "type" : [ "string", "null" ]
          },
          "updated_at" : {
            "type" : [ "string", "null" ]
          },
          "editable" : {
            "type" : "boolean"
          },
          "full_path" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "uuid" : {
                  "type" : "string",
                  "format" : "uuid"
                },
                "name" : {
                  "type" : "string"
                },
                "main_type" : {
                  "type" : "string"
                }
              }
            },
            "description" : "From the action up to the caller's folder"
          }
        }
      },
      "ActionList" : {
        "type" : "object",
        "properties" : {
          "actions" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Action"
            }
          },
          "full_path" : {
            "type" : "array",
            "items" : {
              "type" : "object",
              "properties" : {
                "uuid" : {
                  "type" : "string",
                  "format" : "uuid"
                },
                "name" : {
                  "type" : "string"
                },
                "main_type" : {
                  "type" : "string"
                }
              }
            }
          }
        }
      },
      "Workspace" : {
        "type" : "object",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "name" : {
            "type" : "string"
          },
          "created_by" : {
            "type" : "string"
          },
          "created_on" : {
            "type" : "string"
          },
          "record_status" : {
            "type" : "string",
            "enum" : [ "ACTIVE", "DELETED" ]
          },
          "parent_workspace_uuid" : {
            "type" : [ "string", "null" ],
            "format" : "uuid"
          },
          "publish_uuid" : {
            "type" : [ "string", "null" ],
            "format" : "uuid",
            "description" : "The share link, when published"
          },
          "filter" : {
            "type" : [ "string", "null" ]
          },
          "scopes" : {
            "type" : [ "array", "null" ],
            "items" : {
              "type" : "string"
            }
          },
          "settings" : {
            "type" : "object",
            "additionalProperties" : true
          },
          "effective_root_node" : {
            "type" : [ "string", "null" ],
            "format" : "uuid"
          },
          "active" : {
            "type" : "boolean"
          },
          "children" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/Workspace"
            }
          }
        }
      },
      "ApplicationVersion" : {
        "type" : "object",
        "properties" : {
          "version_string" : {
            "type" : "string",
            "description" : "major.minor.patch[-qualifier], or LOCALDEV"
          },
          "major" : {
            "type" : "integer"
          },
          "minor" : {
            "type" : "integer"
          },
          "patch" : {
            "type" : "integer"
          },
          "qualifier" : {
            "type" : "string"
          },
          "build_date_time" : {
            "type" : "string"
          }
        }
      },
      "UpgradeSyntaxInput" : {
        "type" : "object",
        "description" : "A text written for BIM.works 2.x, in one of the languages",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "Your own name for the text, given back with its result"
          },
          "language" : {
            "type" : "string",
            "enum" : [ "BQL", "BVL", "BCL" ]
          },
          "text" : {
            "type" : "string",
            "description" : "The text as 2.x accepted it"
          }
        },
        "required" : [ "language", "text" ]
      },
      "UpgradeSyntaxResult" : {
        "type" : "object",
        "description" : "The 3.0 form of one input",
        "properties" : {
          "id" : {
            "type" : "string",
            "description" : "The input's id, when it had one"
          },
          "language" : {
            "type" : "string",
            "enum" : [ "BQL", "BVL", "BCL" ]
          },
          "status" : {
            "type" : "string",
            "enum" : [ "UNCHANGED", "REWRITTEN", "NOT_REWRITTEN" ],
            "description" : "`UNCHANGED`: the text parses in 3.0 as it is. `REWRITTEN`: `text` is the text in the 3.0 syntax, and `changes` lists what changed. `NOT_REWRITTEN`: the text does not parse in 3.0 for a reason that is not a known syntax change; `text` is the input, unchanged, and `error` says where it fails"
          },
          "text" : {
            "type" : "string",
            "description" : "The text to use in 3.0"
          },
          "changes" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "The changes made, in order, such as `IN → UNIT` and `length → \"length\"`; empty unless REWRITTEN"
          },
          "error" : {
            "type" : "string",
            "description" : "Only for NOT_REWRITTEN, the 3.0 parser's message: `line L:C: …`"
          }
        }
      },
      "ModelHash" : {
        "type" : "object",
        "description" : "The XXH64 (seed 18497208744731555) of a file, as an unsigned decimal string: of its first 32 KiB (partial_xxh64, with its size) or of the whole file (full_xxh64)",
        "properties" : {
          "size" : {
            "type" : "integer",
            "format" : "int64"
          },
          "partial_xxh64" : {
            "type" : "string"
          },
          "full_xxh64" : {
            "type" : "string"
          }
        }
      },
      "VersionTag" : {
        "type" : "string",
        "enum" : [ "DEMO" ]
      },
      "ValidationSettings" : {
        "type" : "object",
        "description" : "How the IFC validation of a checkin reports its findings",
        "properties" : {
          "max_findings_per_rule" : {
            "type" : "integer",
            "description" : "0 for no limit"
          },
          "max_findings_total" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "0 for no limit"
          },
          "report_indeterminate" : {
            "type" : "boolean"
          },
          "include_rules" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          }
        }
      },
      "CheckinStatus" : {
        "type" : "object",
        "properties" : {
          "job_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "status" : {
            "type" : "string",
            "enum" : [ "PENDING", "RUNNING", "DONE", "FAILED", "CANCELLED" ]
          },
          "progress" : {
            "type" : "integer",
            "description" : "Percent"
          },
          "node_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The model (Node) the checkin is for"
          },
          "filename" : {
            "type" : "string"
          },
          "attempts" : {
            "type" : "integer",
            "description" : "How often a server started it (a server that went away mid-checkin is retried once)"
          },
          "enqueued_at" : {
            "type" : "string",
            "description" : "UTC, ISO 8601"
          },
          "started_at" : {
            "type" : "string",
            "description" : "UTC, ISO 8601"
          },
          "finished_at" : {
            "type" : "string",
            "description" : "UTC, ISO 8601"
          },
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "DONE only"
          },
          "version" : {
            "$ref" : "#/components/schemas/ModelVersion",
            "description" : "DONE only, when this server has it already"
          },
          "validation" : {
            "type" : "object",
            "additionalProperties" : true,
            "description" : "The validation summary, when there is one (the report is GetValidationReport)"
          },
          "error" : {
            "$ref" : "#/components/schemas/ErrorResponse",
            "description" : "FAILED only"
          },
          "error_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "FAILED only, the error record of the Node (ListNodeErrors, GetValidationReport)"
          }
        }
      },
      "UploadForce" : {
        "type" : "string",
        "enum" : [ "NONE", "NEW_VERSION", "NEW_MODEL" ],
        "description" : "For an upload onto a model Node under another file name, NEW_MODEL makes the file a model of its own in the model's folder (which needs write rights on the folder); NONE and NEW_VERSION make it the model's next Version"
      },
      "RenderCamera" : {
        "type" : "object",
        "description" : "A camera in metres, in the model's coordinates (as in BCF), looking at `target` or along `direction`",
        "properties" : {
          "position" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "target" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "direction" : {
            "$ref" : "#/components/schemas/Vector3"
          },
          "up" : {
            "$ref" : "#/components/schemas/Vector3"
          }
        },
        "required" : [ "position" ]
      },
      "ImageSize" : {
        "type" : "object",
        "properties" : {
          "width" : {
            "type" : "integer",
            "minimum" : 16,
            "maximum" : 4096,
            "default" : 300
          },
          "height" : {
            "type" : "integer",
            "minimum" : 16,
            "maximum" : 4096,
            "default" : 300
          }
        }
      },
      "QueryColumn" : {
        "type" : "object",
        "description" : "One entry of the columns table of a query answer: a `GET` item, its alias, and where its value is in a record. Clients label a column with `label` and read its values at `path`, so they need not know where BIM.works writes each kind of feature, or what an alias does to that (an alias names the column; for some features it is also the record key, which `path` then says)",
        "required" : [ "alias" ],
        "properties" : {
          "item" : {
            "type" : "integer",
            "minimum" : 0,
            "description" : "The index of the item in the `GET` list (or in its relation's list). Absent for an entry the server added, such as the `qid` of `force_get_qid`"
          },
          "alias" : {
            "type" : [ "string", "null" ],
            "description" : "The `AS` alias of the item, null without one"
          },
          "source" : {
            "type" : "string",
            "description" : "The item as BQL text, without its alias"
          },
          "label" : {
            "type" : "string",
            "description" : "The header to show, the alias or else the text"
          },
          "path" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            },
            "description" : "The keys from the record (for a nested column, from one element of its parent's value) to the value. An array because keys can hold dots. `*` stands for every key at that level, and an array met on the way holds one value per element. Absent when the item writes nothing into the records (a feature hidden by the workspace)"
          },
          "kind" : {
            "type" : "string",
            "description" : "The feature family, for styling (attribute, property, quantity, calculated, type, ...)"
          },
          "aggregate" : {
            "type" : "string",
            "description" : "The aggregate's keyword (COUNT, SUM, COLLECT, ...), on an aggregate column"
          },
          "unit" : {
            "type" : "string",
            "description" : "The unit of the item's UNIT clause, as written"
          },
          "groupKey" : {
            "type" : "boolean",
            "description" : "True for a group key of a grouped result"
          },
          "hidden" : {
            "type" : "boolean",
            "description" : "True for an item the workspace's feature visibility hides; it has no values"
          },
          "added" : {
            "type" : "boolean",
            "description" : "True for an entry the server added rather than the query"
          },
          "columns" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/QueryColumn"
            },
            "description" : "The items inside a relation, or the features of a COLLECT, relative to one element of this column's value"
          }
        }
      },
      "QidColors" : {
        "type" : "object",
        "description" : "Colours by object, qid (version uuid, a dash, the oid) to `[r, g, b, a]`, each 0 to 1",
        "additionalProperties" : {
          "type" : "array",
          "items" : {
            "type" : "number"
          },
          "minItems" : 4,
          "maxItems" : 4
        }
      },
      "LinkedDataKind" : {
        "type" : "string",
        "description" : "What an item holds: a web address (never fetched by the server), a text, a value in another system with that system's name, or a file",
        "enum" : [ "URL", "TEXT", "IDENTIFIER", "FILE" ]
      },
      "LinkedDataVia" : {
        "type" : "string",
        "description" : "Through which door an item or a link came in",
        "enum" : [ "APP", "TASK_API", "OPEN_API", "CHAT", "COPY", "IMPORT" ]
      },
      "LinkedDataAnchorHow" : {
        "type" : "string",
        "description" : "How a link found its object on the first Version of a span: `LINKED` (made there), `SAME_OID` (one lineage:\na transaction, a conversion, a branch), `SAME_CONTENT` (an identical upload), `PAIRED` (a pair fixed by hand in\na compare), `GLOBAL_ID`, `MATCHED` (same type and place, new in this Version; to check), `CONFIRMED`,\n`REATTACHED`, `RESUMED` (the GlobalId came back) or `ORPHANED` (the object is not there)\n",
        "enum" : [ "LINKED", "SAME_OID", "SAME_CONTENT", "PAIRED", "GLOBAL_ID", "MATCHED", "CONFIRMED", "REATTACHED", "RESUMED", "ORPHANED" ]
      },
      "LinkedDataAnchorState" : {
        "type" : "string",
        "description" : "`OK` (shown), `CHECK` (shown, and someone should confirm the object) or `ORPHANED` (the object is not on the Version; the link is kept)",
        "enum" : [ "OK", "CHECK", "ORPHANED" ]
      },
      "LinkedDataAnchorDirection" : {
        "type" : "string",
        "description" : "`FORWARD` from the link's first Version to newer ones, `BACKWARD` to older ones (links added in later Versions)",
        "enum" : [ "FORWARD", "BACKWARD" ]
      },
      "LinkTarget" : {
        "type" : "object",
        "description" : "One object of a Version, by exactly one of `oid`, `qid` (of that Version) or `global_id`",
        "properties" : {
          "oid" : {
            "type" : "integer"
          },
          "qid" : {
            "type" : "string"
          },
          "global_id" : {
            "type" : "string",
            "description" : "The IFC GlobalId; refused with AMBIGUOUS_GLOBAL_ID when several objects of the Version have it"
          }
        }
      },
      "LinkedDataIdentifier" : {
        "type" : "object",
        "required" : [ "value" ],
        "properties" : {
          "system" : {
            "type" : "string",
            "description" : "The system the value is from, for example SAP"
          },
          "value" : {
            "type" : "string",
            "description" : "At most 1 KiB"
          }
        }
      },
      "LinkedDataItemSpec" : {
        "type" : "object",
        "description" : "One item to link. Its value is `url`, `text`, `identifier` or, for a FILE, a `file` part",
        "required" : [ "kind" ],
        "properties" : {
          "kind" : {
            "$ref" : "#/components/schemas/LinkedDataKind"
          },
          "title" : {
            "type" : "string",
            "description" : "Without one, the file name without its extension, the URL's host, the identifier's system and value, or the text's first line"
          },
          "description" : {
            "type" : "string"
          },
          "category" : {
            "type" : "string",
            "description" : "One of the policy's categories"
          },
          "valid_until" : {
            "type" : "string",
            "description" : "A date, yyyy-mm-dd"
          },
          "url" : {
            "type" : "string",
            "description" : "A URL with one of the policy's schemes (URL)"
          },
          "text" : {
            "type" : "string",
            "description" : "The text (TEXT); a long one is stored as a file and the item keeps a preview"
          },
          "identifier" : {
            "$ref" : "#/components/schemas/LinkedDataIdentifier"
          },
          "filename" : {
            "type" : "string",
            "description" : "The file name (FILE); the file part's own name when absent"
          },
          "content_type" : {
            "type" : "string",
            "description" : "The media type the client declares (FILE); the server decides from the content"
          },
          "stream" : {
            "type" : "integer",
            "minimum" : 0,
            "description" : "The position of the item's file among the `file` parts (FILE); by default the FILE items take the parts in order"
          },
          "strip_metadata" : {
            "type" : "boolean",
            "description" : "Remove a photo's location and camera details, losslessly and keeping its orientation (JPEG, PNG, WebP); a HEIC or TIFF is stored as it is, and `facts.metadata_kept` says why"
          }
        }
      },
      "LinkDataSpec" : {
        "type" : "object",
        "description" : "The `request` part of LinkData",
        "required" : [ "version_uuid", "targets", "items" ],
        "properties" : {
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The Version the targets are objects of"
          },
          "targets" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkTarget"
            }
          },
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataItemSpec"
            }
          }
        }
      },
      "LinkDataResult" : {
        "type" : "object",
        "properties" : {
          "items" : {
            "type" : "array",
            "description" : "One entry per item of the request; the refused ones first",
            "items" : {
              "$ref" : "#/components/schemas/LinkDataResultEntry"
            }
          }
        }
      },
      "LinkDataResultEntry" : {
        "type" : "object",
        "description" : "A linked item with its links, or a refused one with its error",
        "properties" : {
          "index" : {
            "type" : "integer",
            "description" : "The position of the item in the request"
          },
          "item" : {
            "$ref" : "#/components/schemas/LinkedDataItem"
          },
          "links" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataLink"
            }
          },
          "filename" : {
            "type" : "string",
            "description" : "The file name of a refused file"
          },
          "error" : {
            "type" : "string",
            "description" : "The error type of a refused item, for example FILE_TYPE_NOT_ALLOWED"
          },
          "message" : {
            "type" : "string"
          }
        }
      },
      "LinkedDataFacts" : {
        "type" : "object",
        "description" : "What the server read from a file's content (an archive's entries, an image's size and EXIF)",
        "properties" : {
          "entries" : {
            "type" : "array",
            "description" : "The first entries of an archive",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataArchiveEntry"
            }
          },
          "entry_count" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "The entries of an archive"
          },
          "width" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "An image's width in pixels"
          },
          "height" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "An image's height in pixels"
          },
          "taken_on" : {
            "type" : "string",
            "description" : "When a photo was taken (EXIF), local time without a zone, for example 2024-05-17T10:11:12"
          },
          "location" : {
            "type" : "boolean",
            "description" : "The photo holds a GPS position"
          },
          "metadata_stripped" : {
            "type" : "boolean",
            "description" : "The location and camera details were removed on upload (strip_metadata)"
          },
          "metadata_kept" : {
            "type" : "string",
            "description" : "Why strip_metadata kept them (a HEIC or TIFF is stored as it is)"
          }
        }
      },
      "LinkedDataArchiveEntry" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string"
          },
          "size" : {
            "type" : "integer",
            "format" : "int64"
          }
        }
      },
      "LinkedDataItem" : {
        "type" : "object",
        "description" : "A file, URL, text or identifier, linked to objects. Times are UTC, without a zone",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "owner_node_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The model the item belongs to, whose rights decide who may change it"
          },
          "kind" : {
            "$ref" : "#/components/schemas/LinkedDataKind"
          },
          "title" : {
            "type" : "string"
          },
          "description" : {
            "type" : "string"
          },
          "category" : {
            "type" : "string"
          },
          "value" : {
            "type" : "string",
            "description" : "The URL, the identifier, or a short text"
          },
          "text_preview" : {
            "type" : "string",
            "description" : "The first KiB of a long text (which downloads whole)"
          },
          "identifier_system" : {
            "type" : "string"
          },
          "sha256" : {
            "type" : "string",
            "description" : "The SHA-256 of a file or a long text, hex"
          },
          "media_type" : {
            "type" : "string",
            "description" : "The media type the server found"
          },
          "declared_media_type" : {
            "type" : "string",
            "description" : "The media type the client declared, when it differs"
          },
          "family" : {
            "type" : "string",
            "description" : "The file family (see the policy), for example PDF or IMAGES"
          },
          "extension" : {
            "type" : "string"
          },
          "filename" : {
            "type" : "string"
          },
          "size" : {
            "type" : "integer",
            "format" : "int64",
            "description" : "Bytes"
          },
          "facts" : {
            "$ref" : "#/components/schemas/LinkedDataFacts"
          },
          "valid_until" : {
            "type" : "string",
            "description" : "A date, yyyy-mm-dd"
          },
          "replaces_item_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "copied_from_item_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "created_on" : {
            "type" : "string"
          },
          "created_by" : {
            "type" : "string"
          },
          "created_by_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "created_on_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "created_on_version" : {
            "type" : "integer"
          },
          "via" : {
            "$ref" : "#/components/schemas/LinkedDataVia"
          },
          "client" : {
            "type" : "string",
            "description" : "The client that added it (its X-BIMworks-Client label)"
          },
          "modified_on" : {
            "type" : "string"
          },
          "modified_by" : {
            "type" : "string"
          },
          "row_version" : {
            "type" : "integer",
            "description" : "Send it with UpdateLinkedData"
          },
          "scan_status" : {
            "type" : "string"
          },
          "deleted_on" : {
            "type" : "string"
          },
          "deleted_by" : {
            "type" : "string"
          },
          "deleted_reason" : {
            "type" : "string"
          },
          "purged_on" : {
            "type" : "string"
          }
        }
      },
      "LinkedDataObject" : {
        "type" : "object",
        "description" : "An object of a Version",
        "properties" : {
          "oid" : {
            "type" : "integer"
          },
          "name" : {
            "type" : "string"
          },
          "ifc_type" : {
            "type" : "string"
          },
          "global_id" : {
            "type" : "string"
          },
          "version" : {
            "type" : "integer",
            "description" : "The Version number (object_before)"
          }
        }
      },
      "LinkedDataAnchor" : {
        "type" : "object",
        "description" : "Where a link was on a span of Versions, first_version to last_version (open when absent)",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "link_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "direction" : {
            "$ref" : "#/components/schemas/LinkedDataAnchorDirection"
          },
          "first_version" : {
            "type" : "integer"
          },
          "first_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "last_version" : {
            "type" : "integer"
          },
          "last_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "oid" : {
            "type" : "integer",
            "description" : "The object on these Versions; absent when orphaned"
          },
          "how" : {
            "$ref" : "#/components/schemas/LinkedDataAnchorHow"
          },
          "state" : {
            "$ref" : "#/components/schemas/LinkedDataAnchorState"
          },
          "confidence" : {
            "type" : "number",
            "format" : "double",
            "description" : "Of a MATCHED span, 0 to 1"
          },
          "candidates" : {
            "type" : "array",
            "description" : "The objects of a CHECK span with the same GlobalId",
            "items" : {
              "type" : "integer"
            }
          },
          "followed_on" : {
            "type" : "string"
          },
          "confirmed_on" : {
            "type" : "string"
          },
          "confirmed_by" : {
            "type" : "string"
          }
        }
      },
      "LinkedDataLink" : {
        "type" : "object",
        "description" : "One item on one object of a model. The fields after `deleted_by` describe it on the Version listed (ListLinkedData, LinkData) or give its trail (`anchors`, GetLinkedData and the calls that change a link)",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "item_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "node_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "first_version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The Version the link was made on"
          },
          "first_version" : {
            "type" : "integer"
          },
          "oid" : {
            "type" : "integer",
            "description" : "The object the link was made on, on its first Version"
          },
          "global_id" : {
            "type" : "string",
            "description" : "The GlobalId the link follows"
          },
          "ifc_type" : {
            "type" : "string"
          },
          "object_name" : {
            "type" : "string"
          },
          "ended_from_version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "ended_from_version" : {
            "type" : "integer"
          },
          "ended_on" : {
            "type" : "string"
          },
          "ended_by" : {
            "type" : "string"
          },
          "backward_through_version" : {
            "type" : "integer",
            "description" : "How far down the backward follow took the link; 0 when it found nothing further down"
          },
          "copied_from_link_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "linked_on" : {
            "type" : "string"
          },
          "linked_by" : {
            "type" : "string"
          },
          "via" : {
            "$ref" : "#/components/schemas/LinkedDataVia"
          },
          "client" : {
            "type" : "string"
          },
          "deleted_on" : {
            "type" : "string"
          },
          "deleted_by" : {
            "type" : "string"
          },
          "anchor_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The span the link is on, on the Version listed"
          },
          "oid_here" : {
            "type" : "integer",
            "description" : "The object on the Version listed; absent when orphaned"
          },
          "how" : {
            "$ref" : "#/components/schemas/LinkedDataAnchorHow"
          },
          "state" : {
            "$ref" : "#/components/schemas/LinkedDataAnchorState"
          },
          "direction" : {
            "$ref" : "#/components/schemas/LinkedDataAnchorDirection"
          },
          "span_first_version" : {
            "type" : "integer",
            "description" : "Since which Version the link is where it is"
          },
          "candidates" : {
            "type" : "array",
            "items" : {
              "type" : "integer"
            }
          },
          "object_here" : {
            "$ref" : "#/components/schemas/LinkedDataObject"
          },
          "object_before" : {
            "$ref" : "#/components/schemas/LinkedDataObject"
          },
          "node_name" : {
            "type" : "string"
          },
          "anchors" : {
            "type" : "array",
            "description" : "The spans, forward ones first, each oldest first",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataAnchor"
            }
          }
        }
      },
      "LinkedDataList" : {
        "type" : "object",
        "properties" : {
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "version" : {
            "type" : "integer"
          },
          "node_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "items" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataItem"
            }
          },
          "links" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataLink"
            }
          }
        }
      },
      "LinkedDataLinks" : {
        "type" : "object",
        "description" : "An item and links of it",
        "properties" : {
          "item" : {
            "$ref" : "#/components/schemas/LinkedDataItem"
          },
          "links" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataLink"
            }
          }
        }
      },
      "LinkedDataDetails" : {
        "type" : "object",
        "description" : "An item with its links and their trails, and the items it replaces or that replaced it",
        "properties" : {
          "item" : {
            "$ref" : "#/components/schemas/LinkedDataItem"
          },
          "replaces" : {
            "$ref" : "#/components/schemas/LinkedDataReplacement"
          },
          "replaced_by" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataReplacement"
            }
          },
          "links" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataLink"
            }
          }
        }
      },
      "LinkedDataReplacement" : {
        "type" : "object",
        "description" : "One side of a replacement (ReplaceLinkedData)",
        "properties" : {
          "uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "title" : {
            "type" : "string"
          },
          "from_version" : {
            "type" : "integer",
            "description" : "The Version number the replacement holds from"
          }
        }
      },
      "ReplaceLinkedDataSpec" : {
        "type" : "object",
        "description" : "The `request` part of ReplaceLinkedData",
        "required" : [ "item_uuid", "from_version_uuid", "item" ],
        "properties" : {
          "item_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The item to replace"
          },
          "from_version_uuid" : {
            "type" : "string",
            "format" : "uuid",
            "description" : "The Version from which the new item replaces it"
          },
          "item" : {
            "$ref" : "#/components/schemas/LinkedDataItemSpec"
          }
        }
      },
      "ReplaceLinkedDataResult" : {
        "type" : "object",
        "properties" : {
          "item" : {
            "$ref" : "#/components/schemas/LinkedDataItem"
          },
          "links" : {
            "type" : "array",
            "description" : "The new item's links, on the objects the old one is on from that Version",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataLink"
            }
          },
          "ended" : {
            "type" : "array",
            "description" : "The old item's links ended from that Version (the older Versions keep them)",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            }
          },
          "unlinked" : {
            "type" : "array",
            "description" : "The old item's links made on that very Version, taken off",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            }
          },
          "deleted" : {
            "type" : "boolean",
            "description" : "The old item was on that Version only and is deleted (restorable)"
          }
        }
      },
      "LinkedDataCounts" : {
        "type" : "object",
        "description" : "Which objects of a Version have linked data (oids of that Version, sorted)",
        "properties" : {
          "version_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "version" : {
            "type" : "integer"
          },
          "node_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "objects" : {
            "type" : "array",
            "description" : "The objects with linked data",
            "items" : {
              "type" : "integer"
            }
          },
          "check" : {
            "type" : "array",
            "description" : "Those of them with a link to check",
            "items" : {
              "type" : "integer"
            }
          },
          "later" : {
            "type" : "array",
            "description" : "With include_later, the objects whose only links were made on later Versions",
            "items" : {
              "type" : "integer"
            }
          },
          "by_family" : {
            "type" : "object",
            "description" : "The objects per file family (PDF, IMAGES, ...), or per kind for what is not a file (URL, TEXT, IDENTIFIER)",
            "additionalProperties" : {
              "type" : "array",
              "items" : {
                "type" : "integer"
              }
            }
          },
          "markers" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataMarker"
            }
          },
          "counts" : {
            "$ref" : "#/components/schemas/LinkedDataCountTotals"
          }
        }
      },
      "LinkedDataMarker" : {
        "type" : "object",
        "description" : "One object with linked data, for a marker",
        "properties" : {
          "oid" : {
            "type" : "integer"
          },
          "count" : {
            "type" : "integer",
            "description" : "Its items"
          },
          "family" : {
            "type" : "string",
            "description" : "The family most of its items have"
          },
          "extension" : {
            "type" : "string",
            "description" : "The extension most files of that family have"
          },
          "check" : {
            "type" : "boolean"
          },
          "later" : {
            "type" : "boolean"
          }
        }
      },
      "LinkedDataCountTotals" : {
        "type" : "object",
        "properties" : {
          "objects" : {
            "type" : "integer"
          },
          "items" : {
            "type" : "integer",
            "description" : "Distinct items"
          },
          "check" : {
            "type" : "integer",
            "description" : "Objects to check"
          },
          "orphaned" : {
            "type" : "integer",
            "description" : "Links orphaned on this Version"
          },
          "later" : {
            "type" : "integer"
          }
        }
      },
      "LinkedDataDownloadUrl" : {
        "type" : "object",
        "description" : "Where to GET the content of an item (DownloadLinkedData with `delivery: url`)",
        "properties" : {
          "url" : {
            "type" : "string",
            "description" : "The URL, valid until `expires` without a token; treat it like the file itself"
          },
          "expires" : {
            "type" : "string",
            "format" : "date-time"
          },
          "disposition" : {
            "type" : "string",
            "enum" : [ "attachment", "inline" ],
            "description" : "What the URL sends"
          },
          "path" : {
            "type" : "string",
            "description" : "The same URL below the server's address, when the content is served from that address (no separate content origin)"
          }
        }
      },
      "LinkedDataLinkResult" : {
        "type" : "object",
        "properties" : {
          "link" : {
            "$ref" : "#/components/schemas/LinkedDataLink"
          }
        }
      },
      "ConfirmLinkMatchResult" : {
        "type" : "object",
        "properties" : {
          "confirmed_anchor_uuid" : {
            "type" : "string",
            "format" : "uuid"
          },
          "link" : {
            "$ref" : "#/components/schemas/LinkedDataLink"
          }
        }
      },
      "UnlinkDataResult" : {
        "type" : "object",
        "properties" : {
          "unlinked" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            }
          },
          "items_deleted" : {
            "type" : "array",
            "description" : "The items deleted because they lost their last link",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            }
          }
        }
      },
      "DeleteLinkedDataResult" : {
        "type" : "object",
        "properties" : {
          "deleted" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            }
          },
          "retention_days" : {
            "type" : "integer",
            "description" : "How long the items can be restored"
          }
        }
      },
      "RestoreLinkedDataResult" : {
        "type" : "object",
        "properties" : {
          "restored" : {
            "type" : "array",
            "items" : {
              "type" : "string",
              "format" : "uuid"
            }
          }
        }
      },
      "LinkedDataPolicy" : {
        "type" : "object",
        "properties" : {
          "families" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataFileFamily"
            }
          },
          "denied" : {
            "type" : "array",
            "description" : "The extensions never accepted, whatever the configuration",
            "items" : {
              "type" : "string"
            }
          },
          "max_file_bytes" : {
            "type" : "integer",
            "format" : "int64"
          },
          "max_inline_bytes" : {
            "type" : "integer",
            "description" : "A text up to this size is kept in the item; a longer one is stored as a file"
          },
          "max_files_per_request" : {
            "type" : "integer",
            "description" : "Items per LinkData call"
          },
          "max_targets_per_request" : {
            "type" : "integer"
          },
          "categories" : {
            "type" : "array",
            "description" : "The categories an item may have; \"*\" allows any",
            "items" : {
              "type" : "string"
            }
          },
          "identifier_systems" : {
            "type" : "object",
            "description" : "The identifier systems this server knows, name to a URL template (`{value}` is the identifier) that makes an identifier of that system a link",
            "additionalProperties" : {
              "type" : "string"
            }
          },
          "url_schemes" : {
            "type" : "array",
            "items" : {
              "type" : "string"
            }
          },
          "retention_days" : {
            "type" : "integer",
            "description" : "How long a deleted item can be restored"
          }
        }
      },
      "LinkedDataFileFamily" : {
        "type" : "object",
        "properties" : {
          "name" : {
            "type" : "string",
            "description" : "For example PDF, IMAGES, OFFICE"
          },
          "title" : {
            "type" : "string"
          },
          "token" : {
            "type" : "string",
            "description" : "The design token of the family's colour"
          },
          "color" : {
            "type" : "string"
          },
          "extensions" : {
            "type" : "array",
            "items" : {
              "$ref" : "#/components/schemas/LinkedDataFileExtension"
            }
          }
        }
      },
      "LinkedDataFileExtension" : {
        "type" : "object",
        "properties" : {
          "extension" : {
            "type" : "string",
            "description" : "Without the dot, for example pdf or shp.zip"
          },
          "label" : {
            "type" : "string"
          },
          "media_type" : {
            "type" : "string"
          },
          "inline" : {
            "type" : "boolean",
            "description" : "Whether a browser may show it in a tab"
          }
        }
      }
    }
  }
}